/* ===== CSS变量 ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-deep: #0a0e27;
    --bg-dark: #0f1535;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #12121B;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

/* 滚动后：纯色底，彻底阻隔页面内容穿透导航栏（与 body 底色一致，不突兀） */
.header.scrolled {
    background: #12121B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 42px;
    width: auto;
}

.logo-text {
    font-family: 'AlibabaPuHuiTi', 'Noto Sans SC', sans-serif;
    font-size: 32px;
    font-weight: bold;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #C1C1C1;
}

.btn-start {
    padding: 10px 24px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #4A90E2 0%, #5B6EE1 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

/* ===== 顶部导航栏 ===== */
.top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 62px;
}

.top-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.top-nav .nav-item:hover,
.top-nav .nav-item.active {
    background: linear-gradient(180deg, #2FA2F8 0%, #5570ED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== Header 右侧 ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.header-user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #667eea;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.logout-btn {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.logout-btn:hover {
    color: rgba(255, 107, 107, 0.9);
    border-color: rgba(255, 107, 107, 0.4);
}

/* 导航图标 */
.nav-icon-img {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    display: block;
}

.nav-icon-img-active {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    display: none;
}

.nav-item:hover .nav-icon-img,
.nav-item.active .nav-icon-img {
    display: none;
}

.nav-item:hover .nav-icon-img-active,
.nav-item.active .nav-icon-img-active {
    display: block;
}

.nav-label {
    font-size: inherit;
}

/* ===== Banner区域 ===== */
.banner-section {
    position: relative;
    width: 100%;
    height: 769px;
    margin-top: 0;
    overflow: hidden;
}

/* 背景.png 叠加层 - 使用正片叠底模式避免发白 */
.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('背景.png') center center / cover no-repeat;
    opacity: 0.7;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.banner-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 0;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 72px;
    background: transparent;
}

/* 标题光晕效果 */
.banner-title {
    font-size: 46px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 6px;
    text-shadow: 
        0 0 10px rgba(100, 200, 255, 0.8),
        0 0 30px rgba(100, 200, 255, 0.5),
        0 0 60px rgba(100, 150, 255, 0.3);
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 140px;
    letter-spacing: 3px;
    text-shadow: 
        0 0 8px rgba(100, 200, 255, 0.6),
        0 0 20px rgba(100, 200, 255, 0.3);
}

.banner-cards {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-top: 60px;
}

.banner-card {
    width: 320px;
    padding: 32px;
    position: relative;
    border-radius: 20px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    box-shadow: inset 0px 4px 30px 0px rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.banner-card:hover {
    transform: translateY(-4px);
}

.card-tag {
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 2px 10px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    border-radius: 4px;
}

.card-tag.new {
    background: #ffa502;
}

.card-tag.ai {
    background: #2ed573;
}

.banner-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.banner-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== 推荐栏 ===== */
.recommend-bar {
    position: relative;
    z-index: 2;
    padding: 24px 0 32px;
    margin-left: 118px;
}

.recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 40px 16px;
}

.recommend-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #E8913A;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
}

.recommend-more {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: var(--transition);
}

.recommend-more:hover {
    color: #fff;
}

.recommend-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 0 40px;
}

