/* Song Dynasty Elegant Typography Style */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;600;900&display=swap');

:root {
    --song-bg: #F2EFE8; /* Rice paper */
    --song-ink: #2C2824; /* Dark ink */
    --song-text: #4A453D; /* Lighter ink */
    --song-red: #9B3222; /* Cinnabar */
    --song-jade: #5C7A76; /* Jade */
    --song-border: #D4C9B3; /* Light wood/paper edge */
    
    --font-song: 'Noto Serif SC', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--song-bg);
    color: var(--song-text);
    font-family: var(--font-song);
    line-height: 2;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><rect width="100" height="100" fill="none"/><path d="M0 0h100v100H0z" filter="url(%23noise)"/><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter></svg>');
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.song-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Vertical Sidebar --- */
.song-sidebar {
    width: 120px;
    position: fixed;
    top: 0; left: 0; height: 100vh;
    background: var(--song-bg);
    border-right: 1px solid var(--song-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    z-index: 100;
}
.song-sidebar::after {
    content: '';
    position: absolute;
    top: 10px; bottom: 10px; right: 4px;
    width: 1px;
    background: var(--song-border);
}
.s-brand {
    writing-mode: vertical-rl;
    font-size: 28px;
    font-weight: 900;
    color: var(--song-ink);
    letter-spacing: 4px;
    margin-bottom: auto;
    position: relative;
}
.s-brand::after {
    content: '印';
    position: absolute;
    bottom: -30px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 24px;
    background: var(--song-red);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}
.s-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: auto;
}
.s-nav a {
    writing-mode: vertical-rl;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--song-text);
    transition: color 0.3s;
    position: relative;
}
.s-nav a:hover, .s-nav a.active {
    color: var(--song-red);
}
.s-nav a.active::before {
    content: '';
    position: absolute;
    top: 0; right: -15px;
    height: 100%; width: 2px;
    background: var(--song-red);
}
.s-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.s-lang {
    font-size: 14px;
    color: var(--song-jade);
    cursor: pointer;
    writing-mode: vertical-rl;
}
.btn-song {
    writing-mode: vertical-rl;
    padding: 20px 10px;
    border: 1px solid var(--song-ink);
    color: var(--song-ink);
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s;
    background: transparent;
}
.btn-song:hover {
    background: var(--song-ink);
    color: var(--song-bg);
}

/* --- Main Content --- */
.song-main {
    margin-left: 120px;
    width: calc(100% - 120px);
}

.song-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

/* --- Hero --- */
.song-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--song-border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text {
    position: relative;
}
.hero-text::before {
    content: '『';
    position: absolute;
    top: -40px; left: -20px;
    font-size: 60px;
    color: var(--song-border);
    line-height: 1;
}
.h-title {
    font-size: 64px;
    font-weight: 300;
    color: var(--song-ink);
    line-height: 1.2;
    margin-bottom: 30px;
}
.h-title span {
    color: var(--song-red);
    font-weight: 600;
}
.h-desc {
    font-size: 18px;
    margin-bottom: 40px;
    text-align: justify;
}
.h-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}
.btn-h {
    writing-mode: horizontal-tb;
    padding: 12px 30px;
    font-size: 16px;
}
.btn-h.primary {
    background: var(--song-red);
    color: #fff;
    border-color: var(--song-red);
}
.btn-h.primary:hover {
    background: transparent;
    color: var(--song-red);
}
.trust-marks {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--song-jade);
}
.trust-marks span::before {
    content: '❖';
    margin-right: 5px;
}
.hero-img {
    position: relative;
    padding: 20px;
    border: 1px solid var(--song-border);
    background: #fff;
}
.hero-img::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid var(--song-border);
}
.hero-img img {
    filter: sepia(0.3) contrast(1.1);
}

