/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 变量定义 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --max-width: 1200px;
    --spacing: 2rem;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 1;
    color: #ffffff;
}

.nav-menu .btn.btn-primary {
    color: var(--dark-color);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    background: #ffffff;
    font-weight: 600;
}

.nav-menu .btn.btn-primary:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

/* 主横幅 */
.hero {
    padding-top: 8rem;
    margin-top: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-feature-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 特性部分 */
.features {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-header p {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
}

/* 价格部分 */
.pricing {
    padding: 6rem 0;
    background: var(--light-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.price-card.popular {
    border-color: var(--primary-color);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.price-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price-name {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.price-period {
    color: var(--secondary-color);
}

.price-features {
    margin: 2rem 0;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.price-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-text {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu li {
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    max-width: 300px;
}

.footer-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-info .affiliate-disclosure {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1rem;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary-color);
}

.coupon-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.coupon-bar strong {
    color: #ffd700;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    margin: 0 0.5rem;
}

.navbar {
    top: 3rem;
}

.hero {
    padding-top: 11rem;
}

@media (max-width: 768px) {
    .coupon-bar {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    .navbar {
        top: 2.5rem;
    }
    
    .hero {
        padding-top: 10rem;
    }
}

/* 页面通用样式 */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.page-content p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 关于我们页面样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content ul {
    margin: 1rem 0 2rem;
    padding-left: 1.5rem;
}

.about-content li {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-content .affiliate-disclosure {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
}

.about-content .affiliate-disclosure h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-content .affiliate-disclosure p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 7rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-content {
        padding: 2rem 0;
    }

    .about-content {
        padding: 0 1rem;
    }
}

/* 联系我们页面样式 */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.contact-method {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.contact-method h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-method p {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-note {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
}

.contact-note h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-note ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.contact-note li {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-note a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-content {
        padding: 0 1rem;
    }
}