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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #f5f0eb;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.lang-toggle {
    margin-left: auto;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}

.site-header nav {
    display: flex;
    gap: 14px;
    margin-left: 24px;
}
.site-header nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: #fff;
}

/* Ad Banners */
.ad-banner {
    text-align: center;
    min-height: 90px;
    background: #eee;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Main */
main {
    min-height: 60vh;
    padding: 24px 0;
}

/* Hero */
.hero {
    text-align: center;
    padding: 48px 0 32px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
    top: -80px;
    left: -60px;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(118,75,162,0.10) 0%, transparent 70%);
    bottom: -40px;
    right: -40px;
}

.hero-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
    top: 20px;
    right: 80px;
}

.hero-logo {
    margin-bottom: 20px;
    position: relative;
}

.site-logo {
    max-width: 100%;
    height: auto;
    width: 600px;
}

.hero h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 12px;
    position: relative;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: #666;
    position: relative;
}
.free-highlight {
    color: #ff6b35;
    font-weight: 800;
    font-size: 1.3rem;
}

/* Card Grid - Homepage */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon {
    font-size: 1.8rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.free-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-link {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features */
.features {
    margin: 48px 0;
    text-align: center;
}

.features h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.features h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    margin: 12px auto 0;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.feature-item {
    background: #fff;
    border-radius: 14px;
    padding: 32px 20px 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.feature-icon {
    font-size: 1.4rem;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 32px 0 24px;
}

.page-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.page-header p {
    color: #666;
}

/* Fortune Form (shared by monthly, bazi, job pages) */
.fortune-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.fortune-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-gender {
    max-width: 50%;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-size: 1rem;
    background: #faf8f6;
    color: #333;
    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='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-field select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
}

.gender-group {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf8f6;
    position: relative;
}

.gender-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.gender-option .gender-label {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.gender-option:hover {
    border-color: #667eea;
}

.gender-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gender-option.active .gender-label {
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 2px;
}

.btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Fortune Result (shared by monthly, bazi, job pages) */
.fortune-result {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.fortune-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0ebe6;
}

.fortune-header h3 {
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Overall Score Gauge */
.overall-score-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #faf8ff 0%, #f5f0eb 100%);
    border-radius: 14px;
}

.overall-gauge {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.gauge-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.gauge-inner {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge-score {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #333;
}

.gauge-unit {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.overall-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.overall-label {
    font-size: 0.85rem;
    color: #999;
}

.overall-level {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Aspect Cards (monthly fortune & bazi detail) */
.aspect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.aspect-card {
    background: #faf8f6;
    border-radius: 12px;
    padding: 18px;
}

.aspect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.aspect-name {
    font-weight: 600;
    font-size: 1rem;
    color: #444;
}

.aspect-score {
    font-weight: 700;
    font-size: 0.95rem;
}

.aspect-bar {
    height: 8px;
    background: #e8e0d8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.aspect-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.aspect-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Callout */
.fortune-callout {
    display: flex;
    gap: 14px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid #ffc107;
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.callout-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #795548;
}

.callout-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* BaZi Pillars (bazi_detail page) */
.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pillar {
    background: linear-gradient(135deg, #faf8ff, #f0ebf5);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    border: 2px solid #e8e0f0;
}

.pillar-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.pillar-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 4px;
}

.pillar-focus {
    color: #667eea;
    font-size: 1.6rem;
}

.bazi-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0ebe6;
}

.summary-item {
    background: #faf8f6;
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-label {
    font-size: 0.85rem;
    color: #999;
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.text-green { color: #2e7d32; }
.text-red { color: #c62828; }

/* Error Message */
.error-msg {
    background: #ffebee;
    color: #c62828;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 16px 0;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #ffcdd2;
}

/* Footer */
.fade-in {
    animation: fadeInUp 0.5s ease;
}

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

/* Fortune Sub Header */
.fortune-sub-header {
    margin: 24px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebe6;
}

.fortune-sub-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
}

/* Banyue Cards (half-month periods) */
.banyue-list {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.banyue-card {
    background: #faf8f6;
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid #667eea;
    transition: box-shadow 0.2s;
}

.banyue-card:first-child {
    border-left-color: #764ba2;
    background: linear-gradient(135deg, #faf8ff, #f5f0ff);
}

.banyue-period {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.banyue-card:first-child .banyue-period {
    color: #764ba2;
}

.banyue-direction {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.banyue-detail {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

/* Job Period Cards */
.job-periods {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.job-period-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #c8e6c9;
}

.job-period-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.job-period-content {
    flex: 1;
}

.job-period-time {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 4px;
}

.job-period-tip {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.job-period-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #43a047;
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.job-none {
    text-align: center;
    padding: 32px 20px;
}

.job-none-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.job-none-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.job-none-hint {
    font-size: 0.85rem;
    color: #999;
}

/* Bannian Cards (half-year overview) */
.bannian-list {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.bannian-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #f0ebe6;
}

.bannian-period {
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

/* Footer */
.site-footer {
    background: #333;
    color: #999;
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-icp {
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-icp a {
    color: #888;
    text-decoration: none;
    margin: 0 6px;
}

.footer-icp a:hover {
    color: #bbb;
}

/* Legal Pages */
.legal-page {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 1.8;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.legal-page h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: #444;
}

.legal-page p {
    margin-bottom: 10px;
    color: #555;
}

.legal-page ul {
    margin: 8px 0 16px 20px;
    color: #555;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-update {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.contact-info {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.contact-item {
    background: #f9f7f5;
    border-radius: 8px;
    padding: 16px;
}

.contact-item h3 {
    margin-top: 0;
}

.contact-value {
    font-weight: 600;
    color: #667eea;
}

.contact-note {
    background: #fff8e1;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
}

/* Contact Form */
.contact-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.contact-form-wrap h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-size: 1rem;
    background: #faf8f6;
    color: #333;
    transition: border-color 0.2s, background-color 0.2s;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
}

.form-field-full {
    grid-column: 1 / -1;
}

.success-msg {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 16px 0;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #c8e6c9;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 700px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .nav-toggle {
        display: block;
    }
    .site-header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 12px 0 4px;
        gap: 0;
        margin-left: 0;
    }
    .site-header nav.open {
        display: flex;
    }
    .site-header nav a {
        margin: 0;
        padding: 10px 0;
        font-size: 0.95rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .card-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .fortune-form .form-row { grid-template-columns: 1fr; }
    .form-row-gender { max-width: 100%; }
    .aspect-grid { grid-template-columns: 1fr; }
    .overall-score-card { flex-direction: column; text-align: center; }
    .bazi-pillars { grid-template-columns: repeat(2, 1fr); }
    .fortune-form { padding: 24px 18px; }
    .fortune-result { padding: 24px 18px; }
    .banyue-card { padding: 14px 16px; }
    .bannian-card { padding: 14px 16px; }
    .job-period-card { flex-direction: column; text-align: center; padding: 16px; }
    .job-period-badge { align-self: center; }
}

/* 布局：电脑端内容+侧栏，手机端堆叠 */
.layout-row {
    display: flex;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: flex-start;
}
.layout-row > main.container {
    flex: 1;
    max-width: 800px;
    margin: 0;
}

/* 支持横幅 */
.support-banner {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0ebe6, #e8e0d8);
    border-radius: 12px;
    border-left: 3px solid #667eea;
}
.support-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
}

/* 语言切换 */
.lang-toggle {
    text-align: right;
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
.site-header .lang-toggle {
    margin-bottom: 0;
}
.lang-toggle-inner {
    display: inline-flex;
    background: #f0eef8;
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}
.lang-btn {
    display: inline-block;
    padding: 5px 18px;
    font-size: 0.8rem;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all .25s ease;
    letter-spacing: 0.3px;
}
.lang-btn:hover {
    color: #554d7a;
}
.lang-btn.active {
    background: linear-gradient(135deg, #667eea, #7c5cbf);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}
.lang-en { display: none; }

@media (max-width: 700px) {
    .lang-toggle-inner {
        padding: 2px;
    }
    .lang-btn {
        padding: 4px 14px;
        font-size: 0.75rem;
    }
}

/* 侧栏推广 */
.promo-side {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    margin-top: 80px;
}
.promo-card-vert {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #283048, #667eea);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    transition: all .25s;
    text-align: center;
}
.promo-card-vert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.promo-card-vert::after {
    content: "广告";
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    color: rgba(255,255,255,.5);
    background: rgba(0,0,0,.25);
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.3;
}
.promo-card-vert .promo-img-wrap {
    width: 180px; height: 180px;
    margin: 0 auto 8px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.25);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.promo-card-vert .promo-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity .5s;
}
.promo-card-vert .promo-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #3d2b00;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 8px;
}
.promo-card-vert .promo-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.promo-card-vert .promo-desc { font-size: 10px; opacity: .6; margin-bottom: 8px; }
.promo-card-vert .promo-price-bar { margin-bottom: 10px; }
.promo-card-vert .promo-price { color: #ffd700; font-weight: 800; font-size: 18px; }
.promo-card-vert .promo-original { font-size: 12px; opacity: .5; text-decoration: line-through; margin-left: 6px; }
.promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,107,53,.3);
    transition: all .2s;
}
.promo-card-vert:hover .promo-btn {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(255,107,53,.4);
}
.promo-card-third {
    margin-top: 16px;
}

/* 右侧广告包装器：桌面端垂直堆叠，手机端拆开排序 */
.promo-side-right-wrap {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: flex-start;
}
@media (min-width: 901px) {
    .promo-side-right-wrap .promo-side {
        width: auto;
        position: static;
        margin-top: 0;
    }
}

/* 手机端：推广移到页面底部 */
@media (max-width: 900px) {
    .layout-row { flex-direction: column; padding: 0; }
    .layout-row > main.container { max-width: 100%; padding: 0 16px; order: 1; }
    .promo-side { order: 2;
        width: 100%;
        position: static;
        padding: 14px 16px;
        background: linear-gradient(135deg, #283048, #667eea);
        margin-top: 0;
    }
    .promo-card-vert {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 12px 14px;
        background: rgba(255,255,255,.1);
    }
    .promo-card-vert .promo-img-wrap { width: 160px; height: 160px; margin: 0; flex-shrink: 0; }
    .promo-card-vert .promo-info { flex: 1; min-width: 0; }
    .promo-card-vert .promo-price-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
    .promo-card-vert .promo-price { font-size: 16px; }
    .promo-btn { padding: 4px 16px; font-size: 12px; }
    .promo-card-vert .promo-desc { margin-bottom: 6px; }
    .promo-side-right-wrap { display: contents; }
    .promo-side-ad2 { order: 0; }
    .promo-side-ad4 { order: 3; }
}

/* APP 下载推广 */
.app-download {
    margin: 50px 0 0;
    padding: 60px 0 70px;
    text-align: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0D0221 0%, #1a0a3e 40%, #2d1b4e 70%, #1a0a3e 100%);
}
/* 装饰光晕 */
.app-download::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 100%;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(102,126,234,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 50%, rgba(118,75,162,0.1) 0%, transparent 50%);
    pointer-events: none;
}
/* 浮动装饰圆 */
.app-download .deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.app-download .deco-circle-1 {
    width: 120px; height: 120px;
    background: rgba(212,168,67,0.04);
    top: 10%; left: 8%;
    animation: appFloat 6s ease-in-out infinite;
}
.app-download .deco-circle-2 {
    width: 80px; height: 80px;
    background: rgba(102,126,234,0.05);
    bottom: 15%; right: 12%;
    animation: appFloat 8s ease-in-out infinite reverse;
}
.app-download .deco-circle-3 {
    width: 50px; height: 50px;
    background: rgba(118,75,162,0.06);
    top: 50%; left: 50%;
    animation: appFloat 7s ease-in-out infinite 2s;
}
@keyframes appFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -20px); }
}

.app-download .container {
    position: relative;
    z-index: 1;
}

/* 手机图标 */
.app-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border: 2px solid rgba(212,168,67,0.25);
    border-radius: 18px;
    font-size: 34px;
    margin-bottom: 12px;
    animation: appGlow 3s ease-in-out infinite;
}
@keyframes appGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212,168,67,0.1); }
    50% { box-shadow: 0 0 40px rgba(212,168,67,0.2); }
}

.app-download h3 {
    color: #D4A843;
    font-size: 1.7rem;
    margin: 0 0 4px;
    letter-spacing: 1px;
}
.app-download-sub {
    color: #b8a8d8;
    font-size: 0.95rem;
    margin: 0 0 28px;
}

/* 对比卡片 */
.app-compare {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.app-compare-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 28px;
    min-width: 140px;
    text-align: center;
    transition: all .3s;
}
.app-compare-card:hover {
    border-color: rgba(212,168,67,0.3);
    transform: translateY(-2px);
}
.app-compare-label {
    font-size: 0.8rem;
    color: #8a7aa8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.app-compare-number {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 4px 0;
}
.app-compare-number.app {
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255,215,0,0.15);
}
.app-compare-number.web {
    color: #8a7aa8;
}
.app-compare-unit {
    font-size: 0.85rem;
    color: #b8a8d8;
}
.app-compare-vs {
    display: flex;
    align-items: center;
    color: #6a5a88;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 4px;
}
.app-compare-note {
    color: #8a7aa8;
    font-size: 0.85rem;
    margin-bottom: 28px;
}
.app-compare-note strong {
    color: #b8a8d8;
}

/* 功能标签 */
.app-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.app-tag {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    color: #c8b8e0;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.app-tag::before {
    content: '✦ ';
    color: #D4A843;
}

/* 下载按钮 */
.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5a623, #e8942a);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 15px 48px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 25px rgba(245,166,35,0.35);
    transition: all .3s ease;
    letter-spacing: 0.5px;
}
.app-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(245,166,35,0.5);
    color: #fff;
}
.app-download-btn:active {
    transform: translateY(-1px);
}
.app-download-note {
    color: #6a5a88;
    font-size: 0.78rem;
    margin-top: 14px;
}

@media (max-width: 700px) {
    .app-download {
        padding: 36px 0 40px;
        margin-top: 36px;
    }
    .app-download h3 {
        font-size: 1.3rem;
    }
    .app-phone-icon {
        width: 56px; height: 56px;
        font-size: 26px;
        border-radius: 14px;
    }
    .app-download-sub {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    .app-compare {
        gap: 8px;
    }
    .app-compare-card {
        padding: 14px 20px;
        min-width: 110px;
    }
    .app-compare-number {
        font-size: 2.2rem;
    }
    .app-compare-vs {
        font-size: 0.85rem;
    }
    .app-compare-note {
        font-size: 0.8rem;
        margin-bottom: 22px;
    }
    .app-tags {
        gap: 6px;
        margin-bottom: 22px;
    }
    .app-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    .app-download-btn {
        font-size: 1rem;
        padding: 13px 36px;
    }
}

/* 分享按钮 */
.share-btn-wrap {
    text-align: center;
    margin-top: 20px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 10px 28px;
    border-radius: 24px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
    color: #fff;
}
.share-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 分享卡片（html2canvas 截图用，置于屏幕外） */
.share-card {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 480px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    z-index: -1;
    pointer-events: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e8e8e8;
}
.share-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 24px 30px 20px;
    text-align: center;
}
.share-card-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}
.share-card-url {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 4px;
    letter-spacing: 1px;
}
.share-card-qr-wrap {
    margin: 12px auto 0;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    display: inline-block;
}
.share-card-qr-wrap img {
    display: block;
}
.share-card-qr-label {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 6px;
    letter-spacing: 1px;
}
.share-card-divider {
    display: none;
}
.share-card-body {
    padding: 24px 30px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    min-height: 100px;
}
/* 卡片内结果精简样式 */
.share-card-body .fortune-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 4px;
}
.share-card-body .overall-label {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px;
}
.share-card-body .banyue-card {
    background: #f8f6ff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
}
.share-card-body .banyue-period {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}
.share-card-body .banyue-direction {
    font-size: 13px;
    color: #667eea;
    margin: 2px 0;
}
.share-card-body .banyue-detail {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0;
}
.share-card-body .job-period-card {
    background: #f8f6ff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.share-card-body .job-period-icon {
    font-size: 24px;
}
.share-card-body .job-period-time {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}
.share-card-body .job-period-tip {
    font-size: 13px;
    color: #666;
    margin: 2px 0 0;
}
.share-card-body .job-period-badge {
    display: none;
}
.share-card-body .job-none {
    text-align: center;
    padding: 20px;
}
.share-card-body .job-none-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.share-card-body .job-none-text {
    font-size: 14px;
    color: #666;
}
.share-card-body .job-none-hint {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}
.share-card-footer {
    background: #f0ecf9;
    padding: 18px 30px;
    text-align: center;
}
.share-card-app {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}
.share-card-app-desc {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

/* 分享弹窗 */
.share-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}
.share-overlay.open {
    display: flex;
}
.share-overlay img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.share-overlay-tip {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
    line-height: 1.7;
}
.share-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    border: none;
    transition: background .2s;
}
.share-overlay-close:hover {
    background: rgba(255,255,255,0.2);
}
.share-overlay-dl {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all .2s;
}
.share-overlay-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
}

@media (max-width: 700px) {
    .share-overlay-tip {
        font-size: 14px;
    }
    .share-overlay img {
        max-height: 55vh;
    }
}
