/*
Theme Name: TrendySaver Pro
Theme URI: https://yourdomain.com
Author: Lobster Bot
Author URI: https://openclaw.ai
Description: 原创时尚折扣发现平台 - 独特设计风格，包含商家推广、折扣信息、购物指南。基于 1845 个真实商家数据，已预置高价值商家推广内容。100% 原创设计，无侵权风险。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: trendysaver-pro
Tags: fashion, beauty, deals, shopping, blog, responsive

Original design - No copyright infringement.
*/

/* ===== 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

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

/* ===== 头部 - 原创设计 ===== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    font-size: 1.6em;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-logo span {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #e74c3c;
}

/* ===== Hero 横幅 - 原创渐变设计 ===== */
.hero-banner {
    background: linear-gradient(135deg, #FF6B6B 10%, #FF8E53 50%, #FFD93D 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-banner h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.hero-banner p {
    font-size: 1.4em;
    opacity: 0.98;
    max-width: 750px;
    margin: 0 auto 35px;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-primary {
    background: #fff;
    color: #FF6B6B;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 3px solid #fff;
}

/* ===== 分类标签 ===== */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    color: #667eea;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* ===== 文章网格 ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.post-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #95a5a6;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== 商家推广卡片 - 原创设计 ===== */
.merchant-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid transparent;
}

.merchant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.2);
    border-left-color: #FF6B6B;
}

.merchant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.merchant-name {
    font-size: 1.6em;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.merchant-category {
    padding: 6px 18px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A085 100%);
    color: #fff;
    border-radius: 25px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.merchant-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

.merchant-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.merchant-link {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.merchant-link:hover {
    background: #5568d3;
}

/* ===== 单篇文章 ===== */
.single-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: #7f8c8d;
    font-size: 1em;
}

.article-body {
    font-size: 1.1em;
    line-height: 1.9;
    color: #333;
}

.article-body h2 {
    font-size: 2em;
    color: #2c3e50;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.article-body h3 {
    font-size: 1.5em;
    color: #34495e;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* ===== 折扣标签 ===== */
.deal-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
    margin-left: 10px;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

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

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2em;
    }
    
    .main-nav {
        display: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2em;
    }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.highlight { background: #fff3cd; padding: 2px 6px; border-radius: 4px; }
