/* === V8 (极简留白) 基本样式与变量 === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    /* V8 色彩方案 - 黑白灰主导，少量主色点缀 */
    --primary-color-v8: #4f46e5; /* Indigo 600 - 作为少量强调 */
    --primary-light-v8: #a5b4fc; /* Indigo 300 */
    --primary-dark-v8: #4338ca; /* Indigo 700 */

    --bg-main-v8: #ffffff; /* 主背景 */
    --bg-alt-v8: #f8fafc; /* Slate 50 - 交替背景 */

    --text-dark-v8: #111827; /* Gray 900 - 最深文字 */
    --text-medium-v8: #374151; /* Gray 700 - 主要文字 */
    --text-light-v8: #6b7280; /* Gray 500 - 次要文字 */
    --text-lighter-v8: #9ca3af; /* Gray 400 - 最浅文字 */

    --border-color-v8: #e5e7eb; /* Gray 200 - 细边框 */

    --footer-bg-v8: var(--bg-alt-v8); /* 页脚也是浅色 */
    --footer-text-v8: var(--text-light-v8);
    --footer-link-hover-v8: var(--primary-color-v8);

    /* V8 字体 */
    --font-primary-v8: 'Poppins', 'Noto Sans SC', sans-serif;
    --font-secondary-v8: 'Poppins', 'Noto Sans SC', sans-serif;

    /* V8 阴影 (几乎不用) */
    --shadow-sm-v8: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-md-v8: 0 4px 6px -1px rgb(0 0 0 / 0.04), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg-v8: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);

    /* V8 圆角 (微小) */
    --border-radius-base-v8: 4px;
    --border-radius-lg-v8: 8px;

    --transition-v8: all 0.2s ease-in-out;
}

/* === V8 重置与全局设置 === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-v8 {
    font-family: var(--font-primary-v8);
    line-height: 1.7;
    color: var(--text-medium-v8);
    background-color: var(--bg-main-v8);
    opacity: 1;
    transition: none;
}

body.theme-v8.loaded {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1100px; /* 稍窄容器，更多留白 */
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 6rem 0; /* 增加垂直间距 */
    position: relative;
    overflow: hidden;
}

section:nth-child(odd) { /* 交替背景色 */
    background-color: var(--bg-alt-v8);
}

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

a {
    color: var(--primary-color-v8);
    text-decoration: none;
    transition: var(--transition-v8);
}

a:hover {
    color: var(--primary-dark-v8);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary-v8);
    color: var(--text-dark-v8);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light-v8);
    max-width: 550px;
    margin: 0 auto;
}

/* === V8 按钮样式 (极简) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: var(--border-radius-base-v8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-v8);
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: none;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    box-shadow: none; /* 无阴影 */
}

.btn i {
    margin-left: 0.4rem;
    font-size: 0.8rem;
}

/* V8 主按钮 - 纯色 */
.btn-primary {
    background-color: var(--primary-color-v8);
    color: white;
    border-color: var(--primary-color-v8);
}

.btn-primary:hover {
    background-color: var(--primary-dark-v8);
    border-color: var(--primary-dark-v8);
}

/* V8 描边按钮 - 细边框 */
.btn-outline {
    background: transparent;
    color: var(--text-medium-v8);
    border-color: var(--border-color-v8);
}

.btn-outline:hover {
    background-color: var(--bg-alt-v8);
    color: var(--text-dark-v8);
    border-color: var(--border-color-v8);
}

/* === V8 导航栏 (悬浮感) === */
.header-v8 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-v8);
    border-bottom: 1px solid transparent; /* 默认无边框 */
    box-shadow: none;
}

.header-v8.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm-v8);
    border-bottom-color: var(--border-color-v8);
}

.header-v8 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-v8 .logo {
    display: flex;
    align-items: center;
}

.header-v8 .logo h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark-v8);
    /* margin-left: 0.7rem; */
}

/* 移除 Logo Icon */
.header-v8 .logo-icon { display: none; }

.header-v8 .nav-links {
    display: flex;
    gap: 2rem;
}

.header-v8 .nav-links a {
    color: var(--text-medium-v8);
    font-weight: 400;
    position: relative;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.header-v8 .nav-links a i { display: none; }

.header-v8 .nav-links a:hover,
.header-v8 .nav-links a.active {
    color: var(--primary-color-v8);
}

/* V8 Nav Link Hover - 无效果或仅颜色 */
.header-v8 .nav-links a::after { display: none; }

.header-v8 .mobile-menu {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-medium-v8);
}

/* === V8 英雄区域 (大标题+简洁按钮) === */
.hero-v8 {
    padding: 10rem 0 10rem;
    background-color: var(--bg-main-v8);
    text-align: center;
    position: relative;
}

.hero-v8 .hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-v8 .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    color: var(--text-dark-v8);
}

.hero-v8 .hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-light-v8);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-v8 .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

/* === V8 关于我们 (左右图文) === */
.about-v8 {
    /* background-color: var(--bg-main-v8); */
}