/* --- Section Title --- */
.sec-title {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    color: var(--song-ink);
    margin-bottom: 60px;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.sec-title::before, .sec-title::after {
    content: '';
    width: 60px; height: 1px;
    background: var(--song-border);
}

/* --- Metrics - Window Lattice --- */
.song-metrics {
    padding: 80px 0;
    border-bottom: 1px solid var(--song-border);
    background: #fff;
}
.metrics-lattice {
    display: flex;
    border: 1px solid var(--song-border);
}
.m-item {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid var(--song-border);
    position: relative;
}
.m-item:last-child { border-right: none; }
.m-item::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid var(--song-border);
    opacity: 0.5;
}
.m-val {
    font-size: 36px;
    color: var(--song-red);
    margin-bottom: 10px;
}
.m-lbl {
    font-size: 14px;
    letter-spacing: 2px;
}

/* --- Features - Woodblock Grid --- */
.song-features {
    padding: 100px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--song-border);
    background: #fff;
}
.f-card {
    padding: 50px 40px;
    border-right: 1px solid var(--song-border);
    position: relative;
}
.f-card:last-child { border-right: none; }
.f-icon {
    font-size: 32px;
    color: var(--song-jade);
    margin-bottom: 20px;
}
.f-title {
    font-size: 24px;
    color: var(--song-ink);
    margin-bottom: 20px;
}
.f-desc {
    font-size: 14px;
    margin-bottom: 20px;
    text-align: justify;
}
.f-list {
    list-style: none;
}
.f-list li {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--song-border);
}
.f-list li::before {
    content: '·';
    color: var(--song-red);
    margin-right: 5px;
    font-weight: bold;
}

/* --- Nodes - Scroll List --- */
.song-nodes {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid var(--song-border);
    border-bottom: 1px solid var(--song-border);
}
.nodes-scroll {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--song-border);
    padding: 40px;
    position: relative;
}
.nodes-scroll::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 10px; right: 10px;
    border-left: 1px solid var(--song-border);
    border-right: 1px solid var(--song-border);
}
.n-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
    z-index: 1;
}
.n-row::after {
    content: '';
    flex: 1;
    border-bottom: 1px dotted var(--song-border);
    margin: 0 15px;
}
.n-city {
    font-size: 18px;
    color: var(--song-ink);
}
.n-speed {
    font-size: 14px;
    color: var(--song-jade);
    order: 2;
}

/* --- Reviews - Vertical Poetry --- */
.song-reviews {
    padding: 100px 0;
}
.reviews-poetry {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.r-poem {
    background: #fff;
    border: 1px solid var(--song-border);
    padding: 40px 30px;
    writing-mode: vertical-rl;
    height: 400px;
    box-shadow: 5px 5px 0 rgba(212, 201, 179, 0.3);
}
.r-text {
    font-size: 16px;
    line-height: 2.5;
    color: var(--song-ink);
    margin-right: 20px;
}
.r-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid var(--song-border);
    padding-left: 15px;
}
.r-name {
    font-size: 14px;
    color: var(--song-red);
    letter-spacing: 2px;
}
.r-stars {
    color: var(--song-red);
    font-size: 12px;
    letter-spacing: 2px;
}

/* --- Pricing - Hanging Scrolls --- */
.song-pricing {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid var(--song-border);
}
.pricing-scrolls {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
}
.p-scroll {
    width: 280px;
    background: var(--song-bg);
    border: 1px solid var(--song-border);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}