.recommend-card {
    flex: 1;
    max-width: 320px;
    min-width: 260px;
    height: 120px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.recommend-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.recommend-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.recommend-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* ===== 通用板块样式 ===== */
section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

/* 滑动后的区域添加背景.png */
section:not(.banner-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/bg-main.png') center top / cover no-repeat;
    opacity: 0.4;
    mix-blend-mode: screen;
    z-index: 0;
    pointer-events: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

.more-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.section-title-center {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-video-wrapper {
    position: relative;
    width: 40%;
    height: 200px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #12121B;
}

/* ===== Canvas 玻璃水球 ===== */
.orb-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
}

.section-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: transparent;
    z-index: 1;
}

.video-overlay h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.category-tabs {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    border-color: rgba(108, 100, 242, 0.5);
    color: var(--text-primary);
    background: rgba(108, 100, 242, 0.08);
}

.tab.active {
    background: linear-gradient(120deg, #6c64f2 10%, #2a9dde 87%);
    border-color: transparent;
    color: white;
}

.category-tabs .tab:hover {
    border-color: rgba(108, 100, 242, 0.5);
    color: var(--text-primary);
    background: rgba(108, 100, 242, 0.08);
}

.category-tabs .tab.active {
    background: linear-gradient(120deg, #6c64f2 10%, #2a9dde 87%);
    border-color: transparent;
    color: white;
    position: relative;
}

.category-tabs .tab.active::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(120deg, #6c64f2 10%, #2a9dde 87%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.center-action {
    text-align: center;
    margin-top: 48px;
}

.btn-more {
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-more:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* ===== 精选智能体 ===== */
.featured-section {
    display: none; /* 隐藏首页推荐区块 */
    background: transparent;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.featured-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.featured-card:hover::before {
    opacity: 0.03;
}

.card-bg-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 3rem;
    opacity: 0.15;
    transition: var(--transition);
}

.featured-card:hover .card-bg-icon {
    opacity: 0.25;
    transform: scale(1.1);
}

.featured-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.featured-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    position: relative;
}

.card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.tag {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary);
}

.users {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== 智能体市场 ===== */
.agents-section {
    background: transparent;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.agent-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.agent-card:hover .agent-icon {
    transform: scale(1.1);
}

.agent-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.agent-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== SKILL量盘 ===== */
.skills-section {
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.skill-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.skill-avatar:has(img) {
    background: transparent;
}
.skill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.skill-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 付费技能价格标签（卡片内） */
.skill-price-tag {
    display: inline-block;
    padding: 1px 7px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    vertical-align: middle;
    line-height: 1.5;
}



.skill-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 2.8em;  /* 2行高度：1.4 * 2 = 2.8em */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-tag {
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
    font-size: 0.7rem;
    color: var(--primary);
}

/* 收费标签 */
.skill-paid-tag {
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.12) 100%);
    border-radius: 3px;
    font-size: 0.7rem;
    color: #f59e0b;
}

.skill-tag-sm {
    padding: 2px 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
    font-size: 0.65rem;
    color: var(--secondary);
}

.skill-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.skill-stats {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stat-item {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.skill-users {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== 社区拼盘 ===== */
.community-section {
    background: transparent;
    padding-bottom: 0;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 80px;
    justify-content: space-between;
}

.community-card {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.community-card:hover {
    transform: translateY(-6px);
}

.card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gradient-1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.community-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.75rem;
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.bar-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.0rem;
    color: rgba(255, 255, 255, 0.85);
}

.card-desc {
    padding: 10px 0 0 8px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.card-body {
    padding: 20px;
}

.card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-body > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.author-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
}

.card-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== 页脚 ===== */
.footer-copyright,
.bottom-bar {
    position: relative;
    z-index: 2;
    padding: 30px 0;
    text-align: center;
}

.footer-copyright p,
.bottom-bar p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.site-copyright {
    text-align: center;
    padding: 110px 0 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    .top-nav {
        margin-left: 30px;
    }
    .top-nav .nav-item {
        padding: 6px 10px;
        font-size: 14px;
    }
    /* 首页(带图标的项)隐藏文字，仅显示图标 */
    .top-nav .nav-item:not(.nav-item-text) .nav-label {
        display: none;
    }

    .header {
        padding: 0 16px;
        height: 64px;
    }

    .banner-overlay {
        padding-top: 64px;
    }

    .banner-cards {
        flex-direction: column;
        align-items: center;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

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

    .skills-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 56px;
    }
    .header-inner {
        gap: 10px;
    }
    .logo img {
        height: 32px;
    }
    .logo-text {
        font-size: 22px;
    }
    .btn-start {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .top-nav {
        margin-left: 8px;
        gap: 0;
    }
    .top-nav .nav-item {
        padding: 6px 6px;
    }
    .banner-section {
        height: 520px;
    }
    .banner-overlay {
        padding-top: 56px;
    }
    .banner-title {
        font-size: 28px;
        letter-spacing: 3px;
    }
    .banner-subtitle {
        font-size: 14px;
    }
    .container {
        padding: 0 14px;
    }
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .agent-card {
        padding: 20px 12px;
    }

    .agent-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .section-video-wrapper {
        width: 80%;
        height: 120px;
    }

    section {
        padding: 40px 0;
    }
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Header 搜索栏（已隐藏） ===== */
.header-search-wrap {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.header-search-input {
    width: 180px;
    height: 32px;
    padding: 0 34px 0 13px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 0.84rem;
    outline: none;
    transition: width 0.3s ease, border-color 0.2s, background 0.2s;
}

.header-search-input::placeholder { color: var(--text-muted); }
.header-search-input:focus {
    border-color: rgba(99,102,241,0.55);
    background: rgba(99,102,241,0.08);
    width: 240px;
}

.header-search-btn {
    position: absolute;
    right: 9px;
    transform: translateY(-50%);
    top: 16px; /* header-search-wrap 在 header-inner 内部时偏移 */
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.header-search-btn:hover { color: var(--primary); }

/* 搜索栏相对定位 */
.header-search-wrap { position: relative; }

/* ===== 返回按钮 ===== */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    padding: 6px 0;
    text-decoration: none;
}
.detail-back:hover { color: var(--primary); }
