/* =============================================
   FENG SHUI MASTER - GRIDLINE AESTHETIC
   White + Red/Gold, Compact Matrix Layout
   Modern Minimal × Traditional Chinese
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200;300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');

:root {
    /* Core */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-100: #F8F8F8;
    --gray-200: #EEEEEE;
    --gray-300: #DDDDDD;
    --gray-400: #999999;
    --gray-500: #666666;

    /* Accent */
    --red: #C41E3A;
    --red-dark: #8B0000;
    --gold: #B8860B;
    --gold-light: #DAA520;

    /* Grid line */
    --line: #E5E5E5;
    --line-dark: #CCCCCC;

    /* Typography */
    --font-zh: 'Noto Serif TC', serif;
    --font-en: 'Inter', sans-serif;

    /* Spacing - compact */
    --xs: 4px;
    --sm: 8px;
    --md: 16px;
    --lg: 24px;
    --xl: 32px;
    --2xl: 48px;

    /* Grid */
    --cell: 12px;
}

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

html {
    font-size: 18px;
}

body {
    font-family: var(--font-en);
    font-weight: 300;
    background: var(--white);
    color: var(--black);
    line-height: 1.8;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: var(--sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

.zh {
    font-family: var(--font-zh);
    font-weight: 300;
}

p { margin-bottom: var(--md); }

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    color: var(--red-dark);
}

strong, b { font-weight: 400; }

/* =============================================
   Grid Matrix System
   ============================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-left: 1px solid var(--line);
}

.grid-container > * {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--md);
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* =============================================
   Layout
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--md);
}

.section {
    border-bottom: 1px solid var(--line);
}

/* =============================================
   Header - Compact Grid
   ============================================= */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    border-left: 1px solid var(--line);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--md) var(--lg);
    border-right: 1px solid var(--line);
    color: var(--black);
}

.site-logo:hover {
    color: var(--red);
}

.logo-zh {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--red);
}

.logo-en {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.main-nav {
    display: flex;
    align-items: stretch;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 0 var(--lg);
    border-right: 1px solid var(--line);
    color: var(--gray-500);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.main-nav a:hover {
    background: var(--gray-100);
    color: var(--black);
}

.main-nav a.active {
    color: var(--red);
    box-shadow: inset 0 -2px 0 var(--red);
}

.nav-zh {
    font-family: var(--font-zh);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    padding: 0 var(--md);
    border-left: 1px solid var(--line);
    font-size: 0.8rem;
}

.lang-switch a {
    color: var(--gray-400);
    padding: var(--xs) var(--sm);
    transition: color 0.2s;
}

.lang-switch a:hover {
    color: var(--black);
}

.lang-switch a.active {
    color: var(--red);
    font-weight: 400;
}

.lang-divider {
    color: var(--line-dark);
}

.mobile-menu-toggle {
    display: none;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    border-left: 1px solid var(--line);
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: auto 1fr auto auto;
    }
    .mobile-menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        z-index: 99;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: var(--md) var(--lg);
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .lang-switch {
        padding: 0 var(--sm);
    }
}

/* =============================================
   Footer - Grid
   ============================================= */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--gray-100);
}

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

.footer-grid > div {
    padding: var(--lg);
    border-right: 1px solid var(--line);
}

.footer-title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: var(--md);
}

.footer-grid a {
    display: block;
    color: var(--gray-500);
    font-size: 0.9rem;
    padding: var(--xs) 0;
}

.footer-grid a:hover {
    color: var(--red);
}

.footer-bottom {
    padding: var(--md) var(--lg);
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div { border-bottom: 1px solid var(--line); }
}

/* =============================================
   Buttons - Minimal
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--sm) var(--md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    border-color: var(--line-dark);
    color: var(--black);
}

.btn-secondary:hover {
    border-color: var(--black);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-sm {
    padding: var(--xs) var(--sm);
    font-size: 0.75rem;
}

/* =============================================
   Cards - Grid Cells
   ============================================= */
