@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;900&display=swap');

/* Color Palette */
:root {
    --primary-red: #BE3A2B;
    --primary-red-hover: #A13124; /* approx 8% darker */
    --bg-white: #F6F0E4;
    --text-ink: #2A2320;
    --gold: #B8912F;
    --indigo: #37545C;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-ink);
    font-family: 'Noto Serif SC', serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
h1, h2, h3, .brand-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-weight: normal;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }

/* Hairline Rules & Dividers */
.hairline-bottom {
    border-bottom: 1px solid var(--text-ink);
    opacity: 0.2;
}

.cloud-divider {
    width: 100%;
    height: 30px;
    margin: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cloud-divider svg {
    width: 200px;
    height: 100%;
}

/* Header & Nav */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(42, 35, 32, 0.15);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Setup */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.seal {
    width: 48px;
    height: 48px;
}
.brand-text {
    writing-mode: vertical-lr;
    font-size: 26px;
    color: var(--text-ink);
    letter-spacing: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}
.nav-links a:hover {
    color: var(--primary-red);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--bg-white);
    padding: 12px 32px;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--primary-red-hover);
    color: var(--bg-white);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 8px 20px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
}
.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--bg-white);
}

/* Stamp Badge */
.stamp-badge {
    display: inline-block;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 4px 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 12px;
    font-weight: 900;
    border-radius: 2px;
    position: relative;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 56px;
    color: var(--text-ink);
    margin-bottom: 24px;
    line-height: 1.2;
}
.hero .intro {
    font-size: 18px;
    color: rgba(42, 35, 32, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
section {
    padding: 60px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 36px;
    color: var(--text-ink);
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    right: 20%;
    height: 1px;
    background-color: var(--gold);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.card {
    border: 1px solid rgba(42, 35, 32, 0.2);
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    background-color: var(--bg-white);
}
.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-ink);
}
.card p {
    font-size: 14px;
    color: rgba(42, 35, 32, 0.7);
}

/* Pricing */
.pricing-card {
    border: 1px solid rgba(42, 35, 32, 0.2);
    padding: 50px 30px;
    border-radius: 4px;
    text-align: center;
    position: relative;
}
.pricing-card.premium {
    border: 2px solid var(--gold);
}
.pricing-card .stamp-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-white);
}
.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}
.price {
    font-size: 42px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
    color: var(--text-ink);
    margin-bottom: 30px;
}
.price span {
    font-size: 16px;
    font-weight: normal;
    color: rgba(42, 35, 32, 0.6);
}
.features-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}
.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 35, 32, 0.1);
    font-size: 14px;
    color: var(--text-ink);
}
.features-list li:last-child {
    border-bottom: none;
}
.indigo-text {
    color: var(--indigo);
}

/* FAQ & Resources */
.faq-item {
    border: 1px solid rgba(42, 35, 32, 0.2);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.faq-item h4 {
    font-size: 18px;
    color: var(--text-ink);
    margin-bottom: 12px;
}
.faq-item p {
    font-size: 14px;
    color: rgba(42, 35, 32, 0.7);
}
.resource-box {
    text-align: center;
    padding: 40px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    margin-top: 40px;
}
.resource-box a {
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(42, 35, 32, 0.2);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.footer-nav a {
    font-size: 14px;
    color: rgba(42, 35, 32, 0.8);
}
.footer-nav a:hover {
    color: var(--primary-red);
}
.copyright {
    font-size: 12px;
    color: rgba(42, 35, 32, 0.5);
}

/* Page Content (News/Other) */
.page-content {
    max-width: 800px;
    margin: 60px auto;
}
.page-content h1 {
    font-size: 40px;
    margin-bottom: 30px;
    text-align: center;
}
.page-content p {
    margin-bottom: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* simple hidden for mobile, in real world needs a menu button */
    }
    .hero h1 {
        font-size: 42px;
    }
    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 16px;
    }
}

/* Blog Cards */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card {
    border: 1px solid rgba(42, 35, 32, 0.2);
    border-radius: 4px;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}
.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    font-size: 12px;
    color: rgba(42, 35, 32, 0.5);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
.blog-category {
    color: var(--primary-red);
    font-weight: 600;
}
.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-excerpt {
    font-size: 14px;
    color: rgba(42, 35, 32, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}
.blog-cta::after {
    content: ' →';
}
.view-more-container {
    text-align: center;
    margin-top: 40px;
}
/* Article Pages */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(42, 35, 32, 0.2);
}
.article-header h1 {
    font-size: 40px;
    color: var(--text-ink);
    margin-bottom: 15px;
}
.article-meta {
    font-size: 14px;
    color: rgba(42, 35, 32, 0.6);
    display: flex;
    justify-content: center;
    gap: 20px;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-ink);
    padding: 0 20px 60px;
}
.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    border-bottom: 1px solid rgba(42, 35, 32, 0.1);
    padding-bottom: 10px;
}
.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content ul, .article-content ol {
    margin: 0 0 20px 30px;
    padding-left: 0;
}
.article-content li {
    margin-bottom: 10px;
}
.article-content a {
    color: var(--primary-red);
    text-decoration: underline;
}
.article-content a:hover {
    color: var(--primary-red-hover);
}
.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: rgba(42, 35, 32, 0.8);
}
.article-related {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 30px;
    background-color: rgba(42, 35, 32, 0.03);
    border: 1px solid rgba(42, 35, 32, 0.1);
    border-radius: 4px;
}
.article-related h3 {
    margin-bottom: 15px;
}
.article-related ul {
    list-style: none;
    padding: 0;
}
.article-related li {
    margin-bottom: 10px;
}
.article-related a {
    color: var(--text-ink);
    text-decoration: none;
}
.article-related a:hover {
    color: var(--primary-red);
}
@media (max-width: 768px) {
    .blog-cards {
        grid-template-columns: 1fr;
    }
    .article-header h1 {
        font-size: 30px;
    }
}

/* 新增：悬浮返回顶部按钮 */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-red);
    color: var(--bg-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(190, 58, 43, 0.3);
    z-index: 1000;
    font-size: 20px;
    text-decoration: none !important;
    transition: transform 0.2s, background-color 0.2s;
}
.floating-btn:hover {
    transform: translateY(-3px);
    background-color: var(--primary-red-hover);
    color: var(--bg-white);
}

/* 新增：主视觉区国风图片 */
.hero-image {
    margin: 40px auto 0;
    max-width: 800px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(42, 35, 32, 0.2);
    box-shadow: 0 10px 30px rgba(42, 35, 32, 0.05);
}
.hero-image img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

/* 新增：文章前后篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(42, 35, 32, 0.1);
}
.article-nav a {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: rgba(42, 35, 32, 0.6);
    text-decoration: none !important;
}
.article-nav a:hover {
    color: var(--primary-red-hover);
}
.article-nav a span {
    font-size: 16px;
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 4px;
}
.article-nav .next-post {
    text-align: right;
}
