/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 苹果风格色彩 */
    --primary-blue: #007AFF;
    --primary-purple: #5856D6;
    --primary-pink: #FF375F;
    --primary-orange: #FF9F0A;
    --primary-green: #30D158;
    --primary-cyan: #32ADE6;

    /* 中性色 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #E8E8ED;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #C0C0C7;
    --border-color: #D2D2D7;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* 动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all var(--transition-base);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
}

.nav-logo:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.nav-logo svg {
    flex-shrink: 0;
}

.brand-logo-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nav-logo-text {
    display: inline-block;
    min-width: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
}

.nav-item a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-item a:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.nav-item.active a {
    color: var(--primary-blue);
    background: rgba(0, 122, 255, 0.1);
}

/* ==================== Hero 区域 ==================== */
.hero {
    position: relative;
    min-height: 820px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 124px var(--spacing-lg) 86px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 36, 66, 0.08), transparent 28%),
        radial-gradient(circle at 78% 28%, rgba(0, 122, 255, 0.1), transparent 30%),
        linear-gradient(135deg, rgba(0, 122, 255, 0.025) 0%, rgba(88, 86, 214, 0.035) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 122, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10%, -10%) scale(1.1);
    }
}

.hero-container {
    position: relative;
    max-width: 900px;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(50px, 7.4vw, 78px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.05;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.hero-description {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-tags span {
    padding: 7px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 36, 66, 0.12);
    color: #5f6470;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(40, 52, 84, 0.05);
}

.hero-tags span:first-child,
.hero-tags span:nth-child(2) {
    color: #d51f46;
    background: rgba(255, 36, 66, 0.08);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
    transform: translateY(-2px);
}

.btn-ai {
    background: linear-gradient(135deg, #FF2442, #7C3AED);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 36, 66, 0.3);
}

.btn-ai:hover {
    background: linear-gradient(135deg, #E5213A, #6B34B8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 36, 66, 0.4);
}

.btn-assistant {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-assistant:hover {
    background: linear-gradient(135deg, #0EA371, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Hero 背景动画卡片 */
.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 122, 255, 0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(40, 52, 84, 0.07);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.floating-card::before {
    position: absolute;
    left: 24px;
    top: 22px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(29, 29, 31, 0.72);
}

.floating-card::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 64px;
    height: 68px;
    border-radius: 12px;
    background:
        linear-gradient(rgba(134, 134, 139, 0.18), rgba(134, 134, 139, 0.18)) 0 0 / 70% 8px no-repeat,
        linear-gradient(rgba(134, 134, 139, 0.13), rgba(134, 134, 139, 0.13)) 0 24px / 92% 8px no-repeat,
        linear-gradient(rgba(134, 134, 139, 0.1), rgba(134, 134, 139, 0.1)) 0 48px / 56% 8px no-repeat;
}

.card-1::before {
    content: '起号 SOP';
}

.card-2::before {
    content: '运营工具';
}

.card-3::before {
    content: '案例复盘';
}

.card-1 {
    width: 280px;
    height: 176px;
    top: 17%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    width: 242px;
    height: 168px;
    top: 58%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    width: 190px;
    height: 136px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* ==================== 区域容器 ==================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: 42px;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
}

/* ==================== 知识库入口区域 ==================== */
.knowledge-section {
    background: var(--bg-secondary);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.knowledge-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    overflow: hidden;
}

.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.02), rgba(88, 86, 214, 0.02));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 122, 255, 0.1);
}

.knowledge-card:hover::before {
    opacity: 1;
}

.card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.card-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
}

.card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
}

.knowledge-card:hover .card-arrow {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* ==================== 自动化工具区域 ==================== */
.tools-section {
    background: var(--bg-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 190px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
    background: var(--bg-primary);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.tool-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    color: white;
    border-radius: var(--radius-full);
}

.tool-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.tool-icon svg {
    width: 100%;
    height: 100%;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.35;
}

.tool-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all var(--transition-fast);
    margin-top: auto;
}

.tool-link:hover {
    color: #0062CC;
}

.tool-link svg {
    transition: transform var(--transition-fast);
}

.tool-link:hover svg {
    transform: translateX(4px);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: 16px;
}

.footer-logo-mark,
.footer-brand .brand-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 滚动动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== Hero区域增强 ==================== */

.hero-badge {
    display: inline-block;
    padding: 9px 18px;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.1), rgba(124, 58, 237, 0.1));
    color: #d51f46;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 36, 66, 0.16);
    box-shadow: 0 12px 30px rgba(255, 36, 66, 0.08);
}

.gradient-ai {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 30px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 48px rgba(40, 52, 84, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    min-width: 210px;
    padding: 22px 30px;
}

.stat-number {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    align-self: stretch;
    height: auto;
    background: rgba(210, 210, 215, 0.8);
}

/* ==================== 学习路径推荐 ==================== */

.recommendation-section {
    background: var(--bg-primary);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

/* 4列固定布局 */
.paths-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

/* 6列布局(2行3列) */
.paths-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.path-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 34px;
    transition: all var(--transition-base);
    border: 1px solid rgba(210, 210, 215, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.path-card:hover::before {
    opacity: 1;
}

.path-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.11);
    border-color: rgba(0, 122, 255, 0.1);
    background: var(--bg-primary);
}

.path-card.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(91, 33, 182, 0.05));
    border-color: rgba(124, 58, 237, 0.2);
}

.path-card.featured:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.path-badge {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    padding: 6px 12px;
    background: linear-gradient(135deg, #FF9F0A, #FF6B00);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.path-icon {
    font-size: 48px;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-base);
}

.path-card:hover .path-icon {
    transform: scale(1.1) rotate(5deg);
}

.path-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.path-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    flex-grow: 1;
}

.path-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 6px;
}

.path-list li {
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 28px;
    position: relative;
    font-size: 13px;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    line-height: 1.4;
}

.path-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.path-list li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 700;
    font-size: 10px;
}

.path-list li.more-link {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    cursor: default;
}

.path-list li.more-link::before,
.path-list li.more-link::after {
    display: none;
}

.path-list li.more-link:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.15));
}

.path-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #FF2442 0%, #7C3AED 100%);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(255, 36, 66, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    width: 100%;
}

.path-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.path-link:hover {
    gap: 12px;
    box-shadow: 0 8px 24px rgba(255, 36, 66, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px);
}

.path-link:hover::before {
    opacity: 1;
}

.path-link svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.path-link:hover svg {
    transform: translateX(4px);
}

.path-link span {
    position: relative;
    z-index: 1;
}

/* ==================== 最近学习 ==================== */

.recent-learning {
    margin-top: var(--spacing-3xl);
}

.recent-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recent-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.recent-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.recent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.recent-content {
    flex: 1;
}

.recent-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.recent-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 13px;
}

.recent-tag {
    color: var(--text-secondary);
}

.recent-time {
    color: var(--text-tertiary);
}

.recent-action {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.recent-action:hover {
    background: rgba(0, 122, 255, 0.1);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-3xl);
    color: var(--text-tertiary);
}

.empty-state p {
    font-size: 14px;
}

/* ==================== 分板块样式 ==================== */

/* 板块网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--spacing-xl);
}

.category-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    transition: opacity var(--transition-base);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-secondary);
}

.category-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.category-card .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.category-card .description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.category-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 13px;
    color: var(--text-tertiary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.category-arrow {
    position: absolute;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    transition: all var(--transition-base);
}

.category-card:hover .category-arrow {
    transform: translateX(4px) scale(1.1);
}

/* 进度统计区域 */
.progress-section {
    background: var(--bg-secondary);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 40px;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 板块详情页样式 ==================== */

/* 返回导航 */
.back-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-blue);
}

.back-link svg {
    transition: transform var(--transition-fast);
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* 板块详情 */
.category-detail {
    min-height: 60vh;
}

.category-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.category-header .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 48px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-secondary);
}

.category-header h1 {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.category-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.category-header .description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 板块进度条 ==================== */

.category-progress {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.progress-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.progress-bar-bg {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-stats {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 学习路径时间线 */
.learning-path {
    max-width: 900px;
    margin: 0 auto;
}

.path-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.path-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.path-timeline {
    position: relative;
}

.path-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color), transparent);
}

.path-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: var(--spacing-xl);
}

.path-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
    z-index: 1;
}

.path-item:hover .path-marker {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.path-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.path-content:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.path-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.path-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.completed-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-green);
    color: white;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.path-content .desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.path-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.path-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.path-tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
}

.path-duration {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    border-radius: var(--radius-full);
}