.card {
    background: var(--white);
    border: 1px solid var(--line);
}

.card-body {
    padding: var(--md);
}

.card-title {
    margin-bottom: var(--xs);
}

.card-text {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* =============================================
   Forms - Gridline Style
   ============================================= */
.form-group {
    margin-bottom: var(--md);
}

label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--xs);
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    padding: var(--sm) var(--md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 300;
    border: 1px solid var(--line);
    background: var(--white);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--red);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--md);
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: var(--xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--sm);
    cursor: pointer;
    font-size: 0.9rem;
}

/* =============================================
   Bilingual Layout - Side by Side Grid
   ============================================= */
.bilingual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid var(--line);
}

.bilingual > * {
    padding: var(--md);
    border-right: 1px solid var(--line);
}

.bilingual .text-zh {
    font-family: var(--font-zh);
    border-right: 1px solid var(--line);
}

.bilingual .text-id {
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .bilingual {
        grid-template-columns: 1fr;
    }
    .bilingual > * {
        border-bottom: 1px solid var(--line);
    }
}

/* =============================================
   Hero - Clean Grid
   ============================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    border-bottom: 1px solid var(--line);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--2xl);
    border-right: 1px solid var(--line);
}

.hero-title {
    font-family: var(--font-zh);
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--red);
    margin-bottom: var(--sm);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: var(--lg);
}

.hero-image {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; }
    .hero-content { border-right: none; border-bottom: 1px solid var(--line); }
}

/* =============================================
   Page Header
   ============================================= */
.page-header {
    padding: var(--lg);
    border-bottom: 1px solid var(--line);
    background: var(--gray-100);
}

.page-title {
    font-family: var(--font-zh);
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: var(--xs);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* =============================================
   Data Matrix / Table
   ============================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--sm) var(--md);
    text-align: left;
    border: 1px solid var(--line);
    font-weight: 300;
}

.data-table th {
    background: var(--gray-100);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.data-table tr:hover td {
    background: var(--gray-100);
}

/* =============================================
   Timeline - Vertical Grid
   ============================================= */
.timeline {
    border-left: 1px solid var(--red);
    margin-left: var(--md);
}

.timeline-year {
    padding-left: var(--lg);
    margin-bottom: var(--lg);
    position: relative;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    background: var(--gold);
    border: 1px solid var(--red);
}

.timeline-year-label {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    color: var(--red);
    margin-bottom: var(--md);
}

.timeline-item {
    padding: var(--md);
    margin-bottom: var(--sm);
    border: 1px solid var(--line);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--lg) - 3px);
    top: var(--md);
    width: 5px;
    height: 5px;
    background: var(--line-dark);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: var(--xs);
}

.timeline-location {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: var(--xs);
}

/* =============================================
   Bazi Chart - Matrix Display
   ============================================= */
.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.bazi-pillar {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.bazi-pillar-label {
    padding: var(--sm);
    background: var(--gray-100);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--line);
}

