* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #FF9800;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 头部样式 */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 32px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background-color: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
}

.cart-icon {
    font-size: 20px;
}

.cart-count {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-btn, .logout-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
}

/* 公告栏 */
.announcement-bar {
    background-color: var(--primary-light);
    color: white;
    padding: 12px 0;
}

.announcement-text {
    text-align: center;
    font-size: 14px;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* 区块通用样式 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.product-badge.seasonal {
    background-color: var(--primary-color);
}

.product-badge.out-of-stock {
    background-color: #f44336;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

.product-stock {
    font-size: 12px;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    gap: 12px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* 订阅套餐 */
.subscriptions-section {
    background-color: var(--bg-light);
}

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

.subscription-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.subscription-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.subscription-header {
    text-align: center;
    margin-bottom: 24px;
}

.subscription-name {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.subscription-duration {
    font-size: 14px;
    color: var(--text-light);
}

.subscription-price {
    text-align: center;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
}

.price-original {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 12px;
}

.subscription-content {
    margin-bottom: 24px;
}

.subscription-desc {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-light);
}

.subscription-features {
    list-style: none;
}

.subscription-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.subscription-footer {
    text-align: center;
}

/* 关于我们 */
.about-section {
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.about-list {
    list-style: none;
    margin: 24px 0;
}

.about-list li {
    padding: 8px 0;
    color: var(--text-color);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 页脚 */
.main-footer {
    background-color: #2d3436;
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.footer-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
    color: white;
}

.footer-desc {
    color: #b2bec3;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-info {
    list-style: none;
}

.footer-info li {
    margin-bottom: 8px;
    color: #b2bec3;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #636e72;
    color: #b2bec3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .header-wrapper {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .main-nav ul {
        gap: 16px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 页面标题 */
.page-header {
    background-color: var(--bg-white);
    padding: 32px 0;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 32px;
    text-align: center;
    color: var(--text-color);
}