/* 响应式优化 - 平板 */
@media (max-width: 1024px) {
    .paths-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式优化 - 手机 */
@media (max-width: 768px) {
    body {
        padding-top: 108px;
    }

    /* 容器优化 */
    .nav-container,
    .section-container,
    .hero-container {
        padding: 0 var(--spacing-md);
    }

    .navbar {
        padding: 8px 0 10px;
    }

    .nav-container {
        height: auto;
        min-height: 64px;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .nav-logo {
        width: 100%;
        justify-content: center;
        padding: 6px 10px;
        font-size: 16px;
        gap: 10px;
    }

    .nav-logo-text {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hero区域 */
    .hero {
        padding: 58px 0 48px;
        min-height: auto;
    }

    .hero-background {
        display: none;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .hero-tags {
        margin-bottom: 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-bottom: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
        align-self: center;
    }

    /* 路径网格 - 单列 */
    .paths-grid,
    .paths-grid-4,
    .paths-grid-6 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* 工具网格 - 单列 */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .path-card {
        padding: var(--spacing-lg);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .path-card:active {
        transform: scale(0.98);
        background: var(--bg-primary);
    }

    .path-icon {
        font-size: 48px;
        margin-bottom: var(--spacing-md);
    }

    .tool-card {
        padding: var(--spacing-lg);
    }

    .path-card h3,
    .tool-card h3 {
        font-size: 18px;
        margin-bottom: var(--spacing-xs);
    }

    .path-card p,
    .tool-card p {
        font-size: 13px;
        margin-bottom: var(--spacing-sm);
    }

    .path-list {
        display: none;
    }

    .path-link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        margin-top: var(--spacing-md);
        background: linear-gradient(135deg, #FF2442 0%, #7C3AED 100%);
        border-radius: 8px;
        display: flex !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: rgba(255, 36, 66, 0.3);
        font-size: 15px;
        cursor: pointer;
    }

    .path-link:active {
        background: linear-gradient(135deg, #E5213A 0%, #6B34B8 100%);
        transform: scale(0.98);
    }

    .nav-menu {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-item a {
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.2;
        background: var(--bg-secondary);
        color: var(--text-primary);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 122, 255, 0.2);
    }

    .btn:active {
        transform: scale(0.97);
    }

    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-item {
        flex-wrap: wrap;
    }

    .recent-action {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-sm);
    }

    /* 详情页移动端适配 */
    .detail-container {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-lg);
        z-index: 0;
    }

    .topic-items {
        max-height: 300px;
        overflow-y: auto;
    }

    .topic-item {
        padding: var(--spacing-md);
        min-height: 48px;
    }

    .detail-main {
        padding: var(--spacing-lg);
        min-height: 500px;
        position: relative;
        z-index: 1;
    }

    .access-notice-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
        padding: 18px;
        margin: var(--spacing-xl) 0 0;
    }

    .access-notice-btn {
        width: 100%;
        min-height: 46px;
    }

    .quick-start {
        grid-template-columns: 1fr;
    }

    .quick-start-card {
        min-height: 48px;
    }

    .topic-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .topic-content {
        min-height: auto;
    }

    .topic-detail {
        max-width: 100%;
        padding: var(--spacing-md);
        background: var(--bg-primary);
        border-radius: var(--radius-lg);
        margin-top: var(--spacing-md);
    }

    .topic-detail-header {
        margin-bottom: var(--spacing-lg);
    }

    .topic-detail-title {
        font-size: 24px;
        margin-bottom: var(--spacing-md);
    }

    .topic-detail-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .topic-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .topic-actions .btn-primary,
    .topic-actions .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-md);
        min-height: 48px;
    }

    .topic-note {
        flex-direction: column;
        padding: var(--spacing-md);
    }

    .topic-note .note-icon {
        font-size: 20px;
    }

    .topic-note .note-content strong {
        font-size: 13px;
    }

    .topic-note .note-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 116px;
    }

    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .nav-logo {
        font-size: 15px;
    }

    .nav-logo-text {
        font-size: 14px;
    }

    .nav-item a {
        padding: 7px 10px;
        font-size: 13px;
    }

    .section-container {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(24px, 8vw, 32px);
    }

    .hero-buttons {
        gap: var(--spacing-xs);
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(0, 122, 255, 0.2);
    }

    .btn:active {
        transform: scale(0.97);
    }

    .category-card,
    .path-card,
    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 24px;
    }

    .path-item {
        padding-left: 56px;
    }

    .path-marker {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .path-link {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* 详情页小屏幕适配 */
    .detail-main {
        padding: var(--spacing-md);
    }

    .access-notice-title {
        font-size: 16px;
    }

    .access-notice-text {
        font-size: 13px;
    }

    .topic-detail-title {
        font-size: 20px;
    }

    .topic-detail-description {
        font-size: 14px;
    }

    .topic-badge {
        font-size: 12px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .topic-tags .tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .topic-actions {
        gap: var(--spacing-xs);
    }

    .topic-actions .btn-primary,
    .topic-actions .btn-secondary {
        font-size: 14px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ==================== 新的板块详情页布局 ==================== */

.category-detail-new {
    min-height: calc(100vh - 56px);
    background: var(--bg-secondary);
}

.detail-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
}

/* 左侧边栏 */
.detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.back-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-progress {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.topic-list-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.topic-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.topic-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: rgba(255, 36, 66, 0.2);
}

.topic-item:hover {
    background: var(--bg-secondary);
}

.topic-item:active {
    background: rgba(255, 36, 66, 0.08);
    transform: scale(0.98);
}

.topic-item.active {
    background: var(--bg-secondary);
    box-shadow: inset 3px 0 0 0 var(--primary-blue);
}

.topic-item.completed .topic-marker {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.topic-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.topic-info {
    flex: 1;
    min-width: 0;
}

.topic-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}


/* 右侧内容区 */
.detail-main {
    flex: 1;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    overflow-y: auto;
    max-height: calc(100vh - 56px);
    position: relative;
    z-index: 1;
}

.category-header .badge-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 48px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-secondary);
}

.category-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.access-notice-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: var(--spacing-2xl) auto 0;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 247, 0.96));
    border: 1px solid rgba(255, 36, 66, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 34px rgba(255, 36, 66, 0.06);
}

.access-notice-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.12), rgba(124, 58, 237, 0.12));
    border-radius: 16px;
}

.access-notice-content {
    flex: 1;
    min-width: 0;
}

.access-notice-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.access-notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.access-notice-account {
    display: inline-block;
    margin: 0 4px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 36, 66, 0.1);
    color: #D91E45;
    font-weight: 700;
}

.access-notice-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FF2442, #7C3AED);
    box-shadow: 0 10px 24px rgba(255, 36, 66, 0.18);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.access-notice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 36, 66, 0.22);
}

.access-notice-btn:active {
    transform: scale(0.98);
}

.topic-content {
    min-height: 400px;
    position: relative;
    z-index: 2;
}

/* 欢迎页 */
.welcome-content {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.welcome-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.quick-start {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.quick-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.quick-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.quick-info {
    flex: 1;
    min-width: 0;
}

.quick-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.quick-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主题详情 */
.topic-detail {
    max-width: 800px;
    margin: 0 auto;
}

.topic-detail-header {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.topic-detail-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.topic-detail-info {
    flex: 1;
}

.topic-detail h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.topic-detail-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.topic-detail-tags .tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
}

.topic-detail-tags .tag.completed {
    background: var(--primary-green);
    color: white;
}

.topic-detail-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}


.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--primary-blue);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-xl);
}

.btn-start:hover {
    background: #0062CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.topic-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary-blue);
}

.nav-btn.next {
    margin-left: auto;
}

/* ==================== 千帆排行榜结果样式 ==================== */

/* 千帆结果容器 */
.qianfan-result-card {
    display: grid;
    grid-template-columns: auto 100px 1fr auto;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.qianfan-result-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

/* 排名徽章 */
.qianfan-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.rank-number {
    font-size: 18px;
    font-weight: 700;
}

/* 前三名特殊样式 */
.qianfan-result-card.rank-1 .qianfan-rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.qianfan-result-card.rank-1 .rank-number {
    font-size: 24px;
}

.qianfan-result-card.rank-2 .qianfan-rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.qianfan-result-card.rank-3 .qianfan-rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

.qianfan-result-card.rank-other .qianfan-rank-badge {
    background: var(--bg-tertiary);
}

/* 封面图 */
.qianfan-cover {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.qianfan-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区域 */
.qianfan-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
}

.qianfan-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.qianfan-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.qianfan-avatar {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.qianfan-author-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.qianfan-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 统计数据 */
.qianfan-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.qianfan-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
}

.qianfan-stat:hover {
    background: var(--bg-tertiary);
}

/* 商业指标 */
.qianfan-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.qianfan-metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: #10B981;
    font-weight: 500;
}

.qianfan-metric:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* 操作按钮 */
.qianfan-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    justify-content: center;
}

.qianfan-btn {
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.qianfan-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-blue);
}

.qianfan-btn-view {
    color: var(--primary-blue);
    text-decoration: none;
    text-align: center;
}

.qianfan-btn-copy {
    color: var(--primary-blue);
}

.qianfan-btn-delete {
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.2);
}

.qianfan-btn-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #FF3B30;
}

/* 空结果状态 */
.empty-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.empty-hint {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .qianfan-result-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .qianfan-rank-badge {
        grid-row: 1;
        grid-column: 1;
    }

    .qianfan-cover {
        grid-row: 1 / 3;
        grid-column: 2;
        width: 80px;
        height: 80px;
    }

    .qianfan-content {
        grid-row: 2;
        grid-column: 1 / 3;
    }

    .qianfan-actions {
        grid-row: 3;
        grid-column: 1 / 3;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .qianfan-stats {
        gap: var(--spacing-xs);
    }

    .qianfan-stat {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* ==================== 板块详情页面样式补充 ==================== */

/* 进度条相关样式 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.progress-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
}

.progress-bar-bg {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-stats {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

/* 主题列表项新样式 */
.topic-item-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

.topic-item-order {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.topic-item.active .topic-item-order {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.topic-item.completed .topic-item-order {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.topic-item-info {
    flex: 1;
    min-width: 0;
}

.topic-item-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-item-desc {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.topic-item-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.topic-item:hover .topic-item-arrow {
    opacity: 1;
}

/* 板块头部样式 */
.header-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.header-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
}

.header-info {
    flex: 1;
}

.header-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.header-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.header-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--text-tertiary);
}

.header-progress {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-percent {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

.progress-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* 快速开始卡片 */
.quick-start-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 36, 66, 0.2);
}

.quick-start-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-start-card:active {
    background: rgba(255, 36, 66, 0.05);
    transform: scale(0.98);
}

.quick-start-order {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.quick-start-content {
    flex: 1;
    min-width: 0;
}

.quick-start-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.quick-start-content p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-start-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.quick-start-card:hover .quick-start-arrow {
    opacity: 1;
}

/* 主题详情页 */
.topic-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.topic-detail-header {
    margin-bottom: var(--spacing-xl);
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.topic-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.topic-tags .tag {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-blue);
    background: rgba(0, 122, 255, 0.1);
    border-radius: var(--radius-full);
}

.topic-readers {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--text-tertiary);
}

.topic-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.topic-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.topic-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    -webkit-tap-highlight-color: rgba(255, 36, 66, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.topic-note {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.05));
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: var(--radius-lg);
}

.note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.note-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.note-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: var(--spacing-3xl);
}

.error-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
}

.error-state h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.error-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==================== 激活码模态框样式 ==================== */
.activation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.activation-modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.activation-modal-header {
    padding: var(--spacing-2xl);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.activation-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.activation-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--spacing-sm) 0;
}

.activation-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.activation-modal-body {
    padding: var(--spacing-2xl);
}

.activation-input-group {
    margin-bottom: var(--spacing-md);
}

.activation-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.activation-input:focus {
    outline: none;
    border-color: #FF2442;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.activation-input::placeholder {
    color: var(--text-placeholder);
}

.activation-hint {
    margin-top: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.activation-error {
    padding: var(--spacing-sm) var(--spacing-md);
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-md);
    color: #DC2626;
    font-size: 14px;
    text-align: center;
}

.activation-modal-footer {
    padding: var(--spacing-xl) var(--spacing-2xl);
    display: flex;
    gap: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--border-light);
}

.btn-confirm {
    background: linear-gradient(135deg, #FF2442 0%, #7C3AED 100%);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .activation-modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }

    .activation-modal-header,
    .activation-modal-body,
    .activation-modal-footer {
        padding: var(--spacing-xl);
    }

    .activation-modal-footer {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }
}
/* ==================== 滚动好评专区样式 ==================== */
/* 1. 缩小整个区块的上下间距 */
.testimonial-section {
    background-color: #f9fafb; 
    padding: 40px 0 20px 0; /* 原来是 60px，现在改小让它更紧凑 */
    overflow: hidden; 
}

/* 2. 专门缩小这里的标题字号，不影响其他板块 */
.testimonial-section .section-title {
    font-size: 28px !important; /* 原来是自适应大字号，现在固定为协调的大小 */
    margin-bottom: 8px !important; /* 减小和副标题的距离 */
}

/* 3. 缩小副标题字号 */
.testimonial-section .section-subtitle {
    font-size: 14px !important;
    color: #888;
}

/* 4. 缩小标题和下方卡片之间的空白 */
.marquee-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 24px !important; /* 原来是 40px，现在拉近一点 */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* --- 下面的卡片滚动动画样式保持不变 --- */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollMarquee 50s linear infinite;
    padding: 10px 20px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.reviewer-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.2;
}

