/* ============================================================
   群聊官网 - 全局样式
   第一界面：群聊首页 (djwjlq风格)
   第二界面：软件分享 (softshare风格)
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
}

/* 暗色主题（默认） */
[data-theme="dark"] {
    --bg-primary: #0a0a14;
    --bg-secondary: #111122;
    --bg-card: rgba(22, 22, 44, 0.6);
    --bg-card-hover: rgba(30, 30, 58, 0.75);
    --bg-glass: rgba(18, 18, 40, 0.65);
    --bg-nav: rgba(10, 10, 22, 0.7);
    --bg-input: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #686880;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --accent: #7c5cfc;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 92, 252, 0.35);
    --accent2: #f472b6;
    --accent2-glow: rgba(244, 114, 182, 0.3);
    --success: #34d399;
    --danger: #f87171;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #7c5cfc 0%, #f472b6 50%, #fb923c 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(244, 114, 182, 0.1));

    /* 群聊首页专用 */
    --home-bg: #0f0f1a;
    --home-card-bg: rgba(25, 25, 45, 0.7);
    --home-card-border: rgba(255, 255, 255, 0.08);
    --home-text: #e0e0ee;
    --home-text-secondary: #9090b0;
    --home-accent: #6c5ce7;
    --home-accent2: #e17055;
    --home-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #e17055);
}

[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-nav: rgba(255, 255, 255, 0.7);
    --bg-input: rgba(0, 0, 0, 0.04);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-muted: #9090a8;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-card: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.14);
    --accent: #6c4ef0;
    --accent-light: #8b74f5;
    --accent-glow: rgba(108, 78, 240, 0.25);
    --accent2: #e8458b;
    --accent2-glow: rgba(232, 69, 139, 0.2);
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --gradient-hero: linear-gradient(135deg, #6c4ef0 0%, #e8458b 50%, #f97316 100%);
    --gradient-card: linear-gradient(135deg, rgba(108, 78, 240, 0.08), rgba(232, 69, 139, 0.05));

    --home-bg: #f8f8fc;
    --home-card-bg: rgba(255, 255, 255, 0.8);
    --home-card-border: rgba(0, 0, 0, 0.08);
    --home-text: #1a1a2e;
    --home-text-secondary: #5a5a7a;
    --home-accent: #6c5ce7;
    --home-accent2: #e17055;
    --home-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #e17055);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--home-bg);
    color: var(--home-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ================================================================
   背景图片系统
   ================================================================ */
.bg-image {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}
.bg-image--home {
    background-image: url('网页壁纸.png');
}
.bg-image--software {
    background-image: url('网页壁纸.png');
}
.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.65) 0%, rgba(15, 15, 26, 0.55) 50%, rgba(15, 15, 26, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}
.bg-overlay-soft {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.65) 0%, rgba(10, 10, 20, 0.55) 50%, rgba(10, 10, 20, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ================================================================
   导航栏
   ================================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-fast);
}
.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.navbar--hidden {
    display: none;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.brand-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--home-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}
.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-btn {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--home-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--home-text);
    border-color: rgba(255, 255, 255, 0.12);
}
.nav-btn--software {
    background: var(--home-accent);
    color: #fff;
    border-color: var(--home-accent);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}
.nav-btn--software:hover {
    background: #7c6ef0;
    color: #fff;
    border-color: #7c6ef0;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(108, 92, 231, 0.5);
}
.nav-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--home-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--home-text);
    border-color: rgba(255, 255, 255, 0.12);
}
.heart-btn:hover { color: #e17055; }

/* ================================================================
   页面视图切换系统
   ================================================================ */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.page-view.active {
    display: block;
    opacity: 1;
}
.page-view--home.active ~ .navbar {
    background: rgba(15, 15, 26, 0.75);
}

/* ================================================================
   第一界面：群聊首页 (djwjlq风格)
   ================================================================ */
.section-home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Hero */
.hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: #a29bfe;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #a29bfe;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    color: var(--home-text);
}
.hero-title-accent {
    background: var(--home-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--home-text-secondary);
    max-width: 600px;
    margin-bottom: 0.5rem;
}
.hero-desc {
    font-size: 0.95rem;
    color: var(--home-text-secondary);
    opacity: 0.7;
    margin-bottom: 2rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.hero-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 0.85rem;
    color: var(--home-text-secondary);
    font-weight: 500;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--home-accent);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    color: var(--home-text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--home-text);
}
.hero-scroll {
    animation: bounceDown 2s ease-in-out infinite;
    color: var(--home-text-secondary);
    font-size: 1.2rem;
    opacity: 0.6;
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Section Block */
.section-block {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--home-accent);
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--home-text);
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 1rem;
    color: var(--home-text-secondary);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* About Numbers */
