/* ============================================================
   快粉工作室导航 - 主样式
   参考 wuyousup.com 毛玻璃风格 + 快粉品牌色定制
   ============================================================ */

:root {
    /* 快粉品牌主色：暖粉 → 紫调 → 蓝 */
    --brand-1: #ff6eb4;
    --brand-2: #c84bff;
    --brand-3: #4facfe;

    /* 玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --bg-blur: 22px;

    /* 文字 */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.70);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* 色块强调色 */
    --accent-pink:   #ff6eb4;
    --accent-purple: #c84bff;
    --accent-blue:   #4facfe;
    --accent-cyan:   #00f2fe;
    --accent-green:  #43e97b;
    --accent-gold:   #feca57;
    --accent-orange: #fa709a;
    --accent-red:    #ff6b6b;
    --accent-indigo: #667eea;
    --accent-teal:   #38f9d7;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --glass-bg: rgba(0, 0, 0, 0.28);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --text-secondary: rgba(255, 255, 255, 0.62);
    --text-muted: rgba(255, 255, 255, 0.38);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    background: #0d0d20;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   动态背景
   ============================================================ */
.gradient-bg {
    position: fixed; inset: 0;
    z-index: -3;
    background: linear-gradient(135deg, #1a0a2e 0%, #16103e 40%, #0a1a3e 100%);
    overflow: hidden;
}
.dark-mode .gradient-bg {
    background: linear-gradient(135deg, #0a050f 0%, #0d0a18 50%, #050a12 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: blobFloat 22s infinite ease-in-out;
}
.blob-1 { width:520px; height:520px; background:linear-gradient(135deg,#ff6eb4,#c84bff); top:-160px; left:-120px; animation-delay:0s; }
.blob-2 { width:420px; height:420px; background:linear-gradient(135deg,#c84bff,#4facfe); top:25%; right:-110px; animation-delay:-6s; }
.blob-3 { width:460px; height:460px; background:linear-gradient(135deg,#4facfe,#00f2fe); bottom:-130px; left:10%; animation-delay:-12s; }
.blob-4 { width:360px; height:360px; background:linear-gradient(135deg,#43e97b,#38f9d7); bottom:20%; right:12%; animation-delay:-17s; }
.blob-5 { width:300px; height:300px; background:linear-gradient(135deg,#fa709a,#feca57); top:55%; left:40%; animation-delay:-9s; }

@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    25%      { transform: translate(35px,-40px) scale(1.06); }
    50%      { transform: translate(-25px,25px) scale(0.94); }
    75%      { transform: translate(25px,35px) scale(1.03); }
}

#particle-canvas {
    position: fixed; inset: 0;
    z-index: -2;
    pointer-events: none;
}

.grain-overlay {
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   毛玻璃通用
   ============================================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--bg-blur));
    -webkit-backdrop-filter: blur(var(--bg-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ============================================================
   动画
   ============================================================ */
.animate-up {
    animation: slideUp 0.72s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(32px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================================
   Hero 头部
   ============================================================ */
.hero-section {
    border-radius: var(--radius-xl);
    padding: 2.2rem 2.4rem;
    position: relative;
    overflow: hidden;
}
/* 顶部彩虹线 */
.hero-section::before {
    content: '';
    position: absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
    opacity: 0.85;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

/* Logo 区域 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.logo-ring {
    position: relative;
    width: 80px; height: 80px;
    flex-shrink: 0;
}
.logo-glow {
    position: absolute; inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
    animation: spinGlow 5s linear infinite;
    filter: blur(3px);
    opacity: 0.75;
}
@keyframes spinGlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.logo-icon {
    position: relative;
    width: 100%; height: 100%;
    background: rgba(15,10,30,0.7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    padding: 8px;
    border: 2px solid rgba(255,255,255,0.18);
}
.logo-icon svg { width: 100%; height: 100%; }
.status-dot {
    position: absolute; bottom:4px; right:4px;
    width: 16px; height: 16px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 3px solid rgba(10,5,20,0.8);
    z-index: 2;
    animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { box-shadow: 0 0 0 0 rgba(67,233,123,0.7); }
    50%      { box-shadow: 0 0 0 8px rgba(67,233,123,0); }
}

.brand-block { flex: 1; }
.brand-name {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--brand-1) 50%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}
.brand-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 主题切换按钮 */
.theme-toggle {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); border-color: var(--brand-1); }
.theme-toggle i { position: absolute; transition: var(--transition); font-size: 1.1rem; }
.sun-icon  { opacity:1; transform:translateY(0) rotate(0); }
.moon-icon { opacity:0; transform:translateY(20px) rotate(-90deg); }
.dark-mode .sun-icon  { opacity:0; transform:translateY(-20px) rotate(90deg); }
.dark-mode .moon-icon { opacity:1; transform:translateY(0) rotate(0); }

/* 统计行 */
.stats-row {
    display: flex;
    align-items: center;
    padding: 1.3rem 1.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.07);
}
.stat-item { text-align: center; flex: 1; }
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}
.stat-divider {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
    margin: 0 0.5rem;
}

/* ============================================================
   搜索栏
   ============================================================ */
.search-wrap {
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.4rem;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-icon { color: var(--text-muted); font-size: 0.95rem; flex-shrink:0; }
#searchInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}
#searchInput::placeholder { color: var(--text-muted); }
.search-clear {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 0.85rem; padding: 2px 6px;
    border-radius: 50%;
    transition: var(--transition);
}
.search-clear:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

/* ============================================================
   导航区块
   ============================================================ */
.nav-section {
    border-radius: var(--radius-xl);
    padding: 1.8rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    color: var(--text-primary);
}
.section-title i {
    color: var(--brand-1);
    font-size: 1rem;
    width: 20px; text-align: center;
}
.section-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255,110,180,0.18);
    color: var(--brand-1);
    border: 1px solid rgba(255,110,180,0.3);
    letter-spacing: 0.5px;
}
.new-badge {
    background: rgba(67,233,123,0.15);
    color: var(--accent-green);
    border-color: rgba(67,233,123,0.3);
}

/* ============================================================
   导航卡片（宽条形）
   ============================================================ */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}
.nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.nav-card::before {
    content:'';
    position:absolute; inset:0;
    background: rgba(255,255,255,0.04);
    opacity:0;
    transition: var(--transition);
}
.nav-card:hover::before { opacity:1; }
.nav-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,110,180,0.35);
    box-shadow: 0 8px 30px rgba(200,75,255,0.15);
}
.nav-card:active { transform: translateY(-1px); }

/* 图标容器 */
.card-icon {
    width: 48px; height: 48px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.nav-card:hover .card-icon { transform: scale(1.08) rotate(-5deg); }
.icon-img {
    width: 30px; height: 30px;
    object-fit: contain;
    border-radius: 6px;
}

/* 文字信息 */
.card-info {
    flex: 1;
    display: flex; flex-direction: column; gap: 0.2rem;
    position: relative; z-index: 1;
    min-width: 0;
}
.card-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.card-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
    position: relative; z-index:1;
    transition: var(--transition);
}
.nav-card:hover .card-arrow { color: var(--brand-1); transform: translateX(3px); }

/* 图标色系 */
.icon-pink    { background: linear-gradient(135deg, #ff6eb4, #f5576c); }
.icon-purple  { background: linear-gradient(135deg, #c84bff, #9f38e8); }
.icon-blue    { background: linear-gradient(135deg, #4facfe, #2468f2); }
.icon-cyan    { background: linear-gradient(135deg, #00f2fe, #4facfe); }
.icon-green   { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.icon-gold    { background: linear-gradient(135deg, #feca57, #ff9f43); }
.icon-orange  { background: linear-gradient(135deg, #fa709a, #fee140); }
.icon-red     { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); }
.icon-indigo  { background: linear-gradient(135deg, #667eea, #764ba2); }
.icon-teal    { background: linear-gradient(135deg, #38f9d7, #43e97b); }

/* ============================================================
   社交平台网格（图片图标 + 文字）
   ============================================================ */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.platform-card::after {
    content: '';
    position: absolute; inset:0;
    background: radial-gradient(circle at center, rgba(255,110,180,0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}
.platform-card:hover::after { opacity: 1; }
.platform-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,110,180,0.3);
    box-shadow: 0 10px 30px rgba(200,75,255,0.15);
}
.platform-card img {
    width: 48px; height: 48px;
    object-fit: contain;
    border-radius: 12px;
    transition: var(--transition);
}
.platform-card:hover img { transform: scale(1.1); }
.platform-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.platform-card:hover span { color: var(--text-primary); }

/* ============================================================
   搜索高亮 & 隐藏
   ============================================================ */
.nav-card.search-hidden,
.platform-card.search-hidden {
    display: none;
}
.nav-section.section-empty { display: none; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    text-align: center;
}
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 0.6rem; flex-wrap: wrap;
}
.footer-logo-text {
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-heart {
    color: var(--brand-1);
    animation: heartbeat 1.6s ease-in-out infinite;
    display: inline-block;
}
@keyframes heartbeat {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}
.footer-slogan { font-size: 0.85rem; color: var(--text-secondary); }
.footer-copy   { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 1rem 0.9rem 2.5rem; gap: 1.1rem; }

    .hero-section { padding: 1.4rem 1.3rem; }
    .header-top { margin-bottom: 1.2rem; }
    .logo-ring { width: 64px; height: 64px; }
    .brand-name { font-size: 1.5rem; }
    .brand-sub  { font-size: 0.85rem; }
    .stats-row  { padding: 1rem; gap: 0; }
    .stat-value { font-size: 1.1rem; }

    .nav-section { padding: 1.3rem 1.1rem; }
    .nav-grid { grid-template-columns: 1fr; }

    .platform-grid { grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
    .platform-card img { width: 40px; height: 40px; }
}

@media (max-width: 500px) {
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-value { font-size: 1rem; }
    .stat-label { font-size: 0.68rem; }
    .stat-divider { margin: 0; }
    .logo-area { gap: 0.9rem; }
    .logo-ring { width: 56px; height: 56px; }
}

@media (max-width: 380px) {
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-grid { grid-template-columns: 1fr; }
}
