:root {
    --bg: #FAF6EF;
    --bg-sec: #F1EBE0;
    --text: #1B1A17;
    --accent: #E2472B;
    --border: #1B1A17;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Sora', -apple-system, sans-serif;
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

h1, h2, h3, h4, .eng-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
}

.zh-heading {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Base structural rules */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.bg-secondary {
    background-color: var(--bg-sec);
}

/* Hairline separations */
section {
    border-bottom: 1px solid var(--border);
    padding: 100px 0;
}

/* Typography styles */
.rotated-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
}

/* Header */
.masthead {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--bg);
    z-index: 100;
}

.masthead-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Logo Animation */
.cloud-path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: drawCloud 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawCloud {
    to { stroke-dashoffset: 0; }
}

.nav-area {
    display: flex;
    gap: 40px;
}

.nav-item {
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.text-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.text-link:hover {
    border-color: var(--accent);
}

/* Hero Section */
.hero-section {
    padding: 150px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

.eng-title {
    font-size: 3.5rem;
    font-style: italic;
}

.hero-intro {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 60px;
}

.hero-actions {
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-sec);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-block {
    padding: 40px;
}

.feature-block-center {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.oversized-num {
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    font-style: italic;
    color: var(--border);
    margin-bottom: 20px;
    line-height: 1;
}

.feature-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Media */
.media-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}

.media-row {
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.media-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.media-row:first-child {
    padding-top: 0;
}

.media-row h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Pricing */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 80px;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
}

.pricing-card {
    padding: 60px 40px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.pricing-card:last-child {
    border-right: none;
}

.pricing-header {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.pricing-price {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    margin-bottom: 40px;
}

.pricing-price span {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 50px;
    text-align: left;
}

.pricing-features li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.review-card {
    padding-right: 40px;
}

.review-body {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    padding: 60px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 1.25rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

/* Media Queries */
@media (max-width: 992px) {
    .feature-grid, .pricing-grid, .review-grid {
        grid-template-columns: 1fr;
    }
    .feature-block-center {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .pricing-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .pricing-card:last-child {
        border-bottom: none;
    }
    .review-card {
        padding-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 40px;
    }
    .review-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .masthead-grid {
        flex-direction: column;
        gap: 20px;
    }
    .hero-grid, .media-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    .hero-label-col, .media-label, .faq-label {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .eng-title {
        font-size: 2.5rem;
    }
    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* News & Articles Section */
.news-grid-wrapper {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}
.news-label {
    display: flex;
}
.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    border: 1px solid var(--border);
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.news-meta {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 15px;
}
.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.news-excerpt {
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

/* Article Page Specifics */
.article-container {
    max-width: 800px;
    padding: 100px 40px;
    margin: 0 auto;
}
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 40px;
}
.breadcrumb a {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}
.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.article-meta {
    font-size: 0.85rem;
    color: #555;
    margin-top: 15px;
    display: flex;
    gap: 20px;
}
.article-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    margin: 40px 0 20px;
}
.article-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}
.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.article-content li {
    margin-bottom: 10px;
}
.related-articles {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .news-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .news-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .news-label {
        display: none;
    }
    .article-container {
        padding: 60px 20px;
    }
}

/* Floating Tools */
.floating-tools {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.floating-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
}
.floating-btn:hover {
    background-color: var(--text);
    color: var(--bg);
}

/* Hero Image */
.hero-image-wrapper {
    margin: 40px 0;
    max-width: 100%;
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
}