.about-v8 .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* 更大间距 */
    align-items: center;
}

.about-v8 .about-image {
    border-radius: var(--border-radius-lg-v8);
    overflow: hidden;
    /* box-shadow: var(--shadow-md-v8); */
    position: relative;
}

.about-v8 .about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark-v8);
    font-weight: 700;
}

.about-v8 .about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-medium-v8);
}

/* V8 了解更多链接 */
.learn-more-link {
    color: var(--primary-color-v8);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.learn-more-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.learn-more-link:hover i {
    transform: translateX(4px);
}

/* V8 Stats - 移除 */
.about-v8 .about-stats { display: none; }

/* === V8 特性展示 (交错图文) === */
.features-v8 {
    /* background-color: var(--bg-alt-v8); */
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}
.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item.reverse {
    grid-template-columns: 1fr 1fr; /* 顺序不变，调整图片位置 */
}

.feature-item.reverse .feature-image {
    order: -1; /* 图片放左边 */
}

.feature-image {
    border-radius: var(--border-radius-lg-v8);
    overflow: hidden;
    /* box-shadow: var(--shadow-lg-v8); */
}

.feature-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-text p {
    margin-bottom: 1.5rem;
    color: var(--text-medium-v8);
}

.feature-text ul {
    list-style: none;
    padding-left: 0;
}

.feature-text ul li {
    margin-bottom: 0.6rem;
    color: var(--text-medium-v8);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-text ul li i {
    color: var(--primary-color-v8);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* === V8 定价 (简洁卡片) === */
.pricing-v8 {
    /* background-color: var(--bg-main-v8); */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch; /* 卡片等高 */
}

.pricing-card {
    background: var(--bg-main-v8);
    border-radius: var(--border-radius-lg-v8);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color-v8);
    transition: var(--transition-v8);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--primary-light-v8);
    box-shadow: var(--shadow-md-v8);
}

.pricing-card.recommended {
    border-color: var(--primary-color-v8);
    box-shadow: var(--shadow-md-v8);
}

.recommend-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background-color: var(--primary-color-v8);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.pricing-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-medium-v8);
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark-v8);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light-v8);
    margin-left: 0.2rem;
}

.pricing-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1; /* 占据剩余空间 */
}

.pricing-features li {
    margin-bottom: 0.8rem;
    color: var(--text-medium-v8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-features li i {
    color: var(--primary-color-v8);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}
.pricing-features li i.fa-circle {
    color: var(--text-lighter-v8);
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto; /* 按钮推到底部 */
}

/* === V8 博客 (无图卡片) === */
.blog-v8 {
    /* background-color: var(--bg-alt-v8); */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: var(--transition-v8);
    border: none;
    display: flex;
    flex-direction: column;
}

/* 移除图片 */
.blog-image-link { display: none; }

.blog-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    color: var(--text-light-v8);
}

.blog-category {
    color: var(--primary-color-v8);
    font-weight: 500;
}

.blog-date {}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-dark-v8);
}

.blog-title a:hover {
    color: var(--primary-color-v8);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-medium-v8);
    margin-bottom: 0;
    line-height: 1.6;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical;   */
    /* overflow: hidden; */
    flex-grow: 1;
}

/* === V8 联系我们 (邮件输入) === */
.contact-v8 {
    /* background-color: var(--bg-main-v8); */
    padding: 6rem 0 7rem;
}

.contact-v8 .contact-content {
    display: grid;
    grid-template-columns: 1fr auto; /* 文本占满，表单自适应 */
    gap: 2rem;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-alt-v8);
    padding: 3rem;
    border-radius: var(--border-radius-lg-v8);
    border: 1px solid var(--border-color-v8);
}

.contact-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-light-v8);
    margin-bottom: 0.8rem;
}
.contact-text .contact-email {
    font-size: 0.9rem;
    color: var(--text-medium-v8);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.contact-text .contact-email i {
    color: var(--text-light-v8);
}

.contact-v8 .contact-form {}

.contact-v8 .form-group {
    margin-bottom: 0;
    display: flex;
    gap: 0.5rem;
}

.contact-v8 .form-label { display: none; }

.contact-v8 .form-group input {
    flex-grow: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color-v8);
    border-radius: var(--border-radius-base-v8);
    font-size: 0.95rem;
}

