:root {
    /* Ancient Chinese Palette */
    --primary-color: #cf3a3a; /* Cinnabar Red */
    --primary-hover: #b02e2e;
    --secondary-color: #2c3e50; /* Ink Blue/Black */
    --accent-color: #d4af37; /* Gold */
    --bg-color: #f4f1ea; /* Rice Paper */
    --surface-color: #fffef8;
    --text-main: #2c3e50;
    --text-secondary: #5d6d7e;
    --border-color: #dcd0b3;
    
    --card-radius: 4px;
    --section-spacing: 100px;
    --paper-texture: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    --wood-texture: repeating-linear-gradient(90deg, #8b5a2b, #8b5a2b 2px, #6d4c41 3px, #6d4c41 6px);
}

@font-face {
    font-family: 'GuFeng';
    src: local('KaiTi'), local('STKaiti'), local('BiauKai'), serif;
}

body {
    font-family: 'GuFeng', 'Noto Serif SC', 'SongTi SC', serif;
    background-color: var(--bg-color);
    background-image: var(--paper-texture), url('../images/bg-gufeng.svg');
    background-size: auto, cover;
    background-position: top center;
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

/* Animations */
.animate-on-scroll { opacity: 0; transition: all 1s ease-out; }
.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }
.animate-on-scroll.visible { opacity: 1; transform: translate(0, 0); }

/* Brush Divider */
.brush-divider {
    width: 100%;
    height: 60px;
    background-image: url('../images/brush-stroke.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 40px 0;
    opacity: 0.8;
}

/* Vertical Text Decoration */
.vertical-text {
    position: fixed;
    top: 15%;
    font-size: 24px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 15px;
    color: var(--text-main);
    opacity: 0.1;
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
    font-family: 'KaiTi', serif;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}
.left-deco { left: 5%; }
.right-deco { right: 5%; }

/* Header */
header {
    background: rgba(255, 254, 248, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.05);
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: inline-block;
    padding: 0 12px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 36px;
    border-radius: 4px;
    font-family: serif;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    font-size: 22px;
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(207, 58, 58, 0.3);
}

.sub-title {
    font-size: 16px;
    color: var(--primary-color);
    margin-left: 5px;
    font-weight: normal;
    border-left: 1px solid #ccc;
    padding-left: 10px;
    letter-spacing: 1px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    font-weight: 500;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lg { padding: 14px 36px; font-size: 18px; }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Ink spread effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(207, 58, 58, 0.4); }

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; z-index: 2; }

/* Sakura Container */
#sakura-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.petal {
    position: absolute;
    background-color: #ffc0cb;
    border-radius: 150% 0 150% 0;
    animation: animate-petal 10s linear infinite;
}
.petal::after {
    content: "";
    position: absolute;
    top: -12%; left: -12%;
    width: 100%; height: 100%;
    border-radius: 150% 0 150% 0;
    background-color: #ffc0cb;
    transform: rotate(15deg);
    z-index: 1;
}
@keyframes animate-petal {
    0% { top: -10%; transform: translateX(0) rotate(0deg); opacity: 0.7; }
    100% { top: 110%; transform: translateX(100px) rotate(360deg); opacity: 0; }
}

.ink-stamp {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 25px;
    transform: rotate(-2deg);
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
    box-shadow: 2px 2px 0 rgba(207, 58, 58, 0.1);
}

.hero h1 { font-size: 64px; margin: 0 0 30px; color: var(--text-main); line-height: 1.15; }
.text-highlight { color: var(--primary-color); text-shadow: 2px 2px 0 rgba(0,0,0,0.05); }

.poetic-text {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 20px; margin-bottom: 50px; }

.hero-stats { display: flex; gap: 50px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.stat-item .count {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    font-family: 'Times New Roman', serif;
}

/* Hero Image */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.mascot-img { width: 80%; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1)); animation: pulse-slow 8s infinite; }
.floating-card {
    position: absolute;
    background: var(--surface-color);
    padding: 15px 8px;
    border: 1px solid var(--secondary-color);
    box-shadow: 4px 4px 0 rgba(44, 62, 80, 0.1);
    font-weight: bold;
    color: var(--secondary-color);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 5px;
    font-family: 'KaiTi', serif;
    transition: transform 0.3s;
}
.floating-card:hover { transform: translateY(-5px); }
.card-1 { top: 0; right: 10%; border-color: var(--primary-color); color: var(--primary-color); }
.card-2 { bottom: 10%; left: 10%; }

@keyframes pulse-slow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.02); } }

/* Sections */
.section-highlight { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}
.title-deco { color: var(--primary-color); margin: 0 15px; font-size: 20px; vertical-align: middle; opacity: 0.8; }

