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

:root {
    --primary-gold: #d4af37;
    --primary-gold-dark: #b8941f;
    --primary-gold-light: #e8d89e;
    --auspicious-green: #4caf50;
    --auspicious-green-light: #81c784;
    --inauspicious-red: #f44336;
    --inauspicious-red-light: #e57373;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-beige: #faf8f3;
    --bg-card: #fffef9;
    --border-color: #e0e0e0;
    --border-pink: #f5e6e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --red-brown: #8b4513;
    --red-brown-light: #a0522d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'KaiTi', 'STKaiti', serif;
    color: var(--text-dark);
    background-color: var(--bg-beige);
    line-height: 1.8;
    position: relative;
    letter-spacing: 0.5px;
}

/* Background Image - Fully Opaque */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(250, 248, 243, 0.7) 0%, rgba(250, 248, 243, 0.5) 100%),
        url('bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 1;
    z-index: -2;
    pointer-events: none;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    position: relative;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: none;
}

.logo * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-symbol {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    position: relative;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    will-change: background, box-shadow;
    animation: none;
    overflow: hidden;
    z-index: 1;
}

.logo-symbol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: -1;
}

.logo-symbol::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d32f2f 0%, #c41e3a 50%, #b71c1c 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: -1;
}

.logo:hover .logo-symbol::before {
    opacity: 0;
}

.logo:hover .logo-symbol::after {
    opacity: 1;
}

.logo:hover .logo-symbol {
    animation: logoGlowIn 0.6s ease-out forwards, logoGlow 2s ease-in-out 0.6s infinite;
}

.logo:not(:hover) .logo-symbol {
    animation: logoGlowOut 0.6s ease-out forwards;
}

@keyframes logoGlowIn {
    0% {
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    }
    100% {
        box-shadow: 0 4px 20px rgba(211, 47, 47, 0.6);
    }
}

