/* styles.css */
:root {
    --primary-color: #0088ff;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --max-width: 1200px;
    --section-padding: 5rem 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-img {
    height: 30px;
    width: 30px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.login-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    padding: 0;
    background-color: white;
}

.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.hero-text {
    flex: 1;
    padding: 2rem 0;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.hero-text p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.sub-text {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.sub-text::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.start-btn {
    margin-top: 3rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hero-image svg {
    width: 100%;
    height: auto;
    max-width: 600px;
    min-height: 400px;
    filter: drop-shadow(0 10px 20px rgba(0, 136, 255, 0.1));
    transform: scale(1.2);
}

/* 特性部分 */
.features-section {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 4rem;
    text-align: center;
    padding: 0;
}

/* 步骤容器样式 */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 步骤项样式 */
.step-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    position: relative;
}

/* 步骤图标容器 */
.step-icon {
    width: 160px;
    height: 160px;
    background-color: rgba(0, 136, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.step-icon:hover {
    background-color: rgba(0, 136, 255, 0.1);
}

.step-icon svg {
    width: 70px;
    height: 70px;
    transition: transform 0.3s ease;
}

.step-icon:hover svg {
    transform: scale(1.1);
}

/* 步骤编号 */
.step-number {
    width: 32px;
    height: 32px;
    background-color: #0088ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    box-shadow: 0 2px 8px rgba(0, 136, 255, 0.3);
}

/* 步骤图标 */
.step-icon img {
    width: 70px;
    height: 70px;
    color: var(--primary-color);
}

/* 步骤文本 */
.step-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.2rem;
}

.step-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* 步骤之间的箭头 */
.step-arrow {
    width: 80px;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    margin-top: 80px;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 5%;
        min-height: auto;
    }

    .hero-text {
        padding: 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .sub-text {
        text-align: left;
        display: inline-block;
    }

    .hero-image {
        padding: 1rem;
        transform: scale(0.8);
    }

    .hero-image svg {
        min-height: 300px;
        transform: scale(1);
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 2rem 1rem;
    }

    .step-item {
        max-width: 100%;
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-image {
        transform: scale(0.7);
    }

    .hero-image svg {
        min-height: 250px;
    }
}

/* 套餐部分 */
.plans-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.plans-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.2rem;
    color: #2c3e50;
}

/* 套餐卡片样式简化 */
.plans-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
}

/* 恢复普通套餐卡片的样式 */
.plan-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0088ff, #00a1ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,0,0,0);
    box-shadow: 0 15px 35px rgba(0,123,255,0.1);
}

.plan-card:hover::before {
    opacity: 1;
}

/* 美化套餐标题和价格 */
.plan-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.price {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: top;
    margin-right: 2px;
}

.price .amount {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.price .period {
    color: #666;
    font-size: 0.9rem;
}

/* 美化功能列表 */
.plan-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    color: #4a5568;
}

.check {
    color: #0088ff;
    font-size: 1.2rem;
}

/* 美化按钮 */
.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0088ff, #0066ff);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.25);
    background: linear-gradient(135deg, #0095ff, #0074ff);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    :root {
        --max-width: 960px;
    }
}

@media (max-width: 992px) {
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 1rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        padding: 1rem;
    }

    .hero-image img {
        min-height: 300px;
    }

    .sub-text {
        text-align: left;
        max-width: 400px;
        margin: 1rem auto;
    }

    .plans-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .plan-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .nav-links {
        display: none;
    }
}

/* 添加页脚样式 */
.footer {
    background-color: #2c3e50;
    padding: 4rem 0 2rem;
    margin-top: 0;
    color: white;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.footer-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #a8b6c5;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: #a8b6c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: white;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-method {
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #a8b6c5;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #a8b6c5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-sections {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 调整锚点定位，防止被固定导航栏遮挡 */
#flow, #plans, #contact {
    scroll-margin-top: 80px; /* 导航栏高度 + 一些额外空间 */
}

/* 调整按钮样式，使 a 标签看起来像按钮 */
.login-btn, .start-btn, .plan-btn {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

/* 添加法律文档页面样式 */
.legal-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-container h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 1.5rem;
}

.legal-section ul li {
    color: #666;
    margin-bottom: 0.8rem;
    position: relative;
}

.legal-section ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

@media (max-width: 768px) {
    .legal-container {
        margin: 60px 1rem;
        padding: 1.5rem;
    }
}