.contact-v8 .form-group input:focus {
    outline: none;
    border-color: var(--primary-color-v8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-v8 .form-group button {
    flex-shrink: 0;
}

.contact-v8 .form-alert-placeholder {}

/* === V8 友情链接 (极简列表) === */
.friend-links-v8 {
    /* background-color: var(--bg-alt-v8); */ /* 默认与section一致 */
    padding: 4rem 0; /* 较小的间距 */
}

.friend-links-v8 .section-header {
    margin-bottom: 2.5rem;
}
.friend-links-v8 .section-header h2 {
    font-size: 1.5rem; /* 标题缩小 */
    font-weight: 500;
    color: var(--text-medium-v8);
}
.friend-links-v8 .section-header p { display: none; }

.friend-links-v8 .links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.friend-links-v8 .links-grid a {
    color: var(--text-light-v8);
    font-size: 0.9rem;
    padding: 0;
    border-radius: 0;
    transition: var(--transition-v8);
    background-color: transparent;
    border: none;
    opacity: 0.8;
}

.friend-links-v8 .links-grid a:hover {
    color: var(--primary-color-v8);
    opacity: 1;
    text-decoration: underline;
}

/* === V8 页脚 (极简) === */
.footer-v8 {
    background-color: var(--footer-bg-v8);
    color: var(--footer-text-v8);
    padding: 3.5rem 0 3rem;
    border-top: 1px solid var(--border-color-v8);
}

.footer-v8 .container {}

.footer-v8 .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    gap: 2rem;
    flex-wrap: wrap; /* 换行 */
}

.footer-logo-col {
    flex-basis: 25%; /* 占据一部分宽度 */
    min-width: 200px;
}
.footer-logo-col h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark-v8);
    font-weight: 600;
}
.footer-logo-col p {
    font-size: 0.85rem;
    color: var(--text-light-v8);
    margin-bottom: 1rem;
}

.footer-v8 .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-v8 .social-icons a {
    color: var(--text-lighter-v8);
    font-size: 1.1rem;
}
.footer-v8 .social-icons a:hover {
    color: var(--primary-color-v8);
}

.footer-v8 .footer-links {
    flex-grow: 1; /* 其他链接列占据剩余空间 */
    margin-bottom: 1rem; /* 移动端间距 */
}

.footer-v8 .footer-links h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-medium-v8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-v8 .footer-links ul li {
    margin-bottom: 0.4rem;
}

.footer-v8 .footer-links a {
    color: var(--text-light-v8);
    transition: var(--transition-v8);
    font-size: 0.9rem;
    opacity: 1;
}

.footer-v8 .footer-links a:hover {
    color: var(--footer-link-hover-v8);
    text-decoration: underline;
}

/* 移除页脚底部 */
/* .footer-v8 .footer-bottom { ... } */


/* === V8 回到顶部按钮 === */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-main-v8);
    color: var(--text-light-v8);
    border: 1px solid var(--border-color-v8);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
    box-shadow: var(--shadow-sm-v8);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    color: var(--primary-color-v8);
    border-color: var(--primary-light-v8);
    background-color: var(--bg-alt-v8);
}

/* === V8 响应式调整 === */
@media (max-width: 992px) {
    .header-v8 .nav-links { display: none; }
    .header-v8 .mobile-menu { display: block; }
    .about-v8 .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .feature-item, .feature-item.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }
    .feature-item.reverse .feature-image {
        order: 0; /* 恢复默认顺序 */
    }
    .contact-v8 .contact-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    .contact-v8 .contact-text p {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-v8 .form-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Nav Styles - V8 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 260px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--bg-main-v8);
        padding: 5rem 0 2rem;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.05);
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        gap: 0;
        border-left: 1px solid var(--border-color-v8);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        color: var(--text-dark-v8);
        font-weight: 400;
        border-bottom: 1px solid var(--border-color-v8);
        width: 100%;
        border-radius: 0;
    }
    .nav-links a i { display: none; }
    .nav-links a.active, .nav-links a:hover {
        color: var(--primary-color-v8);
        background-color: var(--bg-alt-v8);
    }
    .nav-links a::after { display: none; }

    .overlay {
        background: rgba(0, 0, 0, 0.1); /* 非常浅的遮罩 */
        /* ... rest of overlay styles */
    }
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-v8 .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-v8 .hero-content p {
        font-size: 1.05rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .footer-v8 .footer-content {
        flex-direction: column;
        align-items: center; /* 居中 */
        text-align: center;
    }
    .footer-logo-col {
        flex-basis: auto;
        width: 100%;
        text-align: center;
    }
    .footer-v8 .social-icons {
        justify-content: center;
    }
    .footer-v8 .footer-links {
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 576px) {
    section {
        padding: 4.5rem 0;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-v8 .hero-content h1 {
        font-size: 2.3rem;
    }
    .hero-v8 .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-v8 .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .hero-v8 .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        padding: 0.7rem 1.5rem;
    }
    .feature-item, .feature-item.reverse {
        gap: 2rem;
    }
    .feature-text h3 {
        font-size: 1.4rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr; /* 单列 */
        gap: 1.5rem;
    }
    .contact-v8 .contact-content {
        padding: 1.5rem;
    }
    .contact-v8 .form-group {
        flex-direction: column;
    }
    .contact-v8 .form-group button {
        margin-top: 0.5rem;
    }
}


/* === V8 自定义滚动条 === */
::-webkit-scrollbar {
    width: 5px; /* 最最细 */
}

::-webkit-scrollbar-track {
    background: var(--bg-alt-v8);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color-v8);
    border-radius: 2.5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-lighter-v8);
}