.about-nums {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.about-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    min-width: 100px;
}
.num-val {
    font-size: 2rem;
    font-weight: 900;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.num-label {
    font-size: 0.8rem;
    color: var(--home-text-secondary);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.feature-card {
    background: var(--home-card-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--home-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: left;
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.feature-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--home-text);
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--home-text-secondary);
    line-height: 1.6;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}
.topic-card {
    background: var(--home-card-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--home-card-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: var(--transition-fast);
    cursor: default;
}
.topic-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.topic-card i {
    font-size: 1.5rem;
    color: var(--home-accent);
    margin-bottom: 0.5rem;
    display: block;
}
.topic-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.2rem;
}
.topic-card p {
    font-size: 0.78rem;
    color: var(--home-text-secondary);
}

/* Resources */
.sub-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 2.5rem 0 1rem;
    text-align: left;
}
.sub-title i { color: var(--home-accent); }
.sub-title-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(108, 92, 231, 0.15);
    color: var(--home-accent);
}
.sub-title-badge.hot {
    background: rgba(225, 112, 85, 0.15);
    color: var(--home-accent2);
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}
.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.resource-item:hover {
    border-color: rgba(108, 92, 231, 0.25);
    transform: translateX(4px);
}
.resource-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--home-accent);
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
}
.resource-info {
    flex: 1;
    min-width: 0;
}
.resource-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--home-text);
    margin-bottom: 0.15rem;
}
.resource-info small {
    font-size: 0.78rem;
    color: var(--home-text-secondary);
}
.resource-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(108, 92, 231, 0.1);
    color: var(--home-accent);
    flex-shrink: 0;
}