@keyframes logoGlowOut {
    0% {
        box-shadow: 0 4px 20px rgba(211, 47, 47, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    }
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(211, 47, 47, 0.6);
    }
    50% {
        box-shadow: 0 4px 25px rgba(211, 47, 47, 0.8);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    will-change: color;
}

.logo:hover .logo-main {
    color: var(--red-brown) !important;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    will-change: color;
}

.logo:hover .logo-sub {
    color: var(--primary-gold) !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}
.nav-link-active {
    color: var(--primary-gold) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-gold);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.language-current:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.language-current i:first-child {
    font-size: 16px;
}

.language-current i:last-child {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector.active .language-current i:last-child {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.language-option:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-left-color: var(--primary-gold);
}

.language-option.active {
    color: var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.1);
    border-left-color: var(--primary-gold);
    font-weight: 600;
}

.language-option i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.user-icon:hover {
    color: var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.user-icon i {
    font-size: 18px;
}

.user-info-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #d4af37;
    border-radius: 10px;
    min-width: 250px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

.user-info-tooltip div {
    margin-bottom: 8px;
    font-size: 14px;
}

.user-info-tooltip div:last-of-type {
    margin-bottom: 0;
}

/* Hero Section with Parallax */
.hero {
    background: transparent;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    color: var(--red-brown);
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 12px;
    font-family: 'KaiTi', 'STKaiti', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.hero-title:hover::before {
    width: 100%;
    height: 50px;
    opacity: 1;
}

.hero-tagline {
    font-size: 15px;
    color: var(--text-light);
    opacity: 0.92;
    margin: -28px auto 36px;
    line-height: 1.85;
    max-width: 832px;
    letter-spacing: 1px;
    animation: fadeInUp 1.3s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 2.2;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease-out 0.5s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 15px;
    color: var(--red-brown);
    letter-spacing: 8px;
    font-family: 'KaiTi', 'STKaiti', serif;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

/* Hover effect for section titles (only when title-underline is present) */
.title-underline::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.section-title:hover .title-underline::before {
    width: 100%;
    height: 50px;
    opacity: 1;
}

.title-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-gold);
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Huangli Section */
.huangli-section {
    background-color: transparent;
}

.huangli-content {
    max-width: 900px;
    margin: 0 auto;
}

.date-selection {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.date-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.date-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--bg-white);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* 自定义日期选择器样式 */
.custom-date-wrapper {
    position: relative;
    cursor: pointer;
}

.custom-date-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    position: relative;
    z-index: 1;
    pointer-events: none !important;
}

.custom-date-display:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.custom-date-text {
    flex: 1;
    color: var(--text-dark);
}

.custom-date-display i {
    color: var(--primary-gold);
    margin-left: 10px;
    font-size: 14px;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
}

/* 隐藏的原生input，但保持可点击 */
.custom-date-wrapper {
    position: relative;
    cursor: pointer;
}

.custom-date-wrapper input[type="date"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    background: transparent !important;
}

.btn-today {
    background-color: var(--primary-gold);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-today:hover {
    background-color: var(--primary-gold-dark);
}

.btn-nav {
    padding: 10px 15px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Central Information Card - Redesigned */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 60px 50px;
    margin: 60px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Top Section: Lunar Date with Solar Term */
.card-top-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 20px;
}

.lunar-date-main {
    font-size: 64px;
    font-weight: 600;
    color: var(--red-brown);
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    width: 100%;
    flex: 1 1 100%;
}

.solar-term-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 18px;
    color: var(--red-brown);
    font-weight: 500;
    white-space: nowrap;
    margin: 0 auto;
}

/* Lunar Calendar Info */
.lunar-calendar-info {
    text-align: center;
    margin-bottom: 15px;
}

.lunar-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.lunar-year-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.lunar-year-ganzhi {
    font-size: 20px;
    color: var(--red-brown);
    font-weight: 600;
    letter-spacing: 2px;
}

.lunar-year-zodiac {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Gregorian Date */
.gregorian-date-info {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
}



/* Explanation Text */
.explanation-text {
    margin: 35px 0 40px;
    text-align: left;
}

.explanation-text p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.3px;
}

/* Activities in Card */
.card-activities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.activity-header-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.auspicious-icon {
    background-color: var(--red-brown);
}

.inauspicious-icon {
    background-color: var(--text-light);
    border-radius: 2px;
}

.activity-header-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.auspicious .activity-header-text {
    color: var(--red-brown);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.activity-diamond {
    width: 6px;
    height: 6px;
    background-color: var(--red-brown);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.inauspicious .activity-diamond {
    background-color: var(--text-light);
}


/* Daily Motto */
.daily-motto {
    text-align: center;
    margin: 50px 0 30px;
}

.motto-title {
    font-size: 14px;
    color: var(--red-brown);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.motto-text {
    font-size: 18px;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
    font-weight: 400;
}

.motto-text::before,
.motto-text::after {
    content: '"';
    color: var(--text-light);
    opacity: 0.6;
}

/* Wisdom Text */
.wisdom-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
    line-height: 1.8;
}

/* Bazi Section */
.bazi-section {
    background-color: transparent;
}

.bazi-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 254, 249, 0.95) 100%);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.bazi-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.bazi-form-container::after {
    content: '命';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 120px;
    color: rgba(139, 69, 19, 0.03);
    font-family: 'KaiTi', 'STKaiti', serif;
    font-weight: bold;
    pointer-events: none;
    z-index: 0;
}

.bazi-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-instruction {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.required-mark {
    color: var(--inauspicious-red);
    font-weight: bold;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label.required::after {
    content: '*';
    color: var(--inauspicious-red);
    margin-left: 4px;
}

.form-input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* 日期时间选择器样式 */
.datetime-input-wrapper {
    position: relative;
    cursor: pointer;
}

.datetime-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
}

.datetime-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: var(--text-dark);
    pointer-events: none !important;
    position: relative;
    z-index: 1;
}

.datetime-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.datetime-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.datetime-hint {
    font-size: 11px;
    color: var(--primary-gold);
    opacity: 0.8;
    font-style: italic;
    margin-top: 4px;
    display: block;
}

.datetime-display i {
    color: var(--primary-gold);
    margin-left: 10px;
    font-size: 18px;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.datetime-input-wrapper:hover .datetime-display {
    border-color: var(--primary-gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.datetime-input-wrapper:active .datetime-display {
    transform: translateY(1px);
}

.datetime-text {
    flex: 1;
    color: var(--text-dark);
}

.datetime-input:invalid + .datetime-display .datetime-text {
    color: var(--text-light);
}

.datetime-display i {
    color: var(--primary-gold);
    margin-left: 10px;
    font-size: 18px;
}

.timezone-info {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--primary-gold);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.hint-box {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.hint-box i {
    color: #ff9800;
    font-size: 20px;
    margin-top: 2px;
}

.hint-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hint-list li {
    font-size: 14px;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.hint-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
}

.btn-submit {
    background-color: var(--primary-gold);
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Footer — 与顶栏 .container 同宽 */
.footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo-symbol {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    border-radius: 50%;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.footer-logo-sub {
    font-size: 11px;
    color: #cccccc;
    letter-spacing: 1px;
}

.footer-description {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3a3a3a;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-gold);
    transform: translateY(-3px);
}

.service-hours {
    color: #cccccc;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #3a3a3a;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

.global-service {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 14px;
}

.global-service i {
    color: var(--inauspicious-red);
}

/* Additional Zen and Cultural Enhancements */

/* Subtle fade-in animation for sections */
section {
    animation: fadeInUp 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Traditional Pattern Decoration */
.info-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.05) 10px, rgba(212, 175, 55, 0.05) 20px);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

/* Enhanced button with ink effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced form inputs with focus effect */
.form-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 4px 12px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

/* Activity items with subtle animation */
.activity-item {
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: width 0.5s ease;
}

.activity-item:hover::before {
    width: 100%;
}

/* Card subtle entrance animation */
.info-card {
    animation: cardEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* 积分通知动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Section title decorative elements removed */

/* ============================================
   统一的加载状态提示组件 (Loading Spinner)
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-large {
    width: 80px;
    height: 80px;
    border-width: 6px;
}

.loading-text {
    margin-top: 20px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 按钮加载状态 */
.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   统一的Toast通知系统
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    pointer-events: auto;
    position: relative;
    background: var(--bg-white);
    border-left: 4px solid;
}

.toast.success {
    border-left-color: var(--auspicious-green);
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}

.toast.error {
    border-left-color: var(--inauspicious-red);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.toast.warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
}

.toast.info {
    border-left-color: #2196f3;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--auspicious-green);
}

.toast.error .toast-icon {
    color: var(--inauspicious-red);
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast.info .toast-icon {
    color: #2196f3;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.toast-message {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.toast-action {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-action-button {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toast-action-button:hover {
    background: currentColor;
    color: #fff;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Login/Register Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: var(--bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.terms-modal-content,
.privacy-modal-content,
.bazi-result-modal-content {
    max-width: 1200px;
    width: min(96vw, 1200px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.terms-modal-body,
.privacy-modal-body,
.bazi-result-modal-body {
    overflow-y: auto;
    padding: 30px;
    flex: 1;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(20, 20, 40, 0.98) 100%);
    color: #ddd;
}

.bazi-result-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: auto;
}

.bazi-result-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
}

.bazi-result-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

/* 新标签页结果页：独立页样式 */
body.bazi-result-page-body .bazi-result-content,
body.bazi-result-page-body .bazi-result-page-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 0 40px;
    box-sizing: border-box;
}
body.bazi-result-page-body #bazi-result-body {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}
body.bazi-result-page-body .bazi-result-main-title {
    margin-bottom: 24px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #d4af37;
}
body.bazi-result-page-body .bazi-section-title,
body.bazi-result-page-body .bazi-interpretation-block h4 {
    font-size: 18px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 16px;
}
body.bazi-result-page-body .bazi-para {
    margin: 0 0 14px;
    line-height: 1.75;
    color: #ddd;
}
body.bazi-result-page-body button {
    transition: all 0.25s ease;
}
body.bazi-result-page-body button:hover {
    background: rgba(212, 175, 55, 0.35) !important;
    transform: translateY(-1px);
}

/* 五行分析面板（替代雷达能力表） */
.bazi-wuxing-section {
    position: relative;
    overflow: visible;
}
.bazi-wuxing-section--dark .bazi-wuxing-bar-label,
.bazi-wuxing-section--dark .bazi-wuxing-bar-count,
.bazi-wuxing-section--dark .bazi-wuxing-summary {
    color: #f0f0f0;
}
.bazi-wuxing-section--dark .bazi-wuxing-summary p,
.bazi-wuxing-section--dark .bazi-wuxing-summary strong {
    color: #e8e8e8;
}
.bazi-wuxing-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: center;
    padding: 8px 0 4px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .bazi-wuxing-panel {
        grid-template-columns: 1fr;
    }
}
.bazi-wuxing-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bazi-wuxing-bar-row {
    display: grid;
    grid-template-columns: 52px 1fr 36px;
    gap: 12px;
    align-items: center;
}
.bazi-wuxing-bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #f5f5f5;
}
.bazi-wuxing-bar-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #111;
    box-shadow: 0 0 16px currentColor;
}
.bazi-wuxing-bar-track {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.bazi-wuxing-bar-fill {
    height: 100%;
    min-width: 4px;
    border-radius: 999px;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}
.bazi-wuxing-bar-count {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: #d4af37;
}
.bazi-wuxing-orbit {
    position: relative;
    width: min(100%, 260px);
    aspect-ratio: 1;
    margin: 0 auto;
}
.bazi-wuxing-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.25);
    background: radial-gradient(circle at 35% 30%, rgba(212, 175, 55, 0.22), rgba(10, 10, 20, 0.85) 65%);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.4);
    animation: baziWuxingPulse 4s ease-in-out infinite;
}
@keyframes baziWuxingPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 55px rgba(212, 175, 55, 0.28), inset 0 0 30px rgba(0, 0, 0, 0.35); }
}
.bazi-wuxing-orbit-core {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    background: rgba(18, 18, 28, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.bazi-wuxing-orbit-core strong {
    font-size: 22px;
    color: #d4af37;
    line-height: 1.2;
}
.bazi-wuxing-orbit-core span {
    font-size: 12px;
    color: #a1a1aa;
    margin-top: 6px;
}
.bazi-wuxing-orbit-dot {
    position: absolute;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #111;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.bazi-wuxing-summary {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 15px;
    line-height: 1.85;
}
.bazi-checkout-modal .modal-content {
    max-width: 480px;
}
.bazi-checkout-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
.bazi-checkout-points-box {
    padding: 14px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    text-align: center;
}
.bazi-checkout-points-box strong {
    display: block;
    font-size: 22px;
    color: #d4af37;
    margin-top: 4px;
}

.terms-section {
    margin-bottom: 25px;
}

.terms-section h2 {
    font-size: 20px;
    color: var(--red-brown);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 8px;
}

.terms-section h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 15px;
    margin-bottom: 8px;
}

.terms-section p {
    margin-bottom: 12px;
    color: var(--text-light);
    text-align: justify;
    line-height: 1.6;
}

.terms-section ul {
    margin-left: 25px;
    margin-bottom: 12px;
}

.terms-section li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.6;
}