.p-scroll::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; height: 10px;
    background: var(--song-ink);
}
.p-scroll.pro {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #fff;
    border-color: var(--song-ink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.p-badge {
    position: absolute;
    top: 0; right: 20px;
    background: var(--song-red);
    color: #fff;
    writing-mode: vertical-rl;
    padding: 10px 5px;
    font-size: 12px;
    letter-spacing: 2px;
}
.p-title {
    font-size: 20px;
    color: var(--song-ink);
    margin-bottom: 10px;
}
.p-price {
    font-size: 42px;
    color: var(--song-red);
    margin-bottom: 30px;
    line-height: 1;
}
.p-price span {
    font-size: 14px;
    color: var(--song-text);
}
.p-feat {
    list-style: none;
    margin-bottom: 40px;
}
.p-feat li {
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--song-border);
}

/* --- FAQ --- */
.song-faq {
    padding: 100px 0;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid var(--song-border);
    padding: 30px;
}
.fq-title {
    font-size: 18px;
    color: var(--song-ink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fq-title::before {
    content: '问';
    color: var(--song-red);
    border: 1px solid var(--song-red);
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.fq-ans {
    font-size: 15px;
    padding-left: 34px;
    text-align: justify;
}

/* --- Footer --- */
.song-footer {
    background: var(--song-ink);
    color: var(--song-bg);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}
.f-brand {
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--song-bg);
}
.f-desc {
    font-size: 14px;
    opacity: 0.7;
}
.f-links-wrap {
    display: flex;
    gap: 60px;
}
.f-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--song-border);
    letter-spacing: 2px;
}
.f-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.f-col a:hover {
    opacity: 1;
    color: var(--song-red);
}
.f-copy {
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    letter-spacing: 1px;
}

/* --- Subpages --- */
.sub-header {
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--song-border);
}
.sub-title {
    font-size: 42px;
    color: var(--song-ink);
    margin-bottom: 20px;
    letter-spacing: 4px;
}
.sub-desc {
    font-size: 16px;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 80px 0;
}
.dl-card {
    background: #fff;
    border: 1px solid var(--song-border);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.dl-icon {
    font-size: 48px;
    color: var(--song-jade);
}
.dl-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--song-ink);
}
.dl-info p {
    font-size: 14px;
    margin-bottom: 20px;
}

.help-layout {
    display: flex;
    gap: 60px;
    padding: 80px 0;
}
.help-nav {
    width: 200px;
    border-right: 1px solid var(--song-border);
    padding-right: 20px;
}
.help-nav a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px dashed var(--song-border);
    transition: color 0.3s;
}
.help-nav a.active, .help-nav a:hover {
    color: var(--song-red);
}
.help-content {
    flex: 1;
}
.help-content h2 {
    font-size: 28px;
    color: var(--song-ink);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--song-border);
    padding-bottom: 10px;
}
.help-content h3 {
    font-size: 18px;
    color: var(--song-ink);
    margin: 30px 0 15px;
}
.help-content p, .help-content li {
    font-size: 15px;
    margin-bottom: 15px;
    text-align: justify;
}
.help-content ul {
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .song-sidebar { width: 80px; }
    .song-main { margin-left: 80px; width: calc(100% - 80px); }
    .song-container { padding: 0 40px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-img { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .f-card { border-right: none; border-bottom: 1px solid var(--song-border); }
    .f-card:last-child { border-bottom: none; }
    .reviews-poetry { flex-wrap: wrap; }
    .r-poem { height: auto; writing-mode: horizontal-tb; padding: 30px; }
    .r-text { margin-right: 0; margin-bottom: 20px; }
    .r-meta { border-left: none; border-top: 1px solid var(--song-border); padding-left: 0; padding-top: 15px; }
    .pricing-scrolls { flex-direction: column; align-items: center; }
    .p-scroll, .p-scroll.pro { width: 100%; max-width: 350px; padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .help-layout { flex-direction: column; }
    .help-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--song-border); padding-right: 0; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
    .help-nav a { border-bottom: none; }
}
@media (max-width: 768px) {
    .song-layout { flex-direction: column; }
    .song-sidebar { position: static; width: 100%; height: auto; flex-direction: row; justify-content: space-between; padding: 15px 20px; border-right: none; border-bottom: 1px solid var(--song-border); }
    .s-brand { writing-mode: horizontal-tb; font-size: 20px; margin: 0; }
    .s-brand::after { display: none; }
    .s-nav { display: none; }
    .s-tools { flex-direction: row; }
    .s-lang { writing-mode: horizontal-tb; }
    .btn-song { writing-mode: horizontal-tb; padding: 8px 15px; }
    .song-main { margin-left: 0; width: 100%; }
    .song-container { padding: 0 20px; }
    .h-title { font-size: 42px; }
    .h-actions { flex-direction: column; }
    .metrics-lattice { flex-direction: column; }
    .m-item { border-right: none; border-bottom: 1px solid var(--song-border); }
    .dl-grid { grid-template-columns: 1fr; }
    .dl-card { flex-direction: column; text-align: center; }
}