/* Chat Bubbles */
.chat-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    text-align: left;
}
.chat-bubble {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--home-text);
    transition: var(--transition-fast);
}
.chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.chat-bubble-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}
.tag-notice { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.tag-urgent { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.tag-fact { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.tag-meme { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.tag-live { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.tag-shop { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.tag-rant { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.chat-tip {
    font-size: 0.85rem;
    color: var(--home-text-secondary);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0.7;
}

/* Stats Big */
.stats-big {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.stat-big-card {
    background: var(--home-card-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--home-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}
.stat-big-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
}
.stat-big-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-big-label {
    font-size: 0.85rem;
    color: var(--home-text-secondary);
}

/* Join */
.join-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}
.join-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    background: var(--home-card-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--home-card-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: block;
}
.join-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.join-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.3rem;
}
.join-card h4 i { color: var(--home-accent); margin-right: 0.4rem; }
.join-card > p {
    font-size: 0.88rem;
    color: var(--home-text-secondary);
    margin-bottom: 1.2rem;
}
.join-card small {
    font-size: 0.78rem;
    color: var(--home-text-secondary);
    opacity: 0.6;
}
.qr-placeholder {
    width: 170px; height: 170px;
    margin: 0 auto 0.8rem;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.qq-number {
    padding: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
}
.qq-number span {
    display: block;
    font-size: 0.75rem;
    color: var(--home-text-secondary);
    margin-bottom: 0.3rem;
}
.qq-number strong {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--home-accent);
    white-space: nowrap;
}

/* Home Entry Bar */
.home-entry-bar {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem 0;
}
.home-entry-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    color: var(--home-text-secondary);
    font-size: 0.85rem;
    opacity: 0.5;
}
.home-entry-divider::before,
.home-entry-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.btn-home-entry {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--home-card-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--home-card-border);
    color: var(--home-text);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    font-size: 1rem;
    max-width: 420px;
    width: 100%;
}
.btn-home-entry i:first-child {
    font-size: 1.4rem;
    color: var(--home-accent);
}
.btn-home-entry span {
    font-weight: 700;
    flex: 1;
    text-align: left;
}
.btn-home-entry small {
    display: block;
    font-size: 0.75rem;
    color: var(--home-text-secondary);
    font-weight: 400;
}
.btn-home-entry .fa-arrow-right {
    color: var(--home-accent);
    transition: transform 0.3s ease;
}
.btn-home-entry:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.2);
}
.btn-home-entry:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* Home Footer */
.home-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.home-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.home-footer-brand i {
    font-size: 1.8rem;
    color: var(--home-accent);
}
.home-footer-brand strong {
    display: block;
    font-size: 1rem;
    color: var(--home-text);
}
.home-footer-brand small {
    font-size: 0.78rem;
    color: var(--home-text-secondary);
}
.home-footer p {
    font-size: 0.9rem;
    color: var(--home-text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.home-footer-email {
    font-size: 0.8rem;
    color: var(--home-text-secondary);
    opacity: 0.5;
}

/* ================================================================
   第二界面：软件分享 (softshare风格)
   ================================================================ */
.section-software {
    position: relative;
    min-height: 100vh;
    padding-bottom: 0;
    background: var(--bg-primary);
}

/* Software Navbar */
.software-navbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0;
    max-width: 1100px;
    margin: 0 auto;
}
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-family: var(--font-sans);
}
.btn-back-home:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateX(-3px);
}
.software-nav-spacer {
    width: 100px;
}
.software-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}
.software-brand-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.software-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.software-header-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 150;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.08);
}
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }
[data-theme="light"] .theme-toggle .fa-sun { display: block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

/* Search */
.search-bar {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}
.search-field-inline {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}
.search-field-icon-inline {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}
#search-inline-input {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.8rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-card);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
}
#search-inline-input::placeholder { color: var(--text-muted); }
#search-inline-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--bg-card);
}
.search-clear-inline {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 1;
}
.search-clear-inline:hover { color: var(--text-primary); background: var(--bg-input); }
.search-submit-inline {
    position: absolute;
    right: 2.6rem;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 1;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.search-submit-inline:hover { transform: scale(1.1); box-shadow: 0 4px 16px var(--accent-glow); }
.search-submit-inline:active { transform: scale(0.95); }
.search-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.8rem 0 0.5rem;
    color: var(--text-muted);
    animation: searchSpinnerIn 0.25s ease;
}
.search-spinner .spinner-ring {
    width: 36px; height: 36px;
    border-width: 2.5px;
    border-color: var(--border-card);
    border-top-color: var(--accent);
}
.search-spinner p { font-size: 0.85rem; font-weight: 500; }
@keyframes searchSpinnerIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category */
.category-bar {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 2rem auto 1.5rem;
    padding: 0 2rem;
}
.filter-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pill {
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-card);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.01em;
}
.pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.pill i { font-size: 0.85rem; }