.important-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.important-notice strong {
    color: #856404;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.bazi-result-modal .modal-header {
    flex-direction: row-reverse;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-dark);
    background-color: rgba(212, 175, 55, 0.05);
}

.tab-btn.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.modal-body {
    padding: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-gold-dark);
    text-decoration: underline;
}

.link {
    color: var(--primary-gold);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.btn-submit-modal {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-modal:hover {
    background-color: var(--primary-gold-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        flex-shrink: 0;
        min-width: 0;
    }

    .logo-symbol {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .logo-main {
        font-size: 16px;
    }

    .logo-sub {
        font-size: 10px;
    }

    .header-right {
        flex: 1 1 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .language-selector {
        flex-shrink: 0;
    }

    .language-current {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .info-card {
        padding: 25px 20px;
    }

    .card-middle {
        flex-direction: column;
        gap: 20px;
    }

    .solar-term, .ganzhi {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        letter-spacing: normal;
    }

    .card-activities {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .date-controls {
        flex-direction: column;
        width: 100%;
    }

    .date-input, .btn-today, .btn-nav {
        width: 100%;
    }

    .bazi-form-container {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer > .container {
        padding: 0 16px;
    }

    body.bazi-result-page-body #bazi-result-body,
    body.bazi-result-page-body .bazi-result-content,
    body.bazi-result-page-body .bazi-result-page-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .bazi-pillars-compact > div {
        gap: 8px 12px !important;
    }

    .bazi-pillars-compact span[style*="font-size: 22px"] {
        font-size: 18px !important;
        letter-spacing: 2px !important;
    }

    #bazi-interpret-cta > div,
    #bazi-interpret-upgrade-cta button,
    .bazi-actions {
        flex-direction: column;
        width: 100%;
    }

    #bazi-interpret-cta button,
    #bazi-interpret-upgrade-cta button,
    .bazi-actions button {
        width: 100%;
        min-width: 0 !important;
    }

    .bazi-wuxing-panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 移动端表单优化 */
@media (max-width: 768px) {
    .form-input,
    .form-select,
    .datetime-input {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 12px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-body {
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    }
    
    /* 表格在移动端横向滚动 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    /* 按钮在移动端更大，更容易点击 */
    .btn,
    .btn-primary,
    .btn-submit {
        min-height: 44px; /* iOS推荐的最小点击区域 */
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        width: 100%;
        justify-content: flex-start;
    }

    .logo-symbol {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .logo-main {
        font-size: 14px;
    }

    .logo-sub {
        font-size: 9px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 5px;
        margin-top: 0;
    }

    .nav-link {
        font-size: 11px;
        padding: 5px 8px;
        flex: 1;
        text-align: center;
    }

    .language-selector {
        flex-shrink: 0;
    }

/* ============================================
   积分包和支付页面样式
   ============================================ */
.points-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.package-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.package-card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.package-card.recommended {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-gold);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.package-card h3 {
    font-size: 28px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.package-card .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.package-card .bonus {
    color: var(--auspicious-green);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.package-card .btn {
    width: 100%;
    margin-top: 10px;
}

/* 支付卡片样式 */
.payment-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.payment-card h2 {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

#order-summary {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-gold);
}

#order-summary p {
    margin: 10px 0;
    font-size: 16px;
}

#order-summary strong {
    color: var(--text-dark);
    margin-right: 10px;
}

/* 支付历史表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.table thead {
    background: var(--primary-gold);
    color: #000;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-failed {
    background: #f8d7da;
    color: #842029;
}

.status-cancelled {
    background: #e2e3e5;
    color: #41464b;
}

.status-refunded {
    background: #d1ecf1;
    color: #055160;
}

/* 移动端支付页面优化 */
@media (max-width: 768px) {
    .points-packages {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .payment-card {
        padding: 20px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
}

    .language-current {
        font-size: 11px;
        padding: 5px 8px;
    }

    .language-current span {
        display: none;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .lunar-date-large {
        font-size: 32px;
    }
    

    .hexagram-circle {
        width: 80px;
        height: 80px;
    }

    .hexagram-line {
        width: 40px;
    }
}