.bazi-stem {
    padding: var(--md);
    font-family: var(--font-zh);
    font-size: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.bazi-branch {
    padding: var(--md);
    font-family: var(--font-zh);
    font-size: 1.75rem;
}

.bazi-element {
    padding: var(--xs);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Element colors */
.el-wood { color: #228B22; }
.el-fire { color: var(--red); }
.el-earth { color: var(--gold); }
.el-metal { color: #708090; }
.el-water { color: #1E90FF; }

.el-wood-bg { background: rgba(34, 139, 34, 0.1); }
.el-fire-bg { background: rgba(196, 30, 58, 0.1); }
.el-earth-bg { background: rgba(184, 134, 11, 0.1); }
.el-metal-bg { background: rgba(112, 128, 144, 0.1); }
.el-water-bg { background: rgba(30, 144, 255, 0.1); }

@media (max-width: 480px) {
    .bazi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   Zodiac Grid
   ============================================= */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.zodiac-card {
    padding: var(--md);
    text-align: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s;
}

.zodiac-card:hover {
    background: var(--gray-100);
}

.zodiac-emoji {
    font-size: 1.5rem;
    margin-bottom: var(--xs);
}

.zodiac-zh {
    font-family: var(--font-zh);
    color: var(--red);
}

.zodiac-en {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
    .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   Photo Grid
   ============================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.photo-item {
    aspect-ratio: 1;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   Map
   ============================================= */
.map-container {
    height: 400px;
    border: 1px solid var(--line);
}

/* =============================================
   Alerts
   ============================================= */
.alert {
    padding: var(--md);
    border: 1px solid;
    margin-bottom: var(--md);
    font-size: 0.9rem;
}

.alert-success {
    border-color: #228B22;
    background: rgba(34, 139, 34, 0.05);
    color: #228B22;
}

.alert-error {
    border-color: var(--red);
    background: rgba(196, 30, 58, 0.05);
    color: var(--red);
}

.alert-warning {
    border-color: var(--gold);
    background: rgba(184, 134, 11, 0.05);
    color: var(--gold);
}

.alert-info {
    border-color: #1E90FF;
    background: rgba(30, 144, 255, 0.05);
    color: #1E90FF;
}

/* =============================================
   Badges
   ============================================= */
.badge {
    display: inline-block;
    padding: 2px var(--sm);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid;
}

.badge-success { border-color: #228B22; color: #228B22; }
.badge-warning { border-color: var(--gold); color: var(--gold); }
.badge-error { border-color: var(--red); color: var(--red); }
.badge-info { border-color: #1E90FF; color: #1E90FF; }
.badge-primary { border-color: var(--red); color: var(--red); }

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: var(--2xl);
    color: var(--gray-400);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--md);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1rem;
    margin-bottom: var(--xs);
}

.empty-state-text {
    font-size: 0.85rem;
    margin-bottom: var(--md);
}

/* =============================================
   Utilities
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-400); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--sm); }
.mb-2 { margin-bottom: var(--md); }
.mb-3 { margin-bottom: var(--lg); }
.mb-4 { margin-bottom: var(--xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--sm); }
.mt-2 { margin-top: var(--md); }
.mt-3 { margin-top: var(--lg); }
.mt-4 { margin-top: var(--xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--sm); }
.p-2 { padding: var(--md); }
.p-3 { padding: var(--lg); }

.flex { display: flex; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-center { justify-content: center; align-items: center; }
.gap-1 { gap: var(--sm); }
.gap-2 { gap: var(--md); }
.gap-3 { gap: var(--lg); }

.hidden { display: none; }

.border { border: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
.border-t { border-top: 1px solid var(--line); }

.bg-gray { background: var(--gray-100); }

/* =============================================
   Hero Section - Enhanced
   ============================================= */
.hero {
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 360px;
    border-left: 1px solid var(--line);
}

.hero-content {
    padding: var(--2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.hero-title-zh {
    font-family: var(--font-zh);
    font-size: 3rem;
    font-weight: 200;
    color: var(--red);
    margin-bottom: var(--xs);
    letter-spacing: 0.05em;
}

.hero-title-en {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-500);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--lg);
}

.hero-tagline {
    display: flex;
    flex-direction: column;
    gap: var(--xs);
    margin-bottom: var(--lg);
    padding-left: var(--md);
    border-left: 2px solid var(--gold);
}

.hero-tagline .text-zh {
    font-family: var(--font-zh);
    color: var(--black);
}

.hero-tagline .text-id {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.hero-actions {
    display: flex;
    gap: var(--md);
}

.hero-symbol {
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.bagua {
    font-size: 8rem;
    color: var(--gray-300);
    transition: color 0.3s;
}

.hero-symbol:hover .bagua {
    color: var(--red);
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        border-right: none;
        padding: var(--xl) var(--lg);
    }
    .hero-symbol {
        width: 100%;
        height: 200px;
        border-top: 1px solid var(--line);
    }
    .hero-title-zh {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* =============================================
   Section Headers
   ============================================= */
.section {
    padding: var(--xl) 0;
    border-bottom: 1px solid var(--line);
}

.section-alt {
    background: var(--gray-100);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--lg);
    padding-bottom: var(--md);
    border-bottom: 1px solid var(--line);
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: var(--md);
}

.section-title .text-zh {
    font-family: var(--font-zh);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--red);
}

.section-title .text-en {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-link {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.section-link:hover {
    color: var(--red);
}

/* =============================================
   Services Grid
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.service-card {
    display: flex;
    gap: var(--md);
    padding: var(--lg);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--black);
    transition: background 0.2s;
}

.service-card:hover {
    background: var(--gray-100);
    color: var(--black);
}

.service-icon {
    font-family: var(--font-zh);
    font-size: 2rem;
    color: var(--gold);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.service-content h3 {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: var(--xs);
}

.service-content .text-en {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sm);
}

.service-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Photo Cards (Activities/Blog)
   ============================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.photo-card {
    position: relative;
    aspect-ratio: 4/3;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    display: block;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-card:hover .photo-img {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    font-size: 3rem;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--md);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.photo-title {
    font-family: var(--font-zh);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: var(--xs);
}

.photo-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.photo-meta {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: var(--xs);
}

@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CTA Box
   ============================================= */
.cta-box {
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: var(--lg);
    padding: var(--xl);
}

.cta-icon {
    font-family: var(--font-zh);
    font-size: 3rem;
    color: var(--gold);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
}

.cta-text .text-zh {
    font-family: var(--font-zh);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--red);
    margin-bottom: var(--xs);
}

.cta-text .text-en {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sm);
}

.cta-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   Blog Grid
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.blog-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--black);
    display: block;
    transition: background 0.2s;
}

.blog-card:hover {
    background: var(--white);
    color: var(--black);
}

.blog-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.blog-content {
    padding: var(--md);
}

.blog-title {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: var(--xs);
}

.blog-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--sm);
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: var(--sm);
}

.blog-date {
    font-size: 0.7rem;
    color: var(--gray-400);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Text Classes
   ============================================= */
.text-zh {
    font-family: var(--font-zh);
}

.text-en, .text-id {
    font-family: var(--font-en);
}

/* =============================================
   Button Outline Enhancement
   ============================================= */
.btn-outline {
    background: transparent;
    border-color: var(--line-dark);
    color: var(--black);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

/* =============================================
   About Page
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--lg);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.about-main {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-intro,
.about-philosophy {
    padding: var(--lg);
    border-bottom: 1px solid var(--line);
}

.about-intro h2,
.about-philosophy h3 {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--red);
    margin-bottom: var(--xs);
}

.about-intro .text-en,
.about-philosophy .text-en {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--md);
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lg);
}

.about-text p {
    margin: 0;
    line-height: 1.8;
}

.about-text .text-zh {
    font-family: var(--font-zh);
}

.about-text .text-id {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.philosophy-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sm);
    padding: var(--lg);
    margin-bottom: var(--lg);
    background: var(--gray-100);
    border: 1px solid var(--line);
}

.quote-mark {
    font-family: var(--font-zh);
    font-size: 2rem;
    color: var(--gold);
}

.quote-text {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    color: var(--red);
}

.about-sidebar {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.services-box {
    border-bottom: 1px solid var(--line);
}

.services-box-title {
    display: flex;
    align-items: baseline;
    gap: var(--sm);
    padding: var(--md);
    background: var(--gray-100);
    border-bottom: 1px solid var(--line);
}

.services-box-title .text-zh {
    font-family: var(--font-zh);
    font-size: 1rem;
    font-weight: 300;
    color: var(--red);
}

.services-box-title .text-en {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-list-item {
    display: flex;
    gap: var(--md);
    padding: var(--md);
    border-bottom: 1px solid var(--line);
}

.service-list-item:last-child {
    border-bottom: none;
}

.service-list-icon {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    color: var(--gold);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.service-list-content {
    display: flex;
    flex-direction: column;
    gap: var(--xs);
}

.service-list-content strong {
    font-family: var(--font-zh);
    font-weight: 300;
}

.service-list-content .text-id {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.about-cta {
    padding: var(--lg);
    text-align: center;
}

.about-cta p {
    margin-bottom: var(--xs);
}

.about-cta .text-zh {
    font-family: var(--font-zh);
}

.about-cta .text-id {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--md);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Contact Page
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.contact-form-box {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-form-header,
.contact-info-header {
    padding: var(--md);
    background: var(--gray-100);
    border-bottom: 1px solid var(--line);
}

.contact-form-header h2,
.contact-info-header h3 {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--red);
    margin-bottom: var(--xs);
}

.contact-form-header .text-en,
.contact-info-header .text-en {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.contact-form {
    padding: var(--lg);
}

.contact-info-box {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-info-list {
    border-bottom: 1px solid var(--line);
}

.contact-info-item {
    display: flex;
    gap: var(--md);
    padding: var(--md);
    border-bottom: 1px solid var(--line);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    color: var(--gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: var(--xs);
}

.contact-info-content strong {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
}

.contact-info-content span,
.contact-info-content a {
    font-size: 0.9rem;
}

.contact-social {
    padding: var(--md);
}

.contact-social strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: var(--sm);
}

.contact-social-links {
    display: flex;
    gap: var(--sm);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Bazi Calculator Page
   ============================================= */
/* =============================================
   Bazi Calculator - Matrix/Gridline Layout
   ============================================= */
.page-header-compact {
    padding: var(--md) 0;
}

.page-header-compact .page-title {
    font-size: 1.25rem;
    margin: 0;
}

/* Main Matrix Grid */
.bazi-matrix {
    display: grid;
    grid-template-columns: 1fr 320px;
    border: 1px solid var(--line);
    background: var(--white);
}

.bazi-matrix-form {
    border-right: 1px solid var(--line);
    background: var(--white);
}

.bazi-matrix-info {
    display: flex;
    flex-direction: column;
    background: var(--white);
}

/* Matrix Header - Soft Colors */
.matrix-header {
    padding: var(--sm) var(--md);
    background: linear-gradient(135deg, #fdf6f0 0%, #f8f0f0 100%);
    border-bottom: 1px solid var(--line);
}

.matrix-title {
    font-family: var(--font-zh);
    font-size: 1rem;
    font-weight: 400;
    color: var(--red);
}

/* Soft gold header for info sections */
.matrix-header-gold {
    background: linear-gradient(135deg, #fdf8f0 0%, #f8f4e8 100%);
}

.matrix-header-gold .matrix-title {
    color: var(--gold);
}

/* Matrix Form */
.matrix-form {
    padding: var(--md);
}

.matrix-field {
    margin-bottom: var(--sm);
}

.matrix-field label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-bottom: var(--xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.matrix-field input,
.matrix-field select {
    width: 100%;
    padding: var(--sm);
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.matrix-field input:focus,
.matrix-field select:focus {
    outline: none;
    border-color: var(--red);
}

.matrix-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sm);
}

.time-input-row {
    display: flex;
    gap: var(--sm);
    align-items: center;
}

.time-input-row input {
    flex: 1;
}

.checkbox-compact {
    display: flex;
    align-items: center;
    gap: var(--xs);
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
}

.checkbox-compact input {
    width: auto;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: var(--md);
    padding: var(--sm) var(--md);
}

/* Matrix Sections */
.matrix-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
}

.matrix-section:last-child {
    border-bottom: none;
}

/* Four Pillars - 2x2 Grid */
.pillar-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
}

.pillar-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sm);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.pillar-cell:nth-child(2n) {
    border-right: none;
}

.pillar-cell:nth-child(n+3) {
    border-bottom: none;
}

.pillar-zh {
    font-family: var(--font-zh);
    font-size: 1.75rem;
    color: var(--gold);
    line-height: 1;
}

.pillar-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-top: var(--xs);
}

/* Five Elements - 5 Column Grid */
.element-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex: 1;
}

.el-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sm);
    border-right: 1px solid var(--line);
}

.el-cell:last-child {
    border-right: none;
}

.el-zh {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    line-height: 1;
}

/* About Bazi - Collapsible */
.bazi-about-details {
    border: 1px solid var(--line);
}

.bazi-about-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sm) var(--md);
    background: var(--gray-100);
    cursor: pointer;
    font-family: var(--font-zh);
    font-size: 0.9rem;
    color: var(--gray-500);
    list-style: none;
}

