/* ========================================
   首页样式 - 泡泡主题，自动翻书页
   ======================================== */

:root {
    --primary: #4f6ef7;
    --primary-dark: #3d56d4;
    --bg: #f8faff;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-light: #5c6f82;
    --border: #e6ecf5;
    --shadow: 0 4px 16px rgba(79, 110, 247, 0.08);
    --shadow-hover: 0 12px 28px rgba(79, 110, 247, 0.12);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bg);
}

/* ---------- 英雄区（泡泡背景） ---------- */
.hero {
    position: relative;
    padding: 100px 20px 70px;
    text-align: center;
    background: linear-gradient(160deg, #eef3ff 0%, #e0eaff 50%, #f5f8ff 100%);
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(79,110,247,0.15));
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.05), 0 0 20px rgba(79,110,247,0.1);
    animation: floatBubble 7s ease-in-out infinite;
}

.b1 { width:80px; height:80px; top:10%; left:5%; animation-duration:8s; }
.b2 { width:50px; height:50px; top:20%; left:85%; animation-duration:6.5s; animation-delay:-2s; }
.b3 { width:100px; height:100px; top:65%; left:10%; animation-duration:9s; animation-delay:-4s; }
.b4 { width:60px; height:60px; top:75%; left:75%; animation-duration:7s; animation-delay:-1s; }
.b5 { width:45px; height:45px; top:40%; left:50%; animation-duration:8.5s; animation-delay:-3s; }
.b6 { width:70px; height:70px; top:50%; left:20%; animation-duration:6s; animation-delay:-5s; }
.b7 { width:55px; height:55px; top:85%; left:40%; animation-duration:7.5s; animation-delay:-2.5s; }
.b8 { width:40px; height:40px; top:30%; left:30%; animation-duration:9.2s; }
.b9 { width:90px; height:90px; top:15%; left:60%; animation-duration:7.8s; animation-delay:-4.5s; }
.b10 { width:65px; height:65px; top:90%; left:90%; animation-duration:6.8s; animation-delay:-3.8s; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-30px) scale(1.05); }
    50% { transform: translateY(15px) scale(0.95); }
    75% { transform: translateY(-20px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 54px;
    font-weight: 700;
    color: #1a2c5e;
    font-family: "楷体", kaiti, serif;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #4a5b7a;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-desc .highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-solid, .btn-outline {
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-solid {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(79, 110, 247, 0.3);
}
.btn-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 110, 247, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(79,110,247,0.05);
    transform: translateY(-2px);
}

.hero-stat {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #1a2c5e;
}
.stat-unit {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: #5c6f82;
    margin-top: 4px;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8a9bb5;
    font-size: 13px;
}
.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid #8a9bb5;
    border-bottom: 2px solid #8a9bb5;
    transform: rotate(45deg);
    margin-top: 6px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translate(0,0); }
    50% { transform: rotate(45deg) translate(6px,6px); }
}

/* ---------- 公告条 ---------- */
.notice-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 10px 0;
}
.notice-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 30s linear infinite;
    padding-left: 100%;
    font-size: 14px;
    color: #4a5b7a;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79,110,247,0.08);
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a2c5e;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 15px;
    color: #5c6f82;
}

/* ========== 六大核心优势 ========== */
.features {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feat-icon {
    font-size: 42px;
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    line-height: 1;
}

.feat-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2c5e;
    margin-bottom: 8px;
}

.feat-text p {
    font-size: 14px;
    color: #5c6f82;
    line-height: 1.6;
    margin: 0;
}

/* ---------- 三步使用 ---------- */
.steps {
    background: var(--bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-5px);
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}
.step-card h3 {
    font-size: 18px;
    color: #1a2c5e;
    margin-bottom: 10px;
}
.step-card p {
    color: #5c6f82;
    font-size: 14px;
}

/* ========== 使用场景（自动翻书页） ========== */
.scenes {
    background: #fff;
    overflow: hidden;
}

.book-slider {
    perspective: 1200px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.book-container {
    position: relative;
    min-height: 260px;
    transform-style: preserve-3d;
}

.book-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.book-page.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.scene-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scene-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.scene-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2c5e;
    margin-bottom: 12px;
}

.scene-card p {
    font-size: 15px;
    color: #4a5b7a;
    line-height: 1.7;
}

.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.book-btn {
    background: none;
    border: 1px solid #ccd6e0;
    color: #4a5b7a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-btn:hover {
    background: #f0f4ff;
    border-color: var(--primary);
    color: var(--primary);
}

.page-indicator {
    display: flex;
    gap: 10px;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccd6e0;
    cursor: pointer;
    transition: background 0.2s;
}

.page-dot.active {
    background: var(--primary);
}

/* ---------- 项目网格 ---------- */
.projects {
    background: var(--bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.proj-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.proj-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.proj-cover {
    height: 160px;
    background: linear-gradient(135deg, #eef3ff, #dce4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.proj-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.proj-card:hover .proj-cover img {
    transform: scale(1.05);
}
.proj-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.proj-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proj-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2c5e;
    margin-bottom: 8px;
}

.proj-desc {
    font-size: 14px;
    color: #5c6f82;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 14px;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.proj-tags span {
    background: #eef3ff;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.more-projects {
    text-align: center;
}

/* ---------- 联系方式 ---------- */
.contact {
    background: #fff;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-avatar {
    font-size: 42px;
    margin-bottom: 16px;
}

.contact-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a2c5e;
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 15px;
    color: #4a5b7a;
    line-height: 1.7;
    margin-bottom: 24px;
}

.email-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.email-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #8a9bb5;
    text-transform: uppercase;
}

.email-addr {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.email-addr:hover {
    text-decoration: underline;
}

.copy-btn {
    background: #fff;
    border: 1px solid #ccd6e0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn:hover {
    background: #f0f4ff;
}
.copy-btn.copied {
    background: #e6f7ec;
    border-color: #6fcf97;
    color: #1e7e34;
}

.contact-apology {
    font-size: 14px;
    color: #8a9bb5;
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 10px;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, #eef3ff, #dce4ff);
}

.cta-card {
    text-align: center;
    padding: 50px 30px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.8);
}

.cta-card h2 {
    font-size: 28px;
    color: #1a2c5e;
    margin-bottom: 12px;
}

.cta-card p {
    color: #5c6f82;
    margin-bottom: 30px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 16px 50px;
        min-height: auto;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-stat {
        gap: 24px;
    }
    .section {
        padding: 60px 16px;
    }
    .project-grid {
        max-width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-stat {
        flex-direction: column;
        gap: 16px;
    }
}