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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 8px;
    font-size: 16px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ========== 通用按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
    background: var(--bg-gradient);
    color: white;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* ========== Hero 区域 ========== */
.hero {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf5 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    bottom: -50px;
    right: -50px;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: #f59e0b;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========== 通用 section ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 24px;
    flex-wrap: wrap;
}

.section-header-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.section-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
}

/* ========== 作品集 ========== */
.works {
    padding: 100px 0;
    background: var(--bg);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.work-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.work-image-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.work-image-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.work-image-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.work-image-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.work-image-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.work-image-6 { background: linear-gradient(135deg, #30cfd0, #330867); }

.work-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
}

.work-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    z-index: 1;
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-author {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.work-desc {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ========== CTA 区域 ========== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-text > p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 28px;
    line-height: 1.7;
}

.cta-features {
    list-style: none;
    margin-bottom: 36px;
}

.cta-features li {
    font-size: 16px;
    padding: 8px 0;
    opacity: 0.95;
}

.cta-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    color: var(--text);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.card-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 0;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 0;
    animation-delay: 2s;
}

.card-4 {
    bottom: 0;
    right: 15%;
    animation-delay: 3s;
}

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

/* ========== 关于我们 ========== */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 8px;
}

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

/* ========== 底部 Footer ========== */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

/* ========== 领取页 - 顶部横幅 ========== */
.gift-banner {
    padding: 80px 0;
    background: var(--bg-gradient);
    color: white;
    text-align: center;
}

.banner-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.gift-banner h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
}

.gift-banner > p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.banner-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 15px;
}

.banner-stats strong {
    font-size: 20px;
    margin: 0 4px;
}

/* ========== 视频教程区 ========== */
.video-section {
    padding: 100px 0;
    background: var(--bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.video-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

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

.video-thumb {
    position: relative;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.video-thumb-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.video-thumb-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.video-thumb-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.video-thumb-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
    transition: all 0.3s;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    background: white;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.recommend-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff9a56, #ff6b35);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    z-index: 2;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    color: var(--text-light);
    font-size: 14px;
}

.video-student {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 4px;
}

/* ========== 图片素材区 ========== */
.image-section {
    padding: 100px 0;
    background: var(--bg-light);
}

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

/* 默认显示数量限制：视频6个，图片8个，点击"更多"查看全部 */
.video-grid.limited-view .video-card:nth-child(n+7) {
    display: none;
}
.image-grid.limited-view .image-card:nth-child(n+9) {
    display: none;
}

.image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.image-box {
    height: 200px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.image-card:hover .image-box::after {
    opacity: 1;
}

.image-caption {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

/* ========== Skills 区 ========== */
.skills-section {
    padding: 100px 0;
    background: var(--bg);
}

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

.skill-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.skill-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 12px;
}

.skill-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.skill-tags span {
    background: #eef2ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* ========== 飞书文档区 ========== */
.docs-section {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.doc-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.doc-content {
    flex: 1;
}

.doc-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}

.doc-meta {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.doc-arrow {
    font-size: 22px;
    color: var(--text-light);
    transition: transform 0.3s;
}

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

/* 资源类型标签 */
.doc-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.doc-tag-doc {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.doc-tag-ppt {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.doc-tag-prompt {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.doc-tag-sheet {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

/* 图标背景区分类型 */
.doc-icon-doc {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.10);
}

.doc-icon-ppt {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(236, 72, 153, 0.10);
}

.doc-icon-prompt {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
}

.doc-icon-sheet {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.10);
}

/* ========== 领取表单 ========== */
.form-section {
    padding: 100px 0;
    background: var(--bg);
}

.form-card {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f3f4f6;
}

.form-card h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.form-card > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.gift-form .form-group {
    margin-bottom: 20px;
}

.gift-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.gift-form input,
.gift-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg);
}

.gift-form input:focus,
.gift-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-tip {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 16px;
}

/* ========== 视频播放弹窗 ========== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%),
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.25), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.22), transparent 50%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 1;
}

.video-modal-content video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ========== 更多视频弹窗 ========== */
.video-all-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.video-all-modal.active {
    display: flex;
}

.video-all-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.video-all-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: allModalIn 0.3s ease;
}

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

.video-all-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf5 100%);
    flex-shrink: 0;
}

.video-all-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.video-all-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.video-all-close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
}

.video-all-grid {
    padding: 24px 28px 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    overflow-y: auto;
    flex: 1;
}

.video-all-grid::-webkit-scrollbar {
    width: 8px;
}

.video-all-grid::-webkit-scrollbar-track {
    background: transparent;
}

.video-all-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.video-all-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========== 更多图片弹窗 ========== */
.image-all-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.image-all-modal.active {
    display: flex;
}

.image-all-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.image-all-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: allModalIn 0.3s ease;
}

