/* ==================== Template 1 - 温暖极简风 ==================== */
/* 配色：蜂蜜色 + 奶油白 + 暖棕 - 避免AI色调，使用自然温暖色系 */

:root {
    /* 温暖配色方案 - 蜂蜜奶油色系 */
    --primary: #D4A574;
    --primary-dark: #B8956A;
    --primary-light: #E8C9A8;
    --accent: #8B6914;
    --accent-light: #C9A227;
    
    /* 背景色 */
    --bg-primary: #FFFAF5;
    --bg-secondary: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-hover: rgba(212, 165, 116, 0.1);
    
    /* 文字色 */
    --text-primary: #3D2914;
    --text-secondary: #6B5344;
    --text-muted: #9A8B7C;
    
    /* 边框和阴影 */
    --border: #E8DFD5;
    --shadow-sm: 0 2px 8px rgba(61, 41, 20, 0.06);
    --shadow-md: 0 4px 16px rgba(61, 41, 20, 0.08);
    --shadow-lg: 0 8px 32px rgba(61, 41, 20, 0.12);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ===== 导航栏 - 极简风格 ===== */
.navbar {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-dark);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.btn-login {
    padding: 10px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.btn-login:hover {
    color: var(--text-primary);
}

.btn-register {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Hero Section - 大图极简 ===== */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 64px;
    margin-bottom: 48px;
}

.stat-item {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

/* ===== 通知栏 ===== */
.notice-section {
    padding: 16px 0;
    background: var(--bg-secondary);
}

.notice-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.notice-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.notice-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 商品列表 - 大卡片 ===== */
.products-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-img {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.product-stock {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary) !important;
    color: white !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.product-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 64px;
}

.product-info {
    padding: 28px;
}

.product-category {
    font-size: 12px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-price span {
    font-size: 14px;
    color: var(--text-muted);
}

.btn-buy {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.btn-buy:hover {
    background: var(--primary-dark);
}

/* ===== 特色功能 ===== */
.features-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-dark);
    font-size: 28px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .hero-title { font-size: 48px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 36px; }
    .hero-stats { flex-wrap: wrap; gap: 32px; }
    .hero-actions { flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
}

/* ===== 文章列表 ===== */
.articles-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.article-tag.tag-news {
    background: rgba(212, 165, 116, 0.15);
    color: var(--primary-dark);
}

.article-tag.tag-help {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.article-tag.tag-tutorial {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card:hover .article-title {
    color: var(--primary-dark);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 4px;
}