/* Software Grid */
.software-grid {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    width: 100%;
}
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Software Card */
.software-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    transition: var(--transition-smooth);
    cursor: default;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s ease forwards;
    opacity: 0;
}
.software-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.software-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.software-card:hover::before { opacity: 1; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-icon-wrap {
    width: 88px; height: 88px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    transition: var(--transition-smooth);
}
.software-card:hover .card-icon-wrap {
    box-shadow: 0 8px 28px var(--accent-glow);
    transform: scale(1.04);
}
.card-icon-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-body {
    flex: 1; min-width: 0;
    position: relative; z-index: 1;
    text-align: center;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
    justify-content: center;
}
.meta-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
}
.card-actions { display: flex; align-items: center; justify-content: center; }
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    color: #fff;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px var(--accent-glow);
    letter-spacing: 0.01em;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-download:active { transform: scale(0.96); }
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* State Views */
.state-view {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}
.state-view i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.state-view p { font-size: 0.95rem; }
.spinner-ring {
    width: 44px; height: 44px;
    border: 3px solid var(--border-card);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-retry {
    margin-top: 1rem;
    padding: 0.55rem 1.6rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-retry:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-2px); }

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2rem 1.8rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.35s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 0.8rem; right: 1rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.modal-close:hover { background: var(--border-hover); color: var(--text-primary); }
.modal-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}
.btn-accent {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    background: var(--accent2);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}
.btn-accent:hover {
    box-shadow: 0 8px 24px var(--accent2-glow);
    transform: translateY(-2px);
}
.download-modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}
.btn-cancel {
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-cancel:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}
.btn-confirm-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: var(--gradient-hero);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-confirm-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}
.skip-confirm-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.skip-confirm-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Search Result Modal */
.search-result-overlay { z-index: 260; }
.search-result-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.35s ease;
    position: relative;
}
.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.search-result-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.search-result-header .modal-close { position: static; }
.search-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.search-result-body .software-card { max-width: none; }
#search-result-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex: 1;
}
#search-result-empty i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}
#search-result-empty p { font-size: 1.05rem; color: var(--text-muted); }
.search-result-body::-webkit-scrollbar { width: 5px; }
.search-result-body::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 10px; }

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg-nav);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    padding: 1.8rem;
}
.footer-inner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.footer-inner a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-inner a:hover { color: var(--accent); }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 300;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 150;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--accent-glow); }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1199px) {
    .nav-inner { padding: 0.7rem 1rem; }
    .brand-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .brand-text { font-size: 1.1rem; }
    .section-block { padding: 4rem 1.2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-num { font-size: 2rem; }
    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .topics-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .stats-big { grid-template-columns: repeat(2, 1fr); }
    .software-card { padding: 1.6rem 2rem; border-radius: var(--radius-lg); }
    .software-card:hover { transform: translateY(-4px); }
    .card-icon-wrap { width: 76px; height: 76px; }
    .cards-container { max-width: 620px; gap: 1rem; }
    .search-result-dialog { max-width: 720px; max-height: 82vh; }
}

@media (max-width: 767px) {
    .nav-inner { padding: 0.5rem 0.8rem; }
    .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
    .brand-text { font-size: 0.9rem; }
    .nav-btn { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
    .nav-btn span { display: none; }
    .nav-icon-btn { width: 34px; height: 34px; font-size: 0.85rem; }
    .hero { padding: 5rem 1rem 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat-num { font-size: 1.6rem; }
    .hero-stat-label { font-size: 0.75rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 80%; justify-content: center; }
    .section-block { padding: 3rem 1rem; }
    .section-title { font-size: 1.8rem; }
    .feature-cards { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .about-nums { gap: 0.8rem; }
    .about-num { padding: 0.8rem 1rem; min-width: 80px; }
    .num-val { font-size: 1.5rem; }
    .stats-big { grid-template-columns: 1fr; }
    .stat-big-num { font-size: 2.2rem; }
    .join-options { gap: 1rem; }
    .join-card { min-width: auto; }
    .category-bar { margin: 1.5rem auto 1rem; padding: 0 0.8rem; }
    .search-bar { margin: 1rem auto 0; padding: 0 0.8rem; }
    .search-field-inline { max-width: 100%; }
    #search-inline-input { font-size: 0.88rem; padding: 0.65rem 2.5rem; }
    .filter-pills { gap: 0.4rem; }
    .pill { padding: 0.5rem 1rem; font-size: 0.82rem; }
    .software-grid { padding: 0 0.8rem; }
    .cards-container { max-width: 100%; gap: 0.8rem; }
    .software-card { padding: 1.2rem 1rem; border-radius: var(--radius-md); }
    .software-card:hover { transform: translateY(-2px); }
    .card-icon-wrap { width: 64px; height: 64px; }
    .card-title { font-size: 1.05rem; }
    .card-desc { font-size: 0.8rem; -webkit-line-clamp: 2; }
    .btn-download { width: 100%; justify-content: center; padding: 0.45rem 1rem; font-size: 0.82rem; }
    .theme-toggle { bottom: 5rem; right: 0.8rem; width: 38px; height: 38px; }
    .back-to-top { bottom: 0.8rem; right: 0.8rem; width: 38px; height: 38px; }
    .footer { padding: 1.2rem 1rem; }
    .footer-inner p { font-size: 0.78rem; }
    .search-result-dialog { max-width: 100%; max-height: 90vh; border-radius: var(--radius-lg); }
    .search-result-header { padding: 0.8rem 1rem; }
    .search-result-header h3 { font-size: 1.05rem; }
    .search-result-body { padding: 0.8rem 1rem; gap: 0.6rem; }
    .chat-bubbles { gap: 0.4rem; }
    .chat-bubble { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
    .resource-item { flex-wrap: wrap; }
}

@media (max-width: 400px) {
    .brand-text { font-size: 0.8rem; }
    .hero-title { font-size: 1.8rem; }
    .pill { font-size: 0.76rem; padding: 0.4rem 0.75rem; }
    .software-card { padding: 1rem 0.8rem; }
    .card-icon-wrap { width: 56px; height: 56px; }
    .card-title { font-size: 1rem; }
    .card-desc { font-size: 0.76rem; }
    .topic-card { padding: 0.8rem 0.6rem; }
    .topic-card i { font-size: 1.2rem; }
}