.image-all-grid {
    padding: 24px 28px 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    overflow-y: auto;
    flex: 1;
}

.image-all-grid::-webkit-scrollbar {
    width: 8px;
}

.image-all-grid::-webkit-scrollbar-track {
    background: transparent;
}

.image-all-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.image-all-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.image-all-card {
    margin: 0;
    cursor: zoom-in;
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-all-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.image-all-card .image-box {
    height: 150px;
}

/* ========== 图片灯箱 ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    cursor: zoom-out;
    animation: lightboxIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: lightboxImgIn 0.35s ease;
}

@keyframes lightboxImgIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 15px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 18px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ========== Skills 详情弹窗 ========== */
.skill-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.skill-modal.active {
    display: flex;
}

.skill-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.skill-modal-content {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: allModalIn 0.3s ease;
}

.skill-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.skill-modal-close:hover {
    background: rgba(0, 0, 0, 0.14);
    transform: rotate(90deg);
}

.skill-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf5 100%);
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.skill-modal-number {
    font-size: 38px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
}

.skill-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.skill-modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 32px 0;
    flex-shrink: 0;
}

.skill-modal-tags span {
    background: #eef2ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.skill-modal-body {
    padding: 20px 32px 32px;
    overflow-y: auto;
    flex: 1;
}

.skill-modal-body::-webkit-scrollbar {
    width: 8px;
}

.skill-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.skill-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.skill-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.skill-modal-intro {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    background: #f9fafb;
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.skill-modal-section {
    margin-bottom: 24px;
}

.skill-modal-section:last-child {
    margin-bottom: 0;
}

.skill-modal-section h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.skill-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-modal-section ul li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.7;
    border-bottom: 1px dashed #f1f3f5;
}

.skill-modal-section ul li:last-child {
    border-bottom: none;
}

.skill-modal-section ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-gradient);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 36px;
    }

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

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

    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-text h2 {
        font-size: 32px;
    }

    .cta-visual {
        height: 320px;
    }

    .gift-banner h1 {
        font-size: 30px;
    }

    .works-grid,
    .video-grid,
    .skills-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

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

    .form-card {
        padding: 32px 24px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: center;
    }

    .video-all-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 14px;
    }

    .video-all-header {
        padding: 16px 20px;
    }

    .video-all-header h3 {
        font-size: 17px;
    }

    .image-all-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 12px;
    }

    .image-all-card .image-box {
        height: 120px;
    }

    .lightbox {
        padding: 60px 16px 40px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-caption {
        font-size: 13px;
        bottom: 16px;
    }

    .skill-modal-content {
        max-height: 90vh;
    }

    .skill-modal-header {
        padding: 22px 22px 14px;
        gap: 12px;
    }

    .skill-modal-number {
        font-size: 30px;
    }

    .skill-modal-title {
        font-size: 20px;
    }

    .skill-modal-tags {
        padding: 14px 22px 0;
    }

    .skill-modal-body {
        padding: 16px 22px 24px;
    }

    .skill-modal-section h4 {
        font-size: 16px;
    }
}
