/* Erhu Brand Pages - Shared CSS */
:root {
    --primary: #1a3a5c;
    --primary-light: #2d5f8a;
    --accent: #c9a84c;
    --bg: #f9f9f7;
    --text: #2d2d2d;
    --text-light: #666;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

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

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

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 48px 0 40px;
    text-align: center;
}
header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.02em; }
header p { font-size: 1.05rem; opacity: 0.85; max-width: 680px; margin: 0 auto; }

/* Nav */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 100;
}
nav .nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    justify-content: center;
}
nav a {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
nav a:hover { color: var(--primary-light); border-bottom-color: var(--accent); }

/* Sections */
.section {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 36px 40px;
    margin: 32px auto;
    max-width: 1100px;
}
.section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}
.section h3 {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin: 20px 0 10px;
}
.section p { margin-bottom: 12px; color: var(--text-light); }
.section ul { margin: 8px 0 16px 20px; color: var(--text-light); }
.section li { margin-bottom: 6px; }

/* Related Pages */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.related-card {
    background: var(--bg);
    padding: 20px 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}
.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.related-card a {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.02rem;
}
.related-card p {
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
    font-size: 0.88rem;
}
footer a { color: var(--accent); }

@media (max-width: 768px) {
    header { padding: 32px 0 28px; }
    header h1 { font-size: 1.5rem; }
    .section { padding: 24px 20px; margin: 20px 16px; }
    nav .nav-inner { gap: 4px 16px; }
}