.highlight-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.highlight-row.no-image { grid-template-columns: 1fr; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.highlight-row.no-image .icon-box { margin: 0 auto 24px; }
.highlight-row.no-image .feature-list { display: inline-block; text-align: left; }
.highlight-row.reverse .highlight-text { order: 2; }
.highlight-row.reverse.no-image .highlight-text { order: initial; }
.highlight-row.reverse .highlight-visual { order: 1; }

.icon-box {
    width: 60px; height: 60px;
    border: 2px solid;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 24px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}
.icon-box:hover { transform: rotate(0deg); }
.icon-box i { transform: rotate(-45deg); transition: transform 0.3s; }
.icon-box:hover i { transform: rotate(0deg); }
.icon-ink { border-color: var(--secondary-color); color: var(--secondary-color); }
.icon-red { border-color: var(--primary-color); color: var(--primary-color); }

.highlight-text h3 { font-size: 32px; margin-bottom: 20px; color: var(--text-main); }
.feature-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 18px; }
.feature-list li i { color: var(--text-main); font-size: 12px; opacity: 0.6; }

/* Scroll-like Cards & Visuals */
.visual-card {
    background: var(--surface-color);
    background-image: url('../images/pattern-lattice.svg');
    background-size: 40px 40px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    min-height: 300px;
    position: relative;
    border-radius: 2px;
}
/* Paper mounting effect */
.visual-card::before, .visual-card::after {
    content: '';
    position: absolute;
    left: 10px; right: 10px;
    height: 1px;
    background: var(--border-color);
    background-color: var(--surface-color); /* Mask lattice */
    z-index: 0;
}
.visual-card::before { top: 10px; bottom: 10px; background: rgba(255,255,255,0.8); height: auto; } /* Overlay mask */

.visual-card > * { z-index: 1; position: relative; } /* Ensure content is above mask */

.visual-icon-lg { font-size: 100px; opacity: 0.8; }
.ink-color { color: var(--secondary-color); }

/* Realistic Scroll Guide Section */
.scroll-container {
    background: var(--surface-color);
    padding: 60px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    margin: 60px 0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

/* Wooden Scroll Ends */
.scroll-container::before, .scroll-container::after {
    content: '';
    position: absolute;
    left: -20px; right: -20px;
    height: 24px;
    background: var(--wood-texture);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
}
.scroll-container::before { top: -12px; }
.scroll-container::after { bottom: -12px; }

/* Scroll inner decoration */
.steps-container { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.steps-container::before {
    content: '';
    position: absolute; top: 50px; left: 10%; right: 10%; height: 1px;
    background: var(--border-color); border-top: 1px dashed var(--secondary-color); opacity: 0.3; z-index: 0;
}

.step-card { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 20px; }
.step-number {
    font-family: 'KaiTi', serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border: 2px solid var(--primary-color);
    display: inline-block;
    width: 44px; height: 44px; line-height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.step-icon { font-size: 36px; color: var(--secondary-color); margin: 15px 0; transition: transform 0.3s; }
.step-card:hover .step-icon { transform: scale(1.1); }
.step-connector { display: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.faq-item {
    background: rgba(255,255,255,0.7);
    padding: 30px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--border-color);
    background: var(--surface-color);
}
.faq-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-main); font-weight: bold; }

/* New Footer Design */
footer {
    position: relative;
    background: #1a252f;
    color: #ecf0f1;
    margin-top: 80px;
    padding-bottom: 40px;
    clip-path: none;
    border-top: none;
}

.footer-mountains {
    position: absolute;
    top: -148px;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('../images/footer-mountains.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    pointer-events: none;
}

.footer-content-new {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    position: relative;
    gap: 80px;
}

.footer-left {
    flex: 0 0 auto;
    text-align: right;
}

.footer-logo-new {
    font-size: 32px;
    font-family: serif;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.seal {
    display: inline-block;
    width: 40px; height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    font-family: 'KaiTi', serif;
    box-shadow: 0 0 10px rgba(207, 58, 58, 0.5);
}

.footer-desc {
    font-size: 16px;
    color: #bdc3c7;
    line-height: 1.8;
    font-family: 'KaiTi', serif;
    font-style: italic;
    opacity: 0.8;
}

.footer-divider-vertical {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    margin: 0;
}

.link-group h4 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: normal;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.link-group a {
    display: block;
    color: #95a5a6;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
    font-size: 15px;
}

.link-group a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    gap: 60px;
    text-align: left;
}

.copyright-new {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
    position: relative;
}

.brush-line {
    width: 100%;
    height: 20px;
    background-image: url('../images/brush-stroke.svg');
    background-size: cover;
    opacity: 0.1;
    margin-bottom: 20px;
    filter: invert(1);
}

.small-text {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 5px;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .hero .container, .highlight-row { grid-template-columns: 1fr; text-align: center; }
    .poetic-text { border-left: none; border-top: 2px solid var(--accent-color); padding-top: 20px; padding-left: 0; display: inline-block; }
    .steps-container { flex-direction: column; gap: 40px; }
    .steps-container::before { display: none; }
    .highlight-row.reverse .highlight-text { order: 1; }
    .vertical-text { display: none; }
    .scroll-container { padding: 40px 20px; }
    .scroll-container::before, .scroll-container::after { left: 0; right: 0; }
    
    .footer-content-new { flex-direction: column; text-align: center; gap: 40px; }
    .footer-divider-vertical { display: none; }
    .footer-left { text-align: center; }
    .footer-logo-new { justify-content: center; }
    .footer-right { justify-content: center; gap: 40px; }
    .footer-mountains { height: 100px; top: -98px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 40px; }
    .hero-btns { flex-direction: column; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-right { flex-direction: column; gap: 30px; }
}