.bazi-about-summary::-webkit-details-marker {
    display: none;
}

.summary-icon {
    font-size: 1rem;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.bazi-about-details[open] .summary-icon {
    transform: rotate(45deg);
}

.bazi-about-content {
    padding: var(--md);
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.bazi-about-content p:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .bazi-matrix {
        grid-template-columns: 1fr 280px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bazi-matrix {
        grid-template-columns: 1fr;
    }

    .bazi-matrix-form {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .bazi-matrix-info {
        flex-direction: row;
    }

    .matrix-section {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid var(--line);
    }

    .matrix-section:last-child {
        border-right: none;
    }

    .pillar-matrix {
        height: 100%;
    }

    .element-matrix {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .el-cell {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: var(--xs);
    }

    .el-cell:last-child {
        border-bottom: none;
    }

    .el-zh {
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-header-compact {
        padding: var(--sm) 0;
    }

    .page-header-compact .page-title {
        font-size: 1.1rem;
    }

    .matrix-form {
        padding: var(--sm);
    }

    .matrix-row-2 {
        grid-template-columns: 1fr;
        gap: var(--sm);
    }

    .pillar-zh {
        font-size: 1.25rem;
    }

    .pillar-label {
        font-size: 0.55rem;
    }

    .btn-block {
        padding: var(--sm);
        font-size: 0.8rem;
    }
}

/* =============================================
   Bazi Result Page - Matrix Style
   ============================================= */
.result-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-meta {
    display: flex;
    gap: var(--md);
    align-items: center;
}

.meta-name {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    color: var(--red);
}

.meta-date {
    font-size: 0.9rem;
    color: var(--gray-500);
    padding: var(--xs) var(--sm);
    border: 1px solid var(--line);
}

.meta-gender {
    font-family: var(--font-zh);
    font-size: 0.9rem;
    color: var(--gold);
}

/* Main Result Grid */
.bazi-result-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.bazi-pillars-box,
.bazi-info-panel {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.box-header {
    display: flex;
    align-items: baseline;
    gap: var(--sm);
    padding: var(--sm) var(--md);
    background: linear-gradient(135deg, #fdf6f0 0%, #f8f0f0 100%);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-zh);
    font-size: 1rem;
    color: var(--red);
}

/* Accent header with soft gold */
.box-header-accent {
    background: linear-gradient(135deg, #fdf8f0 0%, #f8f4e8 100%);
    color: var(--gold);
}

/* Soft blue header */
.box-header-blue {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f8 100%);
    color: #4a6fa5;
}

/* Soft green header */
.box-header-green {
    background: linear-gradient(135deg, #f0f8f4 0%, #e8f4e8 100%);
    color: #228B22;
}

.box-header .text-zh {
    font-family: var(--font-zh);
    font-size: 1rem;
    color: var(--red);
}

.box-header .text-en {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Four Pillars Grid */
.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.bazi-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: var(--sm);
}

.bazi-cell:nth-child(4n) {
    border-right: none;
}

.bazi-cell:nth-last-child(-n+4) {
    border-bottom: none;
}

.bazi-label {
    background: var(--gray-100);
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--xs) var(--sm);
}

.bazi-label.bazi-day-master {
    background: rgba(184, 134, 11, 0.1);
    color: var(--gold);
}

.bazi-stem,
.bazi-branch {
    padding: var(--md) var(--sm);
}

.bazi-stem .char,
.bazi-branch .char {
    font-family: var(--font-zh);
    font-size: 2rem;
    font-weight: 300;
    display: block;
}

.bazi-stem .element,
.bazi-branch .element {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-top: var(--xs);
    display: block;
}

.bazi-cell.bazi-day-master {
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.bazi-stem.bazi-day-master {
    border-top: 2px solid var(--gold);
}

.bazi-branch.bazi-day-master {
    border-bottom: 2px solid var(--gold);
}

.bazi-unknown {
    color: var(--gray-300);
    font-size: 2rem;
}

/* Info Panel */
.bazi-info-panel {
    display: flex;
    flex-direction: column;
}

.info-box {
    flex: 1;
    border-bottom: 1px solid var(--line);
}

.info-box:last-child {
    border-bottom: none;
}

.day-master-display {
    display: flex;
    align-items: center;
    gap: var(--md);
    padding: var(--md);
}

.dm-char {
    font-family: var(--font-zh);
    font-size: 3rem;
    font-weight: 200;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
}

.dm-info {
    flex: 1;
}

.dm-element {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    margin-bottom: var(--xs);
}

.dm-yinyang {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.zodiac-display {
    display: flex;
    align-items: center;
    gap: var(--md);
    padding: var(--md);
}

.zodiac-char {
    font-family: var(--font-zh);
    font-size: 2.5rem;
    color: var(--gold);
}

.zodiac-zh {
    font-family: var(--font-zh);
    font-size: 1.5rem;
    color: var(--red);
}

.zodiac-en {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Combined Day Master & Zodiac Row */
.dm-zodiac-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.dm-section,
.zodiac-section {
    display: flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--md);
}

.dm-section {
    border-right: 1px solid var(--line);
}

.dm-section .dm-char {
    font-family: var(--font-zh);
    font-size: 2.5rem;
    font-weight: 200;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.dm-section .dm-info {
    flex: 1;
}

.dm-section .dm-element {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    color: var(--black);
}

.dm-section .dm-yinyang {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.zodiac-section .zodiac-char {
    font-family: var(--font-zh);
    font-size: 2.5rem;
    color: var(--gold);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.zodiac-section .zodiac-info {
    flex: 1;
}

.zodiac-section .zodiac-zh {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    color: var(--red);
}

/* Mobile adjustments for combined row */
@media (max-width: 480px) {
    .dm-zodiac-row {
        grid-template-columns: 1fr;
    }

    .dm-section {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .dm-section .dm-char,
    .zodiac-section .zodiac-char {
        font-size: 2rem;
        width: 48px;
        height: 48px;
    }
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.elements-box,
.analysis-box {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.elements-matrix {
    padding: var(--md);
}

.element-row {
    display: grid;
    grid-template-columns: 40px 1fr 32px;
    gap: var(--sm);
    align-items: center;
    padding: var(--xs) 0;
    border-bottom: 1px solid var(--line);
}

.element-row:last-child {
    border-bottom: none;
}

.el-label {
    font-family: var(--font-zh);
    font-size: 1rem;
    text-align: center;
}

.el-bar {
    height: 8px;
    background: var(--gray-200);
}

.el-fill {
    height: 100%;
}

.el-wood-solid { background: #228B22; }
.el-fire-solid { background: var(--red); }
.el-earth-solid { background: var(--gold); }
.el-metal-solid { background: #708090; }
.el-water-solid { background: #1E90FF; }

.el-count {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: right;
}

.elements-summary {
    padding: var(--md);
    border-top: 1px solid var(--line);
}

.summary-row {
    display: flex;
    align-items: center;
    gap: var(--md);
    margin-bottom: var(--sm);
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    width: 60px;
}

.summary-tags {
    display: flex;
    gap: var(--xs);
}

.el-tag {
    font-family: var(--font-zh);
    font-size: 0.85rem;
    padding: 2px var(--sm);
    border: 1px solid currentColor;
}

.analysis-content {
    padding: var(--md);
}

.analysis-content .text-zh {
    font-family: var(--font-zh);
    line-height: 1.8;
    margin-bottom: var(--md);
}

.analysis-content .text-id {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Luck Periods Grid */
.luck-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.luck-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: var(--md) var(--sm);
}

.luck-age {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-bottom: var(--xs);
}

.luck-chars {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    margin-bottom: var(--xs);
}

.luck-chars span {
    display: inline-block;
}

.luck-elements {
    font-family: var(--font-zh);
    font-size: 0.7rem;
}

.luck-elements span {
    display: inline-block;
    margin: 0 2px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: var(--md);
}

@media (max-width: 1024px) {
    .bazi-result-grid {
        grid-template-columns: 1fr;
    }
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    .luck-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .result-header-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sm);
    }
    .result-meta {
        gap: var(--sm);
    }
    .bazi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bazi-stem .char,
    .bazi-branch .char {
        font-size: 1.5rem;
    }
    .luck-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================
   Empty State Icons (Formal Chinese Characters)
   ============================================= */
.empty-icon {
    font-family: var(--font-zh);
    font-size: 4rem;
    font-weight: 200;
    color: var(--gray-300);
    margin-bottom: var(--md);
}

.empty-text {
    font-size: 1rem;
    color: var(--gray-400);
}

/* =============================================
   Master Photo Section
   ============================================= */
.master-photo-section {
    margin-bottom: var(--lg);
    text-align: center;
}

.master-photo {
    max-width: 280px;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

.master-photo-placeholder {
    width: 280px;
    height: 320px;
    margin: 0 auto;
    background: var(--gray-100);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-family: var(--font-zh);
    font-size: 5rem;
    font-weight: 200;
    color: var(--gray-300);
}

/* =============================================
   View Toggle Buttons
   ============================================= */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: var(--sm);
    margin-bottom: var(--lg);
}

.btn-icon-char {
    font-family: var(--font-zh);
    font-size: 1rem;
    margin-right: var(--xs);
}

/* =============================================
   Location Icon
   ============================================= */
.location-icon {
    font-family: var(--font-zh);
    color: var(--red);
    margin-right: var(--xs);
}

.timeline-title {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    margin: var(--sm) 0;
}

.timeline-title a {
    color: var(--red);
}

.timeline-title a:hover {
    color: var(--red-dark);
}

/* =============================================
   Blog Grid
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--md);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.blog-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.blog-card-image {
    display: block;
    border-bottom: 1px solid var(--line);
}

.blog-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: var(--md);
}

.blog-card-title {
    font-family: var(--font-zh);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: var(--sm);
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--red);
}

.blog-card-title a:hover {
    color: var(--red-dark);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--md);
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sm);
    border-top: 1px solid var(--line);
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.blog-card-link {
    font-size: 0.85rem;
    color: var(--red);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Section Heading (Single Language)
   ============================================= */
.section-heading {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--red);
    margin-bottom: var(--lg);
    text-align: center;
}

.section-title {
    font-family: var(--font-zh);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--red);
    margin-bottom: var(--md);
}

/* =============================================
   Zodiac Grid (Formal Characters)
   ============================================= */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
}

.zodiac-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--md);
    text-align: center;
}

.zodiac-char {
    font-family: var(--font-zh);
    font-size: 2rem;
    font-weight: 200;
    color: var(--red);
    margin-bottom: var(--xs);
}

.zodiac-name {
    font-size: 0.9rem;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
