@charset "UTF-8";
/* ======
代号：Bule
版本：1.0
时间：2025年6月5日
====== */

/* =============================
   统一变量定义（全局色板/阴影/圆角）
   ============================= */
:root {
    --primary-color: #4A90E2;         /* 主色 - 蓝色 */
    --secondary-color: #2C3E50;      /* 辅助色 - 深灰 */
    --accent-color: #E74C3C;         /* 强调色 - 红色 */
    --text-color: #333333;           /* 正文文字颜色 */
    --light-bg: #F5F6FA;             /* 浅色背景 */
    --white: #FFFFFF;
    --light-gray: #A0A0A0;           /* 浅灰色，用于提示等 */
    --border-color: #e0e0e0;         /* 默认边框色 */
    --bg-color: var(--light-bg);     /* 页面背景色 */
    --card-bg: var(--white);         /* 卡片背景色 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --border-radius: 5px;            /* 圆角 */
    --transition: all 0.3s ease;     /* 统一动画过渡 */
}
/* 暗黑模式下变量重写 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;         /* 暗黑背景 */
        --card-bg: #1E1E1E;          /* 暗黑卡片背景 */
        --text-color: #E0E0E0;       /* 暗黑文字色 */
        --border-color: #2D2D2D;     /* 暗黑边框色 */
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 16px rgba(0,0,0,0.3);
    }
}

/* =============================
   全局基础样式重置
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;  /* 平滑滚动 */
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* =============================
   顶部导航栏（含Logo、菜单、移动端按钮）
   ============================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    height: 80px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    width: auto;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
}

/* =============================
   按钮基础样式
   ============================= */
.cta-button {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    margin-top: 1rem;
}
.cta-button:hover {
    background: #d44332;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cta-button:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}
.cta-button:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}
.buy-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 80%;
    margin-top: 1.5rem;
}
.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =============================
   主体各区块通用布局
   ============================= */
section {
    padding: 5rem 10%;
}
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }
}
@media (max-width: 375px) {
    section {
        padding: 2rem 1rem;
    }
}
@media (max-width: 768px) {
    .hero {
        margin-top: 5rem;
    }
}
@media (max-width: 375px) {
    .hero {
        margin-top: 4rem;
    }
}
.features h2,
.pricing h2,
.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* =============================
   Hero区域
   ============================= */
.hero {
    height: 60vh;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    margin-top: 5rem;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    max-width: 600px;
    line-height: 1.6;
}

/* =============================
   产品特性区块布局及动画
   ============================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}
/* 特性卡片动画延迟（如有多卡片可用 nth-child 设置延迟） */
.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }


/* =============================
   产品价格区块布局及动画
   ============================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.price-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.price-card .price {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
/* 选中和悬浮状态 */
.price-card.selected {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.price-card:hover:not(.selected) {
    transform: scale(1.02);
}
.price-card:hover .buy-button,
.price-card.selected .buy-button {
    background-color: var(--accent-color);
}
.price-card.selected .buy-button:hover {
    background-color: #d44332;
}
.price-card:not(.selected) .buy-button {
    background-color: var(--primary-color);
}
.price-card:not(.selected) .buy-button:hover {
    background-color: #357abd;
}
.pricing-grid:hover .price-card.selected:not(:hover) {
    transform: none;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
}
.pricing-grid:hover .price-card.selected:not(:hover) .buy-button {
    background-color: var(--primary-color);
}
.pricing-grid:hover .price-card:hover {
    transform: scale(1.02);
    border: 2px solid var(--primary-color);
}
.pricing-grid:hover .price-card:hover .buy-button {
    background-color: var(--accent-color);
}
.pricing-grid .price-card ul {
    list-style-type: none;
    margin: 1rem 0;
    padding: 0;
    text-align: left;
}
.pricing-grid .price-card ul li {
    margin: 0.8rem 0;
    padding: 0;
    text-align: left;
    display: block;
}
/* 价格卡片动画延迟 */
.price-card:nth-child(1) { animation-delay: 0s; }
.price-card:nth-child(2) { animation-delay: 0.1s; }
.price-card:nth-child(3) { animation-delay: 0.2s; }


/* =============================
   用户评价区块布局及动画
   ============================= */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.user {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 0; /* 只用img的margin-right，不用gap */
}
.user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 8px; /* 头像和信息更紧凑 */
}
.user-info {
    /* 默认即可，如需微调可加padding/margin */
}
.testimonial-card p {
    /* 可加自定义样式 */
}
/* 评价卡片动画延迟 */
.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }


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

/* =============================
   页脚区域
   ============================= */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    color: var(--white);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}
.footer-content .copyright,
.footer-links a,
.footer-links a:visited {
    color: var(--light-gray);
    text-decoration: none;
    margin-left: 1rem;
    transition: var(--transition);
}
.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
}

/* =============================
   暗黑模式适配（配色和卡片背景等变量自动覆盖，无需重复写具体颜色）
   ============================= */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    .navbar {
        background: var(--card-bg);
        box-shadow: var(--shadow-sm);
    }
    .nav-links a {
        color: var(--text-color);
    }
    .mobile-menu-btn span {
        background: var(--text-color);
    }
    .hero {
        background: linear-gradient(135deg, #2C5282, #1A365D);
    }
    .hero .buy-button {
        background-color: var(--accent-color);
        border: none;
    }
    .feature-card,
    .price-card,
    .testimonial-card {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    .price-card ul li {
        color: var(--light-gray);
    }
    .price-card .price {
        color: var(--primary-color);
    }
    .buy-button {
        background: var(--primary-color);
    }
    .buy-button:hover {
        background: #357abd;
    }
    .testimonial-card p {
        color: var(--text-color);
    }
    .user-info span {
        color: var(--light-gray);
    }
    footer {
        background: var(--card-bg);
    }
    .footer-content,
    .footer-content .copyright,
    .footer-links a,
    .footer-links a:visited {
        color: var(--light-gray);
    }
    .footer-links a:hover,
    .footer-links a:focus {
        color: var(--primary-color);
    }
}
/* 移动端暗黑模式导航专用 */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .nav-links {
        background: var(--card-bg) !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    }
    .nav-links a {
        color: var(--text-color) !important;
    }
    .mobile-menu-btn span {
        background: var(--text-color) !important;
    }
}

/* =============================
   响应式布局（平板、移动端）
   ============================= */
@media (max-width: 768px) {
    .features h2,
    .pricing h2,
    .testimonials h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    .navbar {
        height: auto;
        padding: 1rem 5%;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--card-bg);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        transition: 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    .nav-links li {
        width: 100%;
        margin: 0.8rem 0;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        color: var(--text-color);
        font-size: 1.1rem;
    }
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        background: var(--text-color);
        transition: 0.3s;
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
    }
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .nav-links.active {
        right: 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .copyright {
        text-align: center;
        width: 100%;
    }
    .footer-links {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        height: 50vh;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    section {
        padding: 4rem 5%;
    }
}
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    section {
        padding: 2rem 1rem;
    }
    .price-card {
        padding: 1.5rem;
    }
    .price-card .price {
        font-size: 1.75rem;
    }
}
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 80px 1rem 40px;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
}
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
}
