/**
 * The Quiet Coin — 首页样式
 * 配色:深森林绿 #1B4332 + 暖金 #D4A373 + 米白 #FAF8F1
 */

/* ===== RESET & BASE ===== */
.qc-home { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #2D3436; line-height: 1.6; }
.qc-home *, .qc-home *::before, .qc-home *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== HERO ===== */
.qc-hero {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #1B4332 100%);
    color: #fff;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.qc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,163,115,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(82,183,136,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.qc-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.qc-hero-tag {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4A373;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.qc-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #fff;
}
.qc-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Search Bar */
.qc-hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 2rem;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.qc-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: #2D3436;
}
.qc-search-input::placeholder { color: #999; }
.qc-search-btn {
    padding: 1rem 1.8rem;
    background: #D4A373;
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.qc-search-btn:hover { background: #c4935f; }
.qc-search-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Hero CTA Buttons */
.qc-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.qc-btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.qc-btn-primary {
    background: #D4A373;
    color: #fff;
    box-shadow: 0 4px 15px rgba(212,163,115,0.3);
}
.qc-btn-primary:hover { background: #c4935f; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,163,115,0.4); }
.qc-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.qc-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ===== STATS BAR ===== */
.qc-stats {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 1rem;
}
.qc-stats-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}
.qc-stat { text-align: center; }
.qc-stat-num {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1B4332;
}
.qc-stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
.qc-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1B4332;
    text-align: center;
    margin-bottom: 0.5rem;
}
.qc-section-sub {
    text-align: center;
    color: #666;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
}

/* ===== CATEGORIES ===== */
.qc-categories { padding: 3rem 1.5rem; background: #FAF8F1; }
.qc-cat-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}
.qc-cat-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.qc-cat-card:hover { border-color: #D4A373; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.qc-cat-card.active { border-color: #1B4332; background: #1B4332; color: #fff; }
.qc-cat-icon { display: block; font-size: 1.5rem; margin-bottom: 0.3rem; }
.qc-cat-name { font-size: 0.8rem; font-weight: 600; }

/* ===== ARTICLES ===== */
.qc-articles { padding: 3rem 1.5rem; background: #fff; }
.qc-article-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.qc-article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.qc-article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); border-color: #D4A373; }
.qc-article-img {
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}
.qc-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.qc-article-card:hover .qc-article-img img { transform: scale(1.05); }
.qc-article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    font-size: 3rem;
}
.qc-article-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.qc-article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.qc-article-excerpt { font-size: 0.85rem; color: #666; line-height: 1.6; flex: 1; }
.qc-article-meta { font-size: 0.75rem; color: #999; margin-top: 0.8rem; }

/* Loading & Empty */
.qc-loading, .qc-empty { text-align: center; padding: 3rem; color: #888; }
.qc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #1B4332;
    border-radius: 50%;
    animation: qc-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes qc-spin { to { transform: rotate(360deg); } }

/* Pagination */
.qc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.qc-page-btn {
    padding: 0.6rem 1.2rem;
    background: #1B4332;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.qc-page-btn:hover { background: #2D6A4F; }
.qc-page-btn:disabled { background: #ccc; cursor: not-allowed; }
.qc-page-info { color: #888; font-size: 0.9rem; }

/* ===== AI COACH CTA ===== */
.qc-ai-cta {
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    padding: 4rem 1.5rem;
    color: #fff;
}
.qc-ai-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.qc-ai-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.qc-ai-text p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; line-height: 1.7; }
.qc-ai-preview { display: flex; flex-direction: column; gap: 1rem; }
.qc-chat-bubble {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 85%;
}
.qc-chat-user {
    background: rgba(255,255,255,0.15);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.qc-chat-mira {
    background: rgba(212,163,115,0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* ===== CHECKIN CTA ===== */
.qc-checkin-cta {
    background: #FAF8F1;
    padding: 4rem 1.5rem;
    text-align: center;
}
.qc-checkin-inner { max-width: 800px; margin: 0 auto; }
.qc-checkin-inner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: #1B4332;
    margin-bottom: 1rem;
}
.qc-checkin-inner > p { color: #666; margin-bottom: 2rem; line-height: 1.7; }
.qc-checkin-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.qc-checkin-feat {
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #eee;
}
.qc-checkin-feat span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.qc-checkin-feat strong { color: #1B4332; font-size: 0.95rem; }
.qc-checkin-feat br + * { font-size: 0.8rem; color: #888; }
.qc-checkin-cta .qc-btn-outline { color: #1B4332; border-color: #1B4332; }
.qc-checkin-cta .qc-btn-outline:hover { background: #1B4332; color: #fff; }

/* ===== FOOTER CTA ===== */
.qc-footer-cta {
    background: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}
.qc-footer-cta h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: #1B4332;
    margin-bottom: 1rem;
}
.qc-footer-cta p { color: #666; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.qc-footer-cta .qc-btn-primary { background: #1B4332; }
.qc-footer-cta .qc-btn-primary:hover { background: #2D6A4F; }
.qc-footer-cta .qc-btn-outline { color: #1B4332; border-color: #1B4332; }
.qc-footer-cta .qc-btn-outline:hover { background: #1B4332; color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .qc-hero { padding: 3rem 1rem 2.5rem; }
    .qc-hero-title { font-size: 1.8rem; }
    .qc-hero-search { flex-direction: column; border-radius: 12px; }
    .c-search-input { border-radius: 12px 12px 0 0; }
    .qc-search-btn { border-radius: 0 0 12px 12px; }
    .qc-ai-inner { grid-template-columns: 1fr; }
    .qc-checkin-features { grid-template-columns: repeat(2, 1fr); }
    .qc-article-grid { grid-template-columns: 1fr; }
    .qc-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .qc-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .qc-checkin-features { grid-template-columns: 1fr 1fr; }
    .qc-stats-inner { gap: 0.5rem; }
    .qc-stat-num { font-size: 1.4rem; }
}
