/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb span:last-child {
    color: var(--text-light);
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* 区域标题 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-weight: 700;
}

/* 特色功能 */
.features {
    padding: 80px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 产品预览 */
.products-preview {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--dark-color);
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1rem 0;
}

.product-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.product-features li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 流程步骤 */
.process {
    padding: 80px 0;
    background: var(--light-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.process-step p {
    color: var(--text-light);
}

/* SEO内容区域 */
.seo-content {
    padding: 80px 0;
}

.seo-content article {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.seo-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-color);
}

.seo-content h4 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
    color: var(--dark-color);
}

.seo-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.seo-content ul,
.seo-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq {
    margin-top: 2rem;
}

.faq-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-light);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

.about p {
    max-width: 900px;
    margin: 0 auto 1rem;
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 用户评价 */
.reviews {
    margin-top: 2rem;
}

.review-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-header strong {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.review-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0.5rem 0;
}

.review-item time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* 关键词标签 */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.keyword-tag {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.keyword-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card.featured {
        transform: scale(1);
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 发卡页面样式 */
.card-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-method {
    border: 2px solid var(--light-color);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
}

.payment-method input {
    display: none;
}

.order-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--dark-color);
}

/* 产品页面样式 */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-detail {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-detail h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-detail .price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1rem 0;
}

.product-detail .description {
    color: var(--text-light);
    line-height: 1.8;
    margin: 1rem 0;
}
