/* ============================================
   Huaquan Generator - Russian Station Sites
   Shared Stylesheet v1.0
   ============================================ */
:root {
    --primary: #1a3c6d;
    --primary-dark: #0f2557;
    --primary-light: #2a5caa;
    --accent: #e8830c;
    --accent-hover: #c9700a;
    --bg: #f5f6f8;
    --card-bg: #ffffff;
    --text: #222222;
    --text-light: #555555;
    --text-muted: #888888;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 6px;
    --transition: 0.2s ease;
}

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

body {
    font-family: -apple-system, 'Segoe UI', Arial, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.3;
}
.site-logo span { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.75; }

.header-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.header-nav a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 6px 13px;
    border-radius: 4px;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { background: rgba(255,255,255,0.14); color: #fff; }

/* ===== Network Bar (internal links) ===== */
.network-bar {
    background: var(--primary-dark);
    padding: 6px 0;
    overflow-x: auto;
    white-space: nowrap;
}
.network-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 6px;
}
.network-inner a {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 3px;
    transition: var(--transition);
}
.network-inner a:hover, .network-inner a.current {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ===== Container & Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.main-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
@media (max-width: 768px) { .main-grid { grid-template-columns: 1fr; } }

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
}
.sidebar-card h3 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 2px; }
.sidebar-card li a {
    display: block;
    padding: 7px 10px;
    font-size: 0.88rem;
    color: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}
.sidebar-card li a:hover { background: var(--bg); color: var(--accent); }

/* ===== Main Content ===== */
.content-area { min-width: 0; }

.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); }

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.page-desc { color: var(--text-light); font-size: 0.95rem; margin-bottom: 24px; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.card h3 a { color: var(--primary); }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.55; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }

/* ===== Article ===== */
.article-body { line-height: 1.8; font-size: 0.95rem; color: var(--text); }
.article-body h2 { font-size: 1.3rem; color: var(--primary); margin: 28px 0 12px; }
.article-body h3 { font-size: 1.1rem; color: var(--text); margin: 20px 0 8px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 10px 0 14px 24px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--primary); color: #fff; font-weight: 600; }
.article-body tr:nth-child(even) { background: var(--bg); }

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.faq-q { font-weight: 600; color: var(--primary); cursor: pointer; font-size: 1rem; }
.faq-a { margin-top: 8px; color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.product-img { background: var(--bg); height: 180px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }
.product-info { padding: 14px 16px; }
.product-info h4 { font-size: 0.95rem; margin-bottom: 6px; }
.product-info p { font-size: 0.82rem; color: var(--text-light); }
.product-price { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin-top: 8px; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--card-bg);
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
}
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination .current { background: var(--primary); color: #fff; font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.65);
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 0.82rem;
    line-height: 1.8;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.55); display: block; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }

/* ===== Schema / SEO ===== */
.schema-hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .header-nav { margin-top: 8px; }
    .card-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
}