.reviewer-info span {
    font-size: 12px;
    color: #888;
}

.review-stars {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* 头像颜色区分 */
.bg-1 { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.bg-2 { background: linear-gradient(135deg, #4FACFE, #00F2FE); }
.bg-3 { background: linear-gradient(135deg, #43E97B, #38F9D7); }
.bg-4 { background: linear-gradient(135deg, #FA709A, #FEE140); }
.bg-5 { background: linear-gradient(135deg, #667EEA, #764BA2); }
.bg-6 { background: linear-gradient(135deg, #f6d365, #fda085); }
.bg-7 { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.bg-8 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.bg-9 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.bg-10{ background: linear-gradient(135deg, #13547a, #80d0c7); }

/* ==================== 分类页卡片化改版 ==================== */

.category-detail-new {
    background:
        radial-gradient(circle at top left, rgba(255, 36, 66, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 122, 255, 0.07), transparent 24%),
        linear-gradient(180deg, #fafafc 0%, #f4f5f8 100%);
}

.detail-container {
    display: block;
    max-width: 1240px;
    min-height: auto;
    padding: 40px 24px 72px;
}

.detail-main {
    max-height: none;
    overflow: visible;
    padding: 0;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: 18px;
}

.category-header {
    margin-bottom: var(--spacing-xl);
    padding: 28px 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 248, 0.96)),
        linear-gradient(120deg, rgba(0, 122, 255, 0.08), rgba(255, 36, 66, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(29, 29, 31, 0.08);
    text-align: left;
}

.category-intro {
    margin-bottom: var(--spacing-xl);
}

.category-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: center;
    padding: 24px 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(29, 29, 31, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.category-intro-copy {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-intro-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.14), rgba(124, 58, 237, 0.12));
    font-size: 34px;
}

.category-intro-text h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.category-intro-text p {
    margin: 0;
    max-width: 720px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.category-progress-card {
    width: 100%;
    margin-bottom: 0;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(214, 214, 220, 0.75);
    border-radius: 20px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-content {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 0;
}

.header-icon {
    width: 92px;
    height: 92px;
    font-size: 44px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.header-title {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.header-subtitle {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.header-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-item {
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.78);
    color: #5c5c63;
}

.topic-grid-section {
    margin-bottom: var(--spacing-xl);
}

.topic-grid-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: 18px;
}

.topic-grid-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d91e45;
}

.topic-grid-title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.topic-grid-hint {
    max-width: 320px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: right;
}

.topic-search-panel {
    margin-bottom: 18px;
}

.topic-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 214, 220, 0.9);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(29, 29, 31, 0.04);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.topic-search-box:focus-within {
    border-color: rgba(255, 36, 66, 0.24);
    box-shadow: 0 18px 36px rgba(255, 36, 66, 0.08);
    color: #d91e45;
}

.topic-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
}

.topic-search-input::placeholder {
    color: #9b9ba2;
}

.topic-search-clear {
    display: none;
    border: none;
    background: rgba(29, 29, 31, 0.06);
    color: #6f6f77;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.topic-search-clear.show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topic-search-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.skill-resource-section {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(64, 135, 255, 0.2);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 8%, rgba(38, 198, 218, 0.18), transparent 34%),
        radial-gradient(circle at 8% 92%, rgba(34, 118, 255, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(247, 252, 255, 0.98), rgba(242, 248, 255, 0.94));
    box-shadow: 0 24px 60px rgba(28, 92, 160, 0.09);
}

.skill-resource-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(63, 119, 180, 0.14);
}

.skill-resource-eyebrow {
    margin: 0 0 8px;
    color: #0879e8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.skill-resource-heading h3 {
    margin: 0;
    color: #13233a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.skill-resource-heading p:not(.skill-resource-eyebrow) {
    margin: 10px 0 0;
    color: #62728a;
    font-size: 14px;
}

.skill-resource-count {
    flex-shrink: 0;
    padding: 8px 13px;
    color: #0879e8;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(8, 121, 232, 0.16);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.skill-install-guide {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 2.3fr);
    gap: 22px;
    align-items: center;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.skill-install-intro {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-install-kicker {
    color: #0879e8;
    font-size: 12px;
    font-weight: 800;
}

.skill-install-intro strong {
    color: #17273d;
    font-size: 17px;
    line-height: 1.4;
}

.skill-install-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.skill-install-step {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 62px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(235, 246, 255, 0.76);
}

.skill-install-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0879e8, #15b8cf);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.skill-install-step p {
    margin: 1px 0 0;
    color: #4f6178;
    font-size: 12px;
    line-height: 1.55;
}

.skill-install-compatibility {
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: #73829a;
    font-size: 12px;
    line-height: 1.6;
}

.skill-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.skill-resource-card {
    min-width: 0;
    min-height: 230px;
    border-color: rgba(8, 121, 232, 0.17);
    background:
        radial-gradient(circle at 94% 4%, rgba(38, 198, 218, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96));
}

.skill-resource-card:hover {
    border-color: rgba(8, 121, 232, 0.32);
    background:
        radial-gradient(circle at 94% 4%, rgba(38, 198, 218, 0.18), transparent 36%),
        linear-gradient(180deg, #ffffff, #f2f9ff);
    box-shadow: 0 24px 52px rgba(8, 121, 232, 0.12);
}

.skill-resource-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.skill-resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, #0879e8, #15b8cf);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(8, 121, 232, 0.18);
    font-size: 21px;
    font-weight: 800;
}

.skill-resource-badge {
    padding: 7px 11px;
    color: #0879e8;
    background: rgba(8, 121, 232, 0.08);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.skill-resource-tags {
    justify-content: flex-start;
}

.skill-resource-card .topic-card-action,
.skill-resource-card .topic-item-arrow {
    color: #0879e8;
}

.skill-resource-card .topic-card-action.is-pending {
    color: #7b8999;
}

.skill-resource-card .topic-item-content,
.skill-resource-card .topic-item-info,
.skill-resource-card .topic-item-desc {
    min-width: 0;
}

.skill-resource-card .topic-item-desc {
    overflow-wrap: anywhere;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 196px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 251, 253, 0.96));
    border: 1px solid rgba(214, 214, 220, 0.9);
    box-shadow: 0 16px 40px rgba(29, 29, 31, 0.05);
}

/* Skill cards deliberately stay compact as the catalogue grows: the key
 * benefit remains readable, while the grid can show more workflows at once. */
.skill-resource-card.topic-card {
    gap: 8px;
    min-height: 156px;
    padding: 12px;
    border-radius: 18px;
}

.skill-resource-card .skill-resource-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 16px;
}

.skill-resource-card .skill-resource-badge {
    padding: 4px 7px;
    font-size: 9px;
}

.skill-resource-card .topic-item-title {
    font-size: 14px;
    line-height: 1.35;
}

.skill-resource-card .topic-item-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.55;
}

.topic-card:hover {
    background: linear-gradient(180deg, #ffffff, #fff7f9);
    border-color: rgba(255, 36, 66, 0.18);
    box-shadow: 0 24px 50px rgba(255, 36, 66, 0.08);
    transform: translateY(-4px);
}

.topic-card:active {
    transform: scale(0.985);
}

.topic-card.active {
    border-color: rgba(255, 180, 0, 0.38);
    box-shadow: 0 24px 52px rgba(255, 180, 0, 0.14);
    background: linear-gradient(180deg, #fffef7, #fff9df);
}

.topic-card.completed {
    border-color: rgba(48, 209, 88, 0.3);
    background: linear-gradient(180deg, #ffffff, #f4fff7);
}

.topic-card-feedback {
    border-color: rgba(236, 72, 153, 0.2);
    background:
        radial-gradient(circle at 86% 18%, rgba(236, 72, 153, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff, #fff8fb);
}

.topic-card-feedback .topic-item-order {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}

.topic-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.topic-item-order {
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.14), rgba(124, 58, 237, 0.12));
    color: #d91e45;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.topic-item.active .topic-item-order {
    background: linear-gradient(135deg, #ffbf1f, #ffda57);
    border-color: transparent;
    color: #6b4300;
}

.topic-item.completed .topic-item-order {
    background: linear-gradient(135deg, #30d158, #34c759);
    border-color: transparent;
    color: white;
}


.topic-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.topic-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #575760;
    background: rgba(29, 29, 31, 0.05);
    border-radius: var(--radius-full);
}

.topic-item-content {
    align-items: flex-start;
}

.topic-item-info {
    gap: 12px;
}

.topic-item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
}

.topic-item-desc {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.6;
    color: #6f6f77;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.topic-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #d91e45;
}

.topic-item-arrow {
    opacity: 1;
    color: #d91e45;
}

.topic-similar-panel {
    margin-top: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(214, 214, 220, 0.8);
    border-radius: 24px;
}

.topic-similar-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.topic-similar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.topic-similar-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.topic-similar-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.topic-empty-state {
    grid-column: 1 / -1;
    padding: 40px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.76);
    border: 1px dashed rgba(214, 214, 220, 0.95);
    border-radius: 24px;
}

.topic-empty-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.topic-empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.topic-empty-state p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.topic-modal-open {
    overflow: hidden;
}

.topic-modal-overlay[hidden] {
    display: none !important;
}

.topic-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 20, 24, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topic-modal-card {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    padding: 30px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 250, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(17, 17, 19, 0.24);
    overflow-y: auto;
}

.topic-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(29, 29, 31, 0.06);
    color: #5d5d66;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topic-modal-close:hover {
    background: rgba(29, 29, 31, 0.1);
    color: var(--text-primary);
}

.topic-modal-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.topic-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.topic-modal-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topic-modal-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.14), rgba(255, 191, 31, 0.22));
    color: #d91e45;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.topic-modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topic-modal-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    background: rgba(29, 29, 31, 0.06);
    color: #585861;
    font-size: 13px;
    font-weight: 600;
}

.topic-modal-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.topic-modal-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.topic-modal-image-wrap {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(214, 214, 220, 0.68);
}

.topic-modal-image {
    display: block;
    width: 100%;
    height: auto;
}

.topic-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topic-modal-primary,
.topic-modal-secondary {
    min-height: 50px;
}

.topic-modal-primary:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
}

.topic-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(214, 214, 220, 0.72);
}

.topic-modal-note-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.topic-modal-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666670;
}

.topic-content {
    min-height: auto;
}

.welcome-content,
.topic-detail {
    max-width: none;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 24px 55px rgba(29, 29, 31, 0.06);
}

.welcome-content {
    text-align: left;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.welcome-content h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.welcome-content p {
    max-width: 560px;
    margin-bottom: 20px;
    font-size: 15px;
}

.quick-start {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-notice-card {
    max-width: none;
    margin-top: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .detail-container {
        padding: 32px 18px 56px;
    }

    .detail-topbar,
    .topic-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-intro-card {
        grid-template-columns: 1fr;
    }

    .category-progress-card,
    .topic-grid-hint {
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .topic-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-similar-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-start {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 20px 14px 40px;
    }

    .category-header,
    .category-intro-card,
    .category-progress-card,
    .welcome-content,
    .topic-detail,
    .access-notice-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .category-intro-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-intro-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 28px;
    }

    .category-intro-text h2 {
        font-size: 24px;
    }

    .category-intro-text p {
        font-size: 14px;
    }

    .header-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .header-icon {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }

    .header-title {
        font-size: 28px;
    }

    .header-subtitle {
        font-size: 15px;
    }

    .topic-grid-title {
        font-size: 24px;
    }

    .topic-search-box {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .topic-search-input {
        font-size: 14px;
    }

    .topic-card {
        min-height: 0;
        padding: 18px;
        border-radius: 20px;
    }

    .skill-resource-section {
        margin-top: 20px;
        padding: 22px 16px;
        border-radius: 24px;
    }

    .skill-resource-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .skill-install-guide {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .skill-install-steps,
    .skill-resource-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skill-install-step {
        min-height: 0;
    }

    .topic-item-order {
        min-width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .topic-item-title {
        font-size: 18px;
    }

    .topic-item-desc {
        -webkit-line-clamp: 4;
    }

    .topic-similar-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .topic-modal-overlay {
        padding: 16px;
    }

    .topic-modal-card {
        padding: 24px 18px;
        border-radius: 22px;
        max-height: calc(100vh - 32px);
    }

    .topic-modal-meta,
    .topic-modal-actions {
        gap: 10px;
    }

    .topic-modal-title {
        font-size: 26px;
    }

    .topic-modal-description {
        font-size: 15px;
    }

    .topic-modal-primary,
    .topic-modal-secondary {
        width: 100%;
        justify-content: center;
    }

    .topic-similar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-similar-list {
        grid-template-columns: 1fr;
    }
}

/* 分类页学习路径优化：入口、重点方向与模块目录共用一套蓝白视觉。 */
.category-detail-new {
    background:
        linear-gradient(rgba(52, 126, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 126, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 88% 5%, rgba(60, 143, 255, 0.13), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    background-size: 56px 56px, 56px 56px, auto, auto;
}

.detail-container {
    max-width: 1320px;
    padding-top: 24px;
}

.detail-topbar {
    margin-bottom: 14px;
}

.learning-path-switcher {
    display: flex;
    gap: 2px;
    margin: 0 -6px 24px;
    padding: 5px 6px;
    overflow-x: auto;
    border: 1px solid rgba(34, 114, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 36px rgba(37, 104, 180, 0.06);
    scrollbar-width: none;
}

.learning-path-switcher::-webkit-scrollbar {
    display: none;
}

.learning-path-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 11px 14px;
    color: #51647d;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: 180ms ease;
}

.learning-path-link:hover {
    color: #076dff;
    background: rgba(12, 116, 255, 0.06);
}

.learning-path-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #147dff, #0965e8);
    box-shadow: 0 8px 20px rgba(9, 101, 232, 0.2);
}

.learning-path-index {
    color: #0c73f5;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
}

.learning-path-link.is-active .learning-path-index {
    color: #d7eaff;
}

.category-header {
    margin-bottom: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.header-content {
    display: block;
}

.header-icon {
    display: inline-flex;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    font-size: 30px;
    line-height: 1;
}

.header-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: right center;
}

.header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: clamp(30px, 3vw, 42px);
}

.header-subtitle {
    margin-bottom: 10px;
    color: #687990;
    font-size: 16px;
}

.stat-item {
    color: #527092;
    background: rgba(239, 246, 255, 0.8);
}

.category-focus-section {
    margin-bottom: 44px;
}

.category-focus-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
}

.category-focus-eyebrow,
.recommendation-kicker,
.learning-module-kicker {
    margin: 0 0 8px;
    color: #0a72ed;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-focus-heading h2 {
    margin: 0;
    color: #14253d;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.035em;
}

.category-focus-heading > div:first-child > p:last-child {
    margin: 9px 0 0;
    color: #718198;
    font-size: 15px;
}

.category-focus-progress {
    flex: 0 0 244px;
    width: auto;
    padding: 14px 16px;
    border-color: rgba(28, 117, 245, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.category-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 12px;
}

.category-focus-card {
    display: flex;
    min-height: 128px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(42, 87, 135, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    color: #1b2b40;
    cursor: pointer;
    text-align: left;
    transition: 180ms ease;
}

.category-focus-card:hover,
.category-focus-card.is-active {
    border-color: #1678f2;
    background: linear-gradient(145deg, #ffffff, #f2f8ff);
    box-shadow: 0 16px 34px rgba(27, 111, 220, 0.1);
    transform: translateY(-2px);
}

.category-focus-card.is-active::after {
    width: 28px;
    height: 3px;
    margin-top: 12px;
    border-radius: 99px;
    background: #147dff;
    content: '';
}

.category-focus-card-title {
    font-size: 17px;
    font-weight: 800;
}

.category-focus-card-desc {
    margin-top: 8px;
    color: #708097;
    font-size: 13px;
    line-height: 1.6;
}

.category-focus-card-count {
    margin-top: auto;
    padding-top: 10px;
    color: #0a72ed;
    font-size: 12px;
    font-weight: 700;
}

.category-recommendation {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 0;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(23, 114, 238, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 42px rgba(37, 105, 184, 0.07);
}

.category-recommendation-main,
.category-recommendation-related {
    padding: 20px;
}

.category-recommendation-main {
    background: linear-gradient(120deg, rgba(222, 238, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.category-recommendation-related {
    border-left: 1px solid rgba(39, 106, 185, 0.12);
}

.category-recommendation-related > p {
    margin: 0 0 10px;
    color: #58708e;
    font-size: 13px;
    font-weight: 700;
}

.focus-topic-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border: 0;
    background: transparent;
    color: #14253d;
    cursor: pointer;
    text-align: left;
}

.focus-topic-row + .focus-topic-row {
    border-top: 1px solid rgba(43, 105, 178, 0.1);
}

.focus-topic-row:hover {
    color: #086ff1;
}

.focus-topic-row svg {
    flex: 0 0 auto;
    margin-left: auto;
    color: #147dff;
}

.focus-topic-order,
.learning-module-topic-order {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #eaf3ff;
    color: #0a72ed;
    font-size: 12px;
    font-weight: 800;
}

.focus-topic-row.is-primary .focus-topic-order {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #147dff;
    color: #ffffff;
}

.focus-topic-copy,
.learning-module-topic-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.focus-topic-copy strong,
.learning-module-topic-copy strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.focus-topic-copy small,
.learning-module-topic-copy small {
    overflow: hidden;
    color: #7c8ca1;
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-grid-section {
    margin-bottom: 34px;
}

.topic-grid-eyebrow {
    color: #0a72ed;
}

.topic-list {
    display: block;
}

.topic-list.is-search-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.learning-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.learning-module {
    overflow: hidden;
    border: 1px solid rgba(34, 93, 160, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(36, 98, 169, 0.05);
}

.learning-module-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid rgba(34, 93, 160, 0.1);
    background: linear-gradient(135deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.86));
}

.learning-module-heading h3 {
    margin: 0;
    color: #17283f;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.learning-module-heading p {
    margin: 6px 0 0;
    color: #718198;
    font-size: 13px;
    line-height: 1.55;
}

.learning-module-count {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 99px;
    background: #eef6ff;
    color: #1777ed;
    font-size: 11px;
    font-weight: 800;
}

.learning-module-list {
    padding: 4px 18px;
}

.learning-module-topic {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid rgba(34, 93, 160, 0.09);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #243850;
    cursor: pointer;
    text-align: left;
    transition: 150ms ease;
}

.learning-module-topic:last-child {
    border-bottom: 0;
}

.learning-module-topic:hover,
.learning-module-topic.active {
    background: rgba(10, 114, 237, 0.045);
    box-shadow: none;
    color: #086ff1;
    transform: none;
}

.learning-module-topic:active {
    background: rgba(10, 114, 237, 0.08);
    transform: none;
}

.learning-module-topic-order {
    flex: 0 0 30px;
    min-width: 30px;
    padding: 0;
}

.learning-module-topic.completed .learning-module-topic-order {
    background: #dff7e9;
    color: #20965d;
}

.learning-module-topic-action {
    margin-left: auto;
    color: #7d8da2;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.learning-module-topic:hover .learning-module-topic-action {
    color: #0a72ed;
}

.learning-module-topic .topic-item-arrow {
    flex: 0 0 auto;
    color: #0a72ed;
}

.skill-resource-section {
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .category-focus-heading,
    .category-recommendation {
        grid-template-columns: 1fr;
    }

    .category-focus-heading {
        align-items: flex-start;
    }

    .category-focus-progress {
        width: 100%;
    }

    .category-recommendation-related {
        border-top: 1px solid rgba(39, 106, 185, 0.12);
        border-left: 0;
    }

    .topic-list.is-search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .learning-path-switcher {
        margin: 0 -2px 18px;
        border-radius: 15px;
    }

    .learning-path-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .category-header {
        margin-bottom: 22px;
    }

    .header-content {
        display: block;
    }

    .header-icon {
        font-size: 24px;
    }

    .header-icon img {
        width: 40px;
        height: 40px;
    }

    .category-focus-section {
        margin-bottom: 30px;
    }

    .category-focus-grid,
    .learning-module-grid,
    .topic-list.is-search-results {
        grid-template-columns: 1fr;
    }

    .category-focus-card {
        min-height: 108px;
    }

    .category-recommendation-main,
    .category-recommendation-related {
        padding: 16px;
    }

    .learning-module-heading,
    .learning-module-list {
        padding-left: 14px;
        padding-right: 14px;
    }

    .learning-module-topic-action {
        display: none;
    }
}

/* 参考图风格首屏优化 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search {
    min-width: 230px;
    height: 40px;
    padding: 0 12px 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9aa1ad;
    background: #ffffff;
    border: 1px solid rgba(226, 230, 238, 0.95);
    border-radius: 8px;
    font-size: 13px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    color: #ffffff;
    background: #ff2f4f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 47, 79, 0.18);
}

.hero-reference {
    min-height: 720px;
    padding: 116px 48px 64px;
    align-items: center;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 47, 79, 0.08), transparent 28%),
        radial-gradient(circle at 78% 28%, rgba(56, 128, 255, 0.1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.hero-reference::before {
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 47, 79, 0.04) 48%, transparent 70%),
        radial-gradient(ellipse at 52% 55%, rgba(255, 47, 79, 0.06), transparent 45%);
    animation: none;
}

.hero-reference .hero-container {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 48px;
    align-items: center;
    text-align: left;
}

.hero-copy {
    min-width: 0;
}

.hero-reference .hero-badge {
    color: #4f5663;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 47, 79, 0.16);
    box-shadow: 0 12px 30px rgba(40, 52, 84, 0.06);
}

.hero-reference .hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #ff2f4f;
}

.hero-reference .hero-title {
    font-size: clamp(56px, 7.2vw, 92px);
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 26px;
}

.hero-reference .gradient-text {
    background: linear-gradient(135deg, #111827 0%, #1d2433 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-reference .gradient-ai {
    background: linear-gradient(135deg, #ff334f 0%, #ff5f75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.hero-reference .hero-subtitle {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    margin-bottom: 14px;
}

.hero-reference .hero-description {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: 18px;
    color: #7a828e;
}

.hero-reference .hero-tags {
    justify-content: flex-start;
    margin-bottom: 30px;
    gap: 14px;
}

.hero-reference .hero-tags span {
    min-width: 142px;
    min-height: 58px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #3d4350;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 230, 238, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(40, 52, 84, 0.06);
}

.hero-reference .hero-tags b {
    color: #ff2f4f;
    font-weight: 900;
}

.hero-reference .hero-stats {
    width: 100%;
    max-width: 760px;
    display: flex;
    margin: 0 0 28px;
    padding: 0;
    gap: 10px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-reference .stat-item {
    min-width: 0;
    flex: 0 1 auto;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 26px rgba(48, 64, 96, 0.07);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.hero-reference .stat-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    color: #ff2f4f;
    background: rgba(255, 47, 79, 0.09);
    font-size: 13px;
    font-weight: 800;
}

.hero-reference .stat-number {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.hero-reference .stat-text {
    font-size: 13px;
    line-height: 1;
    margin-top: 0;
    white-space: nowrap;
}

.hero-reference .stat-divider {
    display: none;
}

.hero-reference .hero-buttons {
    width: 100%;
    max-width: 680px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: flex-start;
    gap: 12px;
}

.hero-reference .btn {
    min-width: 0;
    min-height: 50px;
    justify-content: center;
    border-radius: 10px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 15px;
    white-space: nowrap;
}

.hero-reference .btn-primary {
    background: linear-gradient(135deg, #ff2f4f, #ff5269);
    box-shadow: 0 14px 30px rgba(255, 47, 79, 0.28);
}

.hero-reference .btn-ai,
.hero-reference .btn-assistant {
    color: #222733;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 230, 238, 0.95);
    box-shadow: 0 10px 24px rgba(40, 52, 84, 0.07);
}

.hero-reference .hero-trust {
    margin-top: 28px;
    color: #9aa1ad;
    font-size: 14px;
}

.hero-showcase {
    position: relative;
    min-height: 530px;
}

.showcase-card {
    position: absolute;
    padding: 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 230, 238, 0.82);
    box-shadow: 0 22px 58px rgba(40, 52, 84, 0.11);
    backdrop-filter: blur(18px);
    transition:
        opacity var(--transition-base),
        filter var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.showcase-card span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ff2f4f;
    background: rgba(255, 47, 79, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.showcase-card strong {
    display: block;
    color: #1f2530;
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.showcase-card p,
.showcase-card li {
    color: #7a828e;
    font-size: 14px;
    line-height: 1.6;
}

.card-tool {
    top: 10px;
    right: 0;
    width: 330px;
    min-height: 285px;
    transform: rotate(-2deg);
}

.card-case {
    top: 160px;
    left: 10px;
    width: 310px;
    min-height: 300px;
    z-index: 2;
}

.card-sop {
    left: 92px;
    bottom: 0;
    width: 360px;
    min-height: 260px;
    z-index: 3;
}

.card-data {
    right: 10px;
    bottom: 18px;
    width: 286px;
    min-height: 210px;
    z-index: 4;
    transform: rotate(1deg);
}

.mini-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.mini-list i {
    padding: 10px 12px;
    border-radius: 8px;
    color: #7a828e;
    background: #f8f9fb;
    font-style: normal;
    font-size: 13px;
}

.case-image {
    height: 110px;
    margin-top: 18px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 66% 44%, rgba(255, 47, 79, 0.18), transparent 20%),
        linear-gradient(135deg, #fff0f3, #f6fbff);
}

.card-sop ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.card-data ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.card-sop li::before,
.card-data li::before {
    content: '✓';
    margin-right: 8px;
    color: #ff2f4f;
    font-weight: 900;
}

.data-spark {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: end;
    gap: 5px;
    width: 74px;
    height: 54px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(235, 246, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 30px rgba(0, 122, 255, 0.12);
}

.data-spark i {
    width: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.92), rgba(0, 122, 255, 0.22));
}

.data-spark i:nth-child(1) { height: 18px; }
.data-spark i:nth-child(2) { height: 30px; }
.data-spark i:nth-child(3) { height: 24px; }

.showcase-flow {
    position: absolute;
    right: 10px;
    bottom: -68px;
    width: 520px;
    z-index: 5;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 18px 46px rgba(48, 64, 96, 0.08);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.showcase-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.showcase-flow-steps a {
    min-width: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.showcase-flow-steps a:hover {
    color: var(--ios-blue);
}

.showcase-flow-steps b {
    width: 18px;
    height: 1px;
    flex: 0 0 18px;
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.18), rgba(0, 122, 255, 0.58));
}

.showcase-flow p {
    margin: 8px 0 0;
    color: #717b8b;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.sop-chart {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background:
        conic-gradient(#ff5f75 0 38%, #ffd6dd 38% 100%);
    opacity: 0.65;
}

@media (max-width: 1180px) {
    .nav-actions {
        display: none;
    }

    .hero-reference .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-reference .hero-description,
    .hero-reference .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-reference .hero-tags,
    .hero-reference .hero-buttons {
        justify-content: center;
    }

    .hero-showcase {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-reference {
        padding: 52px 16px 48px;
    }

    .hero-reference .hero-title {
        font-size: 32px;
    }

    .hero-reference .hero-subtitle {
        font-size: 19px;
    }

    .hero-reference .hero-description {
        font-size: 14px;
    }

    .hero-reference .hero-tags {
        gap: 8px;
    }

    .hero-reference .hero-tags span {
        min-width: auto;
        min-height: 0;
        padding: 8px 11px;
        border-radius: 999px;
    }

    .hero-reference .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-reference .stat-item {
        padding: 16px 12px;
        justify-content: flex-start;
    }

    .hero-reference .stat-divider {
        display: none;
    }

    .hero-reference .stat-number {
        font-size: 24px;
    }

    .hero-reference .btn {
        width: 100%;
        min-height: 52px;
    }
}

/* 首屏同款内容区统一 */
.recommendation-section,
.tools-section,
.resources-section {
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 47, 79, 0.055), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(255, 218, 226, 0.45), transparent 24%),
        linear-gradient(180deg, #fff 0%, #fff9fb 48%, #fff 100%);
}

.recommendation-section {
    padding-top: 0;
}

.recommendation-section .section-container {
    padding-top: 76px;
}

.section-title {
    color: #1f2530;
    letter-spacing: 0;
}

.section-subtitle {
    color: #8c939f;
}

.paths-grid-6 {
    gap: 22px;
}

.path-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 230, 238, 0.86);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(40, 52, 84, 0.055);
    backdrop-filter: blur(14px);
}

.path-card::before {
    height: 3px;
    background: linear-gradient(90deg, #ff2f4f, rgba(255, 47, 79, 0.18));
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 47, 79, 0.18);
    box-shadow: 0 24px 54px rgba(40, 52, 84, 0.09);
    background: rgba(255, 255, 255, 0.95);
}

.path-card.featured {
    background: linear-gradient(135deg, rgba(255, 47, 79, 0.045), rgba(255, 255, 255, 0.88));
    border-color: rgba(255, 47, 79, 0.16);
}

.path-card.featured:hover {
    border-color: rgba(255, 47, 79, 0.24);
}

.path-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(255, 47, 79, 0.08);
    font-size: 34px;
    filter: none;
}

.path-list li {
    color: #3f4652;
}

.path-list li::before {
    background: rgba(255, 47, 79, 0.1);
}

.path-list li::after {
    color: #ff2f4f;
}

.path-list li.more-link {
    color: #ff2f4f;
    background: rgba(255, 47, 79, 0.08);
}

.path-list li.more-link:hover {
    background: rgba(255, 47, 79, 0.12);
}

.path-link {
    background: linear-gradient(135deg, #ff2f4f, #ff5269);
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(255, 47, 79, 0.22);
    letter-spacing: 0;
}

.path-link:hover {
    box-shadow: 0 18px 34px rgba(255, 47, 79, 0.28);
}

.tools-grid {
    gap: 18px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(226, 230, 238, 0.82);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(40, 52, 84, 0.05);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 47, 79, 0.16);
    box-shadow: 0 22px 46px rgba(40, 52, 84, 0.085);
    background: rgba(255, 255, 255, 0.96);
}

.tool-card h3 {
    color: #1f2530;
}

.tool-card p {
    color: #8a929d;
}

.tool-icon svg rect:first-child {
    fill: #ff2f4f;
}

.tool-link {
    color: #ff2f4f;
}

.tool-link:hover {
    color: #e82442;
}

.testimonial-section {
    background:
        linear-gradient(180deg, #fff 0%, #fff9fb 100%) !important;
    padding-top: 28px !important;
}

.testimonial-section .review-card {
    border-color: rgba(226, 230, 238, 0.82);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(40, 52, 84, 0.055);
}

.testimonial-section .review-stars {
    color: #ff2f4f;
}

@media (max-width: 768px) {
    .hero-reference {
        min-height: auto;
    }

    .recommendation-section {
        padding-top: 0;
    }

    .recommendation-section .section-container {
        padding-top: 42px;
    }

    .path-link {
        background: linear-gradient(135deg, #ff2f4f, #ff5269);
    }
}

/* macOS 玻璃质感版本 */
:root {
    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-bg-strong: rgba(255, 255, 255, 0.74);
    --glass-border: rgba(255, 255, 255, 0.72);
    --glass-line: rgba(120, 135, 160, 0.18);
    --glass-shadow: 0 22px 70px rgba(45, 56, 82, 0.12);
    --glass-shadow-soft: 0 14px 42px rgba(45, 56, 82, 0.08);
    --glass-blur: blur(26px) saturate(1.35);
    --mac-red: #ff3155;
}

body {
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 72, 102, 0.13), transparent 28%),
        radial-gradient(circle at 78% 14%, rgba(117, 164, 255, 0.18), transparent 30%),
        radial-gradient(circle at 50% 72%, rgba(255, 210, 220, 0.26), transparent 34%),
        linear-gradient(180deg, #fbfcff 0%, #fff7fa 45%, #f8fbff 100%);
    color: #1f2530;
}

.navbar {
    background: rgba(255, 255, 255, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 38px rgba(45, 56, 82, 0.07);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.nav-item a {
    border: 1px solid transparent;
    border-radius: 999px;
}

.nav-item.active a,
.nav-item a:hover {
    color: #111827;
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 22px rgba(45, 56, 82, 0.08);
}

.nav-search,
.nav-cta,
.hero-reference .hero-badge,
.hero-reference .hero-tags span,
.hero-reference .hero-stats,
.hero-reference .btn-ai,
.hero-reference .btn-assistant,
.showcase-card,
.path-card,
.tool-card,
.testimonial-section .review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-soft);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.nav-search {
    color: #798293;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(45, 56, 82, 0.06);
}

.nav-cta {
    background: rgba(255, 49, 85, 0.92);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    box-shadow: 0 14px 34px rgba(255, 49, 85, 0.22);
}

.hero-reference {
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 49, 85, 0.16), transparent 30%),
        radial-gradient(circle at 74% 22%, rgba(80, 143, 255, 0.18), transparent 32%),
        radial-gradient(circle at 48% 82%, rgba(255, 255, 255, 0.86), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(247, 251, 255, 0.72));
}

.hero-reference::before {
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.48) 44%, transparent 72%),
        radial-gradient(ellipse at 45% 50%, rgba(255, 49, 85, 0.07), transparent 48%);
}

.hero-reference .hero-title {
    text-shadow: 0 16px 42px rgba(34, 42, 58, 0.08);
}

.hero-reference .gradient-ai {
    background: linear-gradient(135deg, #ff3155 0%, #ff7890 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-reference .hero-description,
.hero-reference .hero-trust,
.section-subtitle,
.tool-card p,
.showcase-card p,
.showcase-card li {
    color: #717b8b;
}

.hero-reference .hero-badge,
.showcase-card span {
    color: #4d5665;
}

.hero-reference .hero-badge::before {
    background: var(--mac-red);
}

.hero-reference .hero-tags b,
.card-sop li::before {
    color: var(--mac-red);
}

.hero-reference .hero-tags span,
.hero-reference .hero-stats {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), var(--glass-shadow-soft);
}

.hero-reference .hero-stats {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-reference .stat-icon,
.path-icon {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 24px rgba(255, 49, 85, 0.12);
}

.hero-reference .stat-divider {
    background: var(--glass-line);
}

.hero-reference .btn-primary,
.path-link {
    background: rgba(255, 49, 85, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 18px 44px rgba(255, 49, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-reference .btn-ai,
.hero-reference .btn-assistant {
    color: #242b37;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 36px rgba(45, 56, 82, 0.08);
}

.showcase-card,
.path-card,
.tool-card,
.testimonial-section .review-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--glass-shadow-soft);
}

.showcase-card {
    border-radius: 18px;
}

.showcase-card span {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.mini-list i {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.case-image,
.sop-chart {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 14px 34px rgba(255, 49, 85, 0.1);
}

.recommendation-section,
.tools-section,
.quick-entry-section,
.resources-section,
.testimonial-section {
    background:
        radial-gradient(circle at 16% 4%, rgba(255, 49, 85, 0.08), transparent 25%),
        radial-gradient(circle at 86% 16%, rgba(80, 143, 255, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 247, 250, 0.5) 52%, rgba(249, 252, 255, 0.52) 100%) !important;
}

.path-card,
.tool-card {
    border-radius: 18px;
}

.path-card:hover,
.tool-card:hover,
.testimonial-section .review-card:hover {
    border-color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--glass-shadow);
}

.path-card::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    opacity: 1;
}

.path-list li::before {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.path-list li::after {
    color: var(--mac-red);
}

.path-list li.more-link {
    color: #d92b4a;
    background: rgba(255, 255, 255, 0.44);
}

.tool-icon svg rect:first-child {
    fill: rgba(255, 49, 85, 0.92);
}

.tool-link,
.tool-link:hover {
    color: #e42d4d;
}

.testimonial-section .review-stars {
    color: var(--mac-red);
}

@media (max-width: 768px) {
    .hero-reference .hero-stats,
    .path-card,
    .tool-card {
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
    }

    .path-card,
    .tool-card {
        border-radius: 16px;
    }
}

/* iOS 清爽玻璃风格 */
:root {
    --ios-blue: #007aff;
    --ios-blue-deep: #0066d6;
    --ios-red: #ff3b5f;
    --ios-bg: #f5f7fb;
    --ios-card: rgba(255, 255, 255, 0.72);
    --ios-card-strong: rgba(255, 255, 255, 0.86);
    --ios-border: rgba(255, 255, 255, 0.82);
    --ios-hairline: rgba(120, 135, 160, 0.16);
    --ios-shadow: 0 18px 48px rgba(48, 64, 96, 0.09);
    --ios-blur: blur(22px) saturate(1.25);
}

body {
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 122, 255, 0.12), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(90, 200, 250, 0.16), transparent 32%),
        radial-gradient(circle at 52% 78%, rgba(255, 255, 255, 0.88), transparent 38%),
        linear-gradient(180deg, #f7faff 0%, #f3f6fb 48%, #ffffff 100%);
}

.navbar {
    background: rgba(248, 250, 253, 0.72);
    border-bottom: 1px solid rgba(215, 223, 235, 0.7);
    box-shadow: 0 8px 28px rgba(48, 64, 96, 0.055);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
}

.nav-item.active a,
.nav-item a:hover {
    color: #0b1320;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 20px rgba(48, 64, 96, 0.07);
}

.nav-search,
.hero-reference .hero-badge,
.hero-reference .hero-tags span,
.hero-reference .btn-ai,
.hero-reference .btn-assistant,
.showcase-card,
.quick-entry-card,
.path-card,
.tool-card,
.testimonial-section .review-card {
    background: var(--ios-card);
    border: 1px solid var(--ios-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), var(--ios-shadow);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
}

.nav-cta,
.hero-reference .btn-primary,
.path-link {
    background: linear-gradient(180deg, #1d8cff 0%, var(--ios-blue) 100%);
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 122, 255, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.nav-cta:hover,
.hero-reference .btn-primary:hover,
.path-link:hover {
    background: linear-gradient(180deg, #0f84ff 0%, var(--ios-blue-deep) 100%);
    box-shadow: 0 18px 42px rgba(0, 122, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero-reference {
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 122, 255, 0.12), transparent 31%),
        radial-gradient(circle at 76% 22%, rgba(90, 200, 250, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.86), rgba(242, 247, 253, 0.92));
}

.hero-reference::before {
    background:
        linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 72%),
        radial-gradient(ellipse at 46% 52%, rgba(0, 122, 255, 0.06), transparent 50%);
}

.hero-reference .gradient-ai {
    background: linear-gradient(135deg, #ff3155 0%, #ff6f85 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-reference .hero-badge::before {
    background: var(--ios-red);
}

.hero-reference .hero-tags b,
.card-sop li::before {
    color: var(--ios-blue);
}

.card-data li::before {
    color: var(--ios-blue);
}

.hero-reference .stat-icon,
.path-icon {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px rgba(0, 122, 255, 0.1);
}

.hero-reference .stat-divider {
    background: var(--ios-hairline);
}

.hero-reference .btn-ai,
.hero-reference .btn-assistant {
    color: #202735;
}

.recommendation-section,
.tools-section,
.resources-section,
.testimonial-section {
    background:
        radial-gradient(circle at 14% 8%, rgba(0, 122, 255, 0.08), transparent 26%),
        radial-gradient(circle at 84% 12%, rgba(90, 200, 250, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.7) 0%, rgba(244, 248, 253, 0.78) 56%, rgba(255, 255, 255, 0.82) 100%) !important;
}

.showcase-card,
.path-card,
.tool-card,
.testimonial-section .review-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 255, 0.62));
}

.path-card:hover,
.quick-entry-card:hover,
.tool-card:hover,
.testimonial-section .review-card:hover {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 24px 64px rgba(48, 64, 96, 0.12);
}

.path-list li::before {
    background: rgba(255, 255, 255, 0.74);
}

.path-list li::after {
    color: var(--ios-blue);
}

.path-list li.more-link {
    color: var(--ios-blue-deep);
    background: rgba(0, 122, 255, 0.07);
}

.tool-icon svg rect:first-child {
    fill: var(--ios-blue);
}

.tool-link,
.tool-link:hover {
    color: var(--ios-blue);
}

.quick-entry-section {
    margin-top: -1px;
}

.quick-entry-container {
    padding-top: 54px;
    padding-bottom: 42px;
}

.compact-header {
    margin-bottom: 26px;
}

.compact-header .section-title {
    font-size: clamp(30px, 3.8vw, 40px);
}

.compact-header .section-subtitle {
    font-size: 16px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.quick-entry-card {
    min-height: 156px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    color: #202735;
    text-decoration: none;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base),
        background var(--transition-base);
}

.quick-entry-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, #1d8cff 0%, var(--ios-blue) 100%);
    box-shadow: 0 10px 22px rgba(0, 122, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    font-size: 17px;
    font-weight: 800;
}

.quick-entry-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
}

.quick-entry-card p {
    margin: 0;
    color: #717b8b;
    font-size: 13px;
    line-height: 1.55;
}

.testimonial-section .review-stars {
    color: var(--ios-red);
}

.case-image {
    background:
        linear-gradient(90deg, rgba(0, 122, 255, 0.16) 0 18%, transparent 18% 100%) 18px 22px / calc(100% - 36px) 12px no-repeat,
        linear-gradient(90deg, rgba(0, 122, 255, 0.12) 0 58%, transparent 58% 100%) 18px 50px / calc(100% - 36px) 10px no-repeat,
        linear-gradient(90deg, rgba(0, 122, 255, 0.1) 0 42%, transparent 42% 100%) 18px 76px / calc(100% - 36px) 10px no-repeat,
        radial-gradient(circle at 84% 28%, rgba(0, 122, 255, 0.16), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(235, 246, 255, 0.88));
}

.sop-chart {
    background: conic-gradient(var(--ios-blue) 0 38%, rgba(0, 122, 255, 0.14) 38% 100%);
}

.data-spark i {
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.92), rgba(0, 122, 255, 0.2));
}

@media (max-width: 768px) {
    .hero-reference .hero-stats,
    .quick-entry-card,
    .path-card,
    .tool-card {
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.66));
    }

    .quick-entry-container {
        padding-top: 42px;
        padding-bottom: 30px;
    }

    .quick-entry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .quick-entry-card {
        min-height: 142px;
        padding: 16px;
        border-radius: 16px;
    }

    .quick-entry-card strong {
        font-size: 15px;
    }

    .quick-entry-card p {
        font-size: 12px;
    }
}

/* iOS 轻动态 */
@keyframes iosRiseIn {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes iosGlassFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--card-rotate, 0deg));
    }
    50% {
        transform: translate3d(var(--float-x, 0), var(--float-y, -12px), 0) rotate(var(--card-rotate, 0deg));
    }
}

@keyframes iosGlowDrift {
    0%, 100% {
        opacity: 0.72;
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate3d(1.5%, 1%, 0) scale(1.025);
    }
}

@keyframes iosButtonSheen {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    18%, 42% {
        opacity: 0.34;
    }
    70%, 100% {
        transform: translateX(160%);
        opacity: 0;
    }
}

@keyframes titleWordReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 0.34em, 0) scale(0.98);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes titlePlusPop {
    0% {
        opacity: 0;
        transform: translate3d(0, 0.24em, 0) scale(0.72) rotate(-8deg);
        filter: blur(8px);
    }
    72% {
        opacity: 1;
        transform: translate3d(0, -0.035em, 0) scale(1.06) rotate(0deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes aiTextSheen {
    0%, 22% {
        background-position: 0% 50%;
    }
    54% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-reference::before {
    animation: iosGlowDrift 10s ease-in-out infinite;
}

.hero-reference .hero-badge,
.hero-reference .hero-subtitle,
.hero-reference .hero-description,
.hero-reference .hero-tags,
.hero-reference .hero-stats,
.hero-reference .hero-buttons,
.hero-reference .hero-trust {
    animation: iosRiseIn 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-reference .hero-badge {
    animation-delay: 70ms;
}

.hero-reference .hero-title {
    overflow: hidden;
}

.hero-reference .hero-subtitle {
    animation-delay: 580ms;
}

.hero-reference .hero-description {
    animation-delay: 650ms;
}

.hero-reference .hero-tags {
    animation-delay: 720ms;
}

.hero-reference .hero-stats {
    animation-delay: 800ms;
}

.hero-reference .hero-buttons {
    animation-delay: 880ms;
}

.hero-reference .hero-trust {
    animation-delay: 960ms;
}

.hero-reference .title-word,
.hero-reference .title-plus {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity, filter;
}

.hero-reference .title-word {
    animation: titleWordReveal 860ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-reference .title-word:first-child {
    animation-delay: 170ms;
}

.hero-reference .title-plus {
    width: 0.92em;
    height: 0.92em;
    margin: 0 0.12em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: 0.08em;
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 12px 28px rgba(48, 64, 96, 0.08);
    font-size: 0.34em;
    font-weight: 800;
    line-height: 1;
    animation: titlePlusPop 760ms cubic-bezier(0.18, 0.9, 0.2, 1) 330ms both;
}

.hero-reference .gradient-ai {
    background:
        linear-gradient(110deg, #ff3155 0%, #ff7086 36%, #ff9caf 50%, #ff4968 64%, #ff3155 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleWordReveal 860ms cubic-bezier(0.2, 0.8, 0.2, 1) 470ms both, aiTextSheen 5.8s ease-in-out 1.4s infinite;
    text-shadow: 0 18px 44px rgba(255, 49, 85, 0.12);
}

.hero-showcase {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --shift-x: 0px;
    --shift-y: 0px;
    --showcase-scale: 1;
    perspective: 900px;
    transform: translate3d(var(--shift-x), var(--shift-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--showcase-scale));
    transform-origin: center;
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-card {
    animation: iosRiseIn 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both, iosGlassFloat 7s ease-in-out infinite;
    will-change: transform;
}

.card-tool {
    --card-rotate: -2deg;
    --float-y: -10px;
    animation-delay: 320ms, 1.1s;
}

.card-case {
    --card-rotate: 0deg;
    --float-x: 6px;
    --float-y: -14px;
    animation-delay: 460ms, 1.7s;
}

.card-sop {
    --card-rotate: 0deg;
    --float-x: -5px;
    --float-y: -10px;
    animation-delay: 600ms, 2.2s;
}

.card-data {
    --card-rotate: 1deg;
    --float-x: 5px;
    --float-y: -9px;
    animation-delay: 720ms, 2.6s;
}

.hero-showcase:hover .showcase-card:not(:hover) {
    opacity: 0.76;
    filter: saturate(0.92);
}

.showcase-card:hover {
    z-index: 12 !important;
    opacity: 1;
    filter: none;
    animation: none;
    transform: translate3d(0, -16px, 70px) scale(1.04) rotate(var(--card-rotate, 0deg));
    border-color: rgba(255, 255, 255, 0.98);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 32px 78px rgba(48, 64, 96, 0.17);
}

@media (min-width: 1600px) {
    .hero-reference .hero-container {
        max-width: 1440px;
        gap: 72px;
    }

    .hero-showcase {
        --showcase-scale: 1.12;
        min-height: 610px;
    }

    .showcase-flow {
        bottom: -46px;
    }
}

@media (min-width: 1281px) and (max-width: 1439px) {
    .hero-reference .hero-container {
        gap: 36px;
    }

    .hero-showcase {
        --showcase-scale: 0.94;
        min-height: 500px;
    }

    .showcase-flow {
        right: -6px;
        bottom: -64px;
    }
}

@media (min-width: 1181px) and (max-width: 1280px) {
    .hero-reference .hero-container {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
        gap: 22px;
    }

    .hero-showcase {
        --showcase-scale: 0.84;
        min-height: 460px;
    }

    .showcase-flow {
        right: -44px;
        bottom: -68px;
    }
}

.btn-primary,
.path-link,
.nav-cta {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.path-link::after,
.nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.48) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: iosButtonSheen 5.8s ease-in-out infinite;
    pointer-events: none;
}

.path-link::after {
    animation-delay: 1.4s;
}

.nav-cta::after {
    animation-delay: 2.2s;
}

.motion-ready .section-header,
.motion-ready .quick-entry-card,
.motion-ready .path-card,
.motion-ready .tool-card,
.motion-ready .review-card {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
    filter: none;
    transition:
        opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow var(--transition-base),
        border-color var(--transition-base),
        background var(--transition-base);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .section-header.visible,
.motion-ready .quick-entry-card.visible,
.motion-ready .path-card.visible,
.motion-ready .tool-card.visible,
.motion-ready .review-card.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
}

.tool-card:hover,
.quick-entry-card:hover,
.path-card:hover {
    transform: translateY(-6px) scale(1.012);
}

@media (max-width: 768px) {
    .hero-reference .hero-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-reference .hero-buttons .btn-primary {
        grid-column: auto;
    }

    .hero-reference .btn {
        min-height: 48px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .motion-ready .section-header,
    .motion-ready .quick-entry-card,
    .motion-ready .path-card,
    .motion-ready .tool-card,
    .motion-ready .review-card {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Hero 统计区最终样式：轻量胶囊组 */
.hero-reference .hero-stats {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero-reference .stat-item {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 14px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 26px rgba(48, 64, 96, 0.07);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.hero-reference .stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 13px;
}

.hero-reference .stat-number {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.hero-reference .stat-text {
    margin-top: 0;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.hero-reference .stat-divider {
    display: none !important;
}

@media (max-width: 768px) {
    .hero-reference .hero-stats {
        width: min(100%, 340px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-reference .stat-item {
        width: 100%;
        min-width: 0;
        padding: 10px 12px !important;
        justify-content: center;
        gap: 7px;
    }

    .hero-reference .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .hero-reference .stat-number {
        font-size: 18px;
    }

    .hero-reference .stat-text {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .hero-reference .hero-stats {
        width: min(100%, 310px);
        gap: 8px;
    }

    .hero-reference .stat-item {
        padding: 9px 10px !important;
    }
}

/* Final seamless homepage background */
html {
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 122, 255, 0.11), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(90, 200, 250, 0.13), transparent 30%),
        radial-gradient(circle at 72% 46%, rgba(255, 59, 95, 0.055), transparent 28%),
        radial-gradient(circle at 18% 72%, rgba(0, 122, 255, 0.06), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8fd 46%, #fbfdff 100%);
    background-attachment: fixed;
}

body {
    background: transparent;
}

.hero-reference,
.recommendation-section,
.tools-section,
.resources-section,
.testimonial-section,
.footer {
    background: transparent !important;
}

.footer {
    border-top-color: rgba(120, 135, 160, 0.16);
}

.hero-reference::before {
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.44) 45%, transparent 72%),
        radial-gradient(ellipse at 46% 48%, rgba(255, 255, 255, 0.42), transparent 52%);
}

.recommendation-section {
    position: relative;
}

.recommendation-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0), rgba(248, 251, 255, 0.34) 58%, rgba(248, 251, 255, 0));
}

@media (max-width: 768px) {
    html {
        background-attachment: scroll;
    }
}

/* Smooth the review-to-tools transition */
.testimonial-section {
    padding-bottom: 34px !important;
    background:
        linear-gradient(180deg, rgba(247, 250, 254, 0.28) 0%, rgba(247, 250, 254, 0.72) 28%, rgba(247, 250, 254, 0.72) 100%) !important;
}

.testimonial-section + .tools-section {
    margin-top: -1px;
    background:
        linear-gradient(180deg, rgba(247, 250, 254, 0.72) 0%, rgba(250, 252, 255, 0.44) 100%) !important;
}

.testimonial-section .marquee-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.testimonial-section .review-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 26px rgba(48, 64, 96, 0.045);
}

/* 分类页主题延续：首页选中的红蓝主题在每条学习路径内保持一致。 */
.category-nav-actions {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.category-theme-toggle {
    position: relative;
    width: 54px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: linear-gradient(135deg, #58aeff, #0868f7);
    box-shadow: 0 5px 16px rgba(8, 104, 247, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: background 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.category-theme-toggle::before {
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%);
    content: '';
    pointer-events: none;
}

.category-theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(8, 104, 247, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

.category-theme-toggle-dot {
    position: absolute;
    z-index: 1;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 5px rgba(4, 42, 91, 0.24), 0 1px 1px rgba(255, 255, 255, 0.76) inset;
    transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 180ms ease;
}

.category-theme-toggle-dot::after {
    display: block;
    width: 8px;
    height: 8px;
    margin: 9px;
    border-radius: 50%;
    background: #177cf8;
    box-shadow: 0 0 0 2px rgba(23, 124, 248, 0.12);
    content: '';
}

.category-theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

html[data-home-theme="red"] {
    --primary-blue: #e94752;
    --bg-secondary: #fff7f5;
    --border-color: #efd9d6;
}

html[data-home-theme="red"] .navbar {
    border-bottom-color: rgba(218, 71, 78, 0.12);
    background: rgba(255, 253, 252, 0.92);
    box-shadow: 0 2px 20px rgba(125, 48, 52, 0.06);
}

html[data-home-theme="red"] .nav-logo:hover,
html[data-home-theme="red"] .nav-item a:hover {
    background: #fff2ef;
}

html[data-home-theme="red"] .nav-item.active a {
    color: #dd4250;
    background: rgba(233, 71, 82, 0.1);
}

html[data-home-theme="red"] .category-theme-toggle {
    background: linear-gradient(135deg, #ff7d72, #e63e4c);
    box-shadow: 0 5px 16px rgba(229, 62, 76, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

html[data-home-theme="red"] .category-theme-toggle:hover {
    box-shadow: 0 8px 20px rgba(229, 62, 76, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

html[data-home-theme="red"] .category-theme-toggle-dot {
    transform: translateX(24px);
    box-shadow: 0 2px 5px rgba(105, 29, 35, 0.26), 0 1px 1px rgba(255, 255, 255, 0.76) inset;
}

html[data-home-theme="red"] .category-theme-toggle-dot::after {
    background: #ef4b57;
    box-shadow: 0 0 0 2px rgba(239, 75, 87, 0.12);
}

html[data-home-theme="red"] .category-detail-new {
    background:
        linear-gradient(rgba(238, 104, 105, 0.042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(238, 104, 105, 0.042) 1px, transparent 1px),
        radial-gradient(circle at 88% 5%, rgba(255, 123, 108, 0.12), transparent 30%),
        linear-gradient(180deg, #fffdfc 0%, #fff7f5 100%);
    background-size: 56px 56px, 56px 56px, auto, auto;
}

html[data-home-theme="red"] .back-link,
html[data-home-theme="red"] .header-subtitle,
html[data-home-theme="red"] .category-focus-heading > div:first-child > p:last-child,
html[data-home-theme="red"] .category-focus-card-desc,
html[data-home-theme="red"] .focus-topic-copy small,
html[data-home-theme="red"] .learning-module-topic-copy small,
html[data-home-theme="red"] .learning-module-heading p {
    color: #8a6d70;
}

html[data-home-theme="red"] .back-link:hover {
    color: #d5424d;
    background: #fff0ed;
}

html[data-home-theme="red"] .learning-path-switcher {
    border-color: rgba(223, 77, 85, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 36px rgba(164, 60, 64, 0.06);
}

html[data-home-theme="red"] .learning-path-link {
    color: #7d6468;
}

html[data-home-theme="red"] .learning-path-link:hover {
    color: #d9414d;
    background: rgba(233, 71, 82, 0.07);
}

html[data-home-theme="red"] .learning-path-link.is-active {
    background: linear-gradient(135deg, #f2675e, #dc3f4d);
    box-shadow: 0 8px 20px rgba(220, 63, 77, 0.2);
}

html[data-home-theme="red"] .learning-path-index,
html[data-home-theme="red"] .category-focus-eyebrow,
html[data-home-theme="red"] .recommendation-kicker,
html[data-home-theme="red"] .learning-module-kicker,
html[data-home-theme="red"] .category-focus-card-count,
html[data-home-theme="red"] .topic-grid-eyebrow {
    color: #dc4650;
}

html[data-home-theme="red"] .category-header .stat-item {
    color: #b4575e;
    background: rgba(255, 236, 232, 0.92);
    border: 1px solid rgba(224, 92, 99, 0.12);
}

/* 分类页底部收口：保留品牌与下一步入口，避免单句提示占据大块留白。 */
.category-footer {
    margin-top: 0;
    padding: 26px 0 34px;
    border-top: 1px solid rgba(100, 139, 190, 0.14);
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.88), rgba(251, 253, 255, 0.98)) !important;
}

.category-footer .footer-container {
    max-width: 1200px;
}

.category-footer .footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
}

.category-footer .footer-brand {
    gap: 12px;
    min-width: 0;
}

.category-footer .footer-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(32, 101, 192, 0.12);
}

.category-footer-copy {
    display: grid;
    gap: 4px;
}

.category-footer-copy strong {
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.category-footer .footer-text {
    margin: 0;
    color: #71819a;
    font-size: 13px;
    line-height: 1.45;
}

.category-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.category-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(59, 123, 214, 0.14);
    border-radius: 999px;
    color: #2777df;
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.category-footer-links a:hover {
    border-color: rgba(39, 119, 223, 0.28);
    background: #fff;
    box-shadow: 0 7px 16px rgba(34, 103, 191, 0.1);
    transform: translateY(-1px);
}

.category-footer-links span {
    font-size: 15px;
    line-height: 1;
}

html[data-home-theme="red"] .category-footer {
    border-top-color: rgba(224, 92, 99, 0.16);
    background: linear-gradient(180deg, rgba(255, 247, 245, 0.92), rgba(255, 252, 251, 0.98)) !important;
}

html[data-home-theme="red"] .category-footer .footer-logo-mark {
    box-shadow: 0 7px 18px rgba(197, 68, 77, 0.12);
}

html[data-home-theme="red"] .category-footer-copy strong {
    color: #3b2529;
}

html[data-home-theme="red"] .category-footer .footer-text {
    color: #967478;
}

html[data-home-theme="red"] .category-footer-links a {
    border-color: rgba(224, 92, 99, 0.16);
    color: #d64954;
    background: rgba(255, 255, 255, 0.84);
}

html[data-home-theme="red"] .category-footer-links a:hover {
    border-color: rgba(214, 73, 81, 0.3);
    box-shadow: 0 7px 16px rgba(191, 67, 75, 0.1);
}

@media (max-width: 680px) {
    .category-footer {
        padding: 22px 0 28px;
    }

    .category-footer .footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .category-footer-links {
        justify-content: flex-start;
    }
}

html[data-home-theme="red"] .category-focus-card:hover,
html[data-home-theme="red"] .category-focus-card.is-active {
    border-color: #e55a62;
    background: linear-gradient(145deg, #ffffff, #fff3f1);
    box-shadow: 0 16px 34px rgba(214, 73, 81, 0.1);
}

html[data-home-theme="red"] .category-focus-card.is-active::after {
    background: #e6535d;
}

html[data-home-theme="red"] .category-focus-progress,
html[data-home-theme="red"] .category-recommendation,
html[data-home-theme="red"] .learning-module {
    border-color: rgba(205, 80, 88, 0.16);
    box-shadow: 0 12px 32px rgba(151, 62, 68, 0.05);
}

html[data-home-theme="red"] .category-recommendation-main {
    background: linear-gradient(120deg, rgba(255, 231, 227, 0.86), rgba(255, 255, 255, 0.96));
}

html[data-home-theme="red"] .category-recommendation-related,
html[data-home-theme="red"] .focus-topic-row + .focus-topic-row,
html[data-home-theme="red"] .learning-module-heading,
html[data-home-theme="red"] .learning-module-topic {
    border-color: rgba(193, 82, 88, 0.11);
}

html[data-home-theme="red"] .focus-topic-row:hover,
html[data-home-theme="red"] .learning-module-topic:hover,
html[data-home-theme="red"] .learning-module-topic.active {
    background: rgba(221, 71, 81, 0.045);
    box-shadow: none;
    color: #d9414d;
    transform: none;
}

html[data-home-theme="red"] .learning-module-topic:active {
    background: rgba(221, 71, 81, 0.08);
    transform: none;
}

html[data-home-theme="red"] .focus-topic-row svg,
html[data-home-theme="red"] .learning-module-topic:hover .learning-module-topic-action,
html[data-home-theme="red"] .learning-module-topic .topic-item-arrow {
    color: #df4a54;
}

html[data-home-theme="red"] .focus-topic-order,
html[data-home-theme="red"] .learning-module-topic-order {
    background: #fff0ed;
    color: #dd4751;
}

html[data-home-theme="red"] .focus-topic-row.is-primary .focus-topic-order {
    background: linear-gradient(135deg, #f2675e, #dc3f4d);
}

html[data-home-theme="red"] .learning-module-heading {
    background: linear-gradient(135deg, rgba(255, 248, 247, 0.98), rgba(255, 255, 255, 0.9));
}

html[data-home-theme="red"] .learning-module-count {
    background: #fff0ed;
    color: #dd4751;
}

html[data-home-theme="red"] .topic-card:hover {
    border-color: rgba(224, 77, 86, 0.2);
    background: linear-gradient(180deg, #ffffff, #fff6f4);
}

html[data-home-theme="red"] .topic-card-tag {
    color: #d64a53;
    background: #fff0ed;
}

/* Skill 下载区也跟随首页的蓝红主题，避免红色模式里残留默认蓝色组件。 */
html[data-home-theme="red"] .skill-resource-section {
    border-color: rgba(221, 82, 91, 0.2);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 135, 120, 0.16), transparent 34%),
        radial-gradient(circle at 8% 92%, rgba(233, 71, 82, 0.1), transparent 38%),
        linear-gradient(145deg, rgba(255, 252, 251, 0.98), rgba(255, 244, 242, 0.96));
    box-shadow: 0 24px 60px rgba(163, 61, 69, 0.09);
}

html[data-home-theme="red"] .skill-resource-heading {
    border-bottom-color: rgba(193, 82, 88, 0.14);
}

html[data-home-theme="red"] .skill-resource-eyebrow,
html[data-home-theme="red"] .skill-install-kicker,
html[data-home-theme="red"] .skill-resource-card .topic-card-action,
html[data-home-theme="red"] .skill-resource-card .topic-item-arrow {
    color: #dc4650;
}

html[data-home-theme="red"] .skill-resource-heading h3,
html[data-home-theme="red"] .skill-install-intro strong {
    color: #3b2529;
}

html[data-home-theme="red"] .skill-resource-heading p:not(.skill-resource-eyebrow),
html[data-home-theme="red"] .skill-install-step p,
html[data-home-theme="red"] .skill-install-compatibility {
    color: #8a6d70;
}

html[data-home-theme="red"] .skill-resource-count {
    color: #d94651;
    background: rgba(255, 246, 244, 0.9);
    border-color: rgba(220, 70, 80, 0.18);
}

html[data-home-theme="red"] .skill-install-guide {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.72);
}

html[data-home-theme="red"] .skill-install-step {
    background: rgba(255, 238, 235, 0.8);
}

html[data-home-theme="red"] .skill-install-step span,
html[data-home-theme="red"] .skill-resource-icon {
    background: linear-gradient(135deg, #f26d63, #dc3f4d);
    box-shadow: 0 10px 24px rgba(220, 63, 77, 0.18);
}

html[data-home-theme="red"] .skill-resource-card {
    border-color: rgba(220, 70, 80, 0.17);
    background:
        radial-gradient(circle at 94% 4%, rgba(255, 139, 122, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 247, 0.96));
}

html[data-home-theme="red"] .skill-resource-card:hover {
    border-color: rgba(220, 70, 80, 0.33);
    background:
        radial-gradient(circle at 94% 4%, rgba(255, 139, 122, 0.19), transparent 36%),
        linear-gradient(180deg, #ffffff, #fff4f2);
    box-shadow: 0 24px 52px rgba(193, 67, 76, 0.12);
}

html[data-home-theme="red"] .skill-resource-badge {
    color: #d94651;
    background: rgba(220, 70, 80, 0.08);
}

@media (max-width: 700px) {
    .category-nav-actions {
        margin-left: 8px;
    }

    .category-theme-toggle {
        width: 50px;
        height: 30px;
    }

    .category-theme-toggle-dot {
        width: 24px;
        height: 24px;
    }

    .category-theme-toggle-dot::after {
        margin: 8px;
    }

    html[data-home-theme="red"] .category-theme-toggle-dot {
        transform: translateX(22px);
    }
}
