@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lora:wght@400;500;600&family=Noto+Serif+SC:wght@400;700&display=swap');

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

:root {
    --primary-gold: #D4AF37;
    --primary-dark: #0F0F0F;
    --text-dark: #1A1A1A;
    --text-light: #5A5A5A;
    --border-light: #E8E3D8;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12)
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #F9F6F0 0%, #FEF8F3 100%);
    color: var(--text-dark);
    line-height: 1.6
}

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

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft)
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif
}

.nav {
    display: flex;
    gap: 30px
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold)
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold)
}

.hero {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 60px;
    align-items: center;
    padding: 80px 20px;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(to bottom,
    rgba(253, 251, 247, 0.1) 0%,   /* 上方 0% 位置：几乎全透明 (0.1) */
    rgba(253, 251, 247, 0.9) 30%, /* 中间 50% 位置：很不透明 (0.85)，用来垫住文字 */
    rgba(253, 251, 247, 0.9) 70%,  /* 下方 100% 位置：几乎全透明 (0.1) */
    rgba(253, 251, 247, 0.1) 100%  /* 下方 100% 位置：几乎全透明 (0.1) */
    ), url('https://media.blessfa.com/2026/03/bazi.webp') center/cover;
    /* 突破父容器 .container 的宽度限制，实现全屏背景 */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* 内容最大宽度居中 */
    max-width: 100vw;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
    grid-column: 1 / -1;
    text-align: center;
    justify-self: center;
    max-width: 1000px;
    width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-gold);
    font-family: 'Playfair Display', serif
}

.hero-title2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif
}



.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px
}



.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0
}

.form-section {
    animation: slideInLeft 0.8s ease-out 0.2s both
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    font-family: "sans-serif";

}

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

.info-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-icon img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.info-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif
}

.info-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5
}

.prosperity-form-shell {
    position: relative;
}

.prosperity-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium)
}

.prosperity-form-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(201, 164, 59, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif
}

.form-group {
    margin-bottom: 25px
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.date-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.date-input,
.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
    font-family: 'Lora', serif
}

.date-input::placeholder,
.form-input::placeholder {
    color: #999
}

select.date-input {
    color: #999
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4AF37' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #C9A227 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    margin-bottom: 15px;
    font-family: 'Lora', serif
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4)
}

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

.privacy-note {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5
}

.results-section {
    animation: slideInRight 0.8s ease-out 0.2s both
}

.placeholder-compass {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    margin-bottom: 40px;
}

.bazi-analyzing-svg-wrap {
    width: min(200px, 55vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    animation: baziCompassSpin 2.2s linear infinite;
}

.bazi-analyzing-svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

@keyframes baziCompassSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bazi-analyzing-title {
    margin: 8px 0 0;
    font-family: 'Playfair Display', 'Lora', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: 0.02em;
}

.bazi-analyzing-sub {
    margin: 0;
    font-family: 'Lora', serif;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    opacity: 0.85;
}

.results-panel {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    margin-bottom: 40px
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
    font-family: 'Playfair Display', serif
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px
}

.result-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(46, 139, 87, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light)
}

.result-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif
}

.result-description {
    font-size: 12px;
    font-family: 'sans-serif';
    color: var(--text-light)
}

.elements-display {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.element-item {
    display: flex;
    align-items: center;
    gap: 10px
}

.element-name {
    font-size: 12px;
    font-weight: 600;
    min-width: 50px;
    color: var(--text-dark)
}

.element-bar {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden
}

.element-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), #2E8B57);
    transition: width 0.6s ease
}

.colors-display,
.numbers-display {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1)
}

.lucky-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-gold), #C9A227);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px
}

.recommendations-section {
    border-top: 1px solid var(--border-light);
    padding-top: 25px
}

.recommendations-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif
}

.remedies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.remedy-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(46, 139, 87, 0.1) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease
}

.remedy-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(46, 139, 87, 0.15) 100%);
    transform: translateY(-2px)
}

.featured-products {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium)
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
    font-family: 'Playfair Display', serif
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px
}

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft)
}

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

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
    position: relative;
    overflow: hidden
}

.product-image.citrine {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%)
}

.product-image.jade {
    background: linear-gradient(135deg, #90EE90 0%, #228B22 100%)
}

.product-image.agate {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%)
}

.product-card h4 {
    font-size: 15px;
    font-weight: 700;
    padding: 20px 15px 10px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif
}

.product-desc {
    font-size: 12px;
    color: var(--text-light);
    padding: 0 15px 15px;
    line-height: 1.5
}

.shop-btn {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px;
    background: white;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

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

.testimonials {
    padding: 80px 0;
    text-align: center
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium)
}

.testimonial-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1)
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-gold)
}

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 80px
}

.footer p {
    font-size: 12px;
    margin: 8px 0;
    line-height: 1.6
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}



@media (max-width:1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
        background: linear-gradient(to bottom,
        rgba(253, 251, 247, 0.1) 0%,   /* 上方 0% 位置：几乎全透明 (0.1) */
        rgba(253, 251, 247, 0.9) 30%, /* 中间 50% 位置：很不透明 (0.85)，用来垫住文字 */
        rgba(253, 251, 247, 0.9) 70%,  /* 下方 100% 位置：几乎全透明 (0.1) */
        rgba(253, 251, 247, 0.1) 100%  /* 下方 100% 位置：几乎全透明 (0.1) */
        ), url('https://media.blessfa.com/2026/03/wealth.webp') center/cover;
    }

    .hero-title {
        font-size: 36px
    }

    .hero-title .highlight {
        font-size: 42px
    }

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

    .info-cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .results-grid {
        grid-template-columns: 1fr
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .remedies-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    /* 右侧占位罗盘仅桌面双栏时展示；窄屏单列时隐藏 */
    .placeholder-compass {
        display: none !important;
    }
}

@media (max-width:768px) {
    .container {
        padding: 0 15px
    }

    .header-content {
        padding: 0 15px
    }

    .nav {
        gap: 15px;
        font-size: 12px
    }

    .hero {
        padding: 40px 0;
        background: linear-gradient(to bottom,
        rgba(253, 251, 247, 0.1) 0%,   /* 上方 0% 位置：几乎全透明 (0.1) */
        rgba(253, 251, 247, 0.9) 15%, /* 中间 50% 位置：很不透明 (0.85)，用来垫住文字 */
        rgba(253, 251, 247, 0.9) 70%,  /* 下方 100% 位置：几乎全透明 (0.1) */
        rgba(253, 251, 247, 0.1) 100%  /* 下方 100% 位置：几乎全透明 (0.1) */
        ), url('https://media.blessfa.com/2026/03/bazi.webp') center/cover;
    }

    .hero-title {
        font-size: 28px
    }

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

    .hero-image {
        height: 300px
    }

    .celestial-circle {
        width: 200px;
        height: 200px
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .info-card {
        padding: 20px
    }

    .prosperity-form {
        padding: 30px
    }

    .form-title {
        font-size: 20px
    }

    .results-panel {
        padding: 30px
    }

    .results-title {
        font-size: 18px
    }

    .result-value {
        font-size: 24px
    }

    .products-grid {
        grid-template-columns: 1fr
    }

    .testimonials-grid {
        grid-template-columns: 1fr
    }

    .remedies-grid {
        grid-template-columns: 1fr
    }

    .testimonials {
        padding: 60px 0
    }

    .section-title {
        font-size: 16px
    }
}

@media (max-width:480px) {
    .header-content {
        flex-direction: column;
        gap: 15px
    }

    .nav {
        gap: 10px;
        font-size: 11px
    }

    .hero-title {
        font-size: 22px
    }

    .hero-title .highlight {
        font-size: 26px
    }

    .hero-subtitle {
        font-size: 14px
    }

    .form-title {
        font-size: 18px
    }

    .date-inputs {
        grid-template-columns: 1fr
    }

    .prosperity-form {
        padding: 20px
    }

    .results-panel {
        padding: 20px
    }

    .results-grid {
        gap: 15px
    }

    .result-card {
        padding: 15px
    }

    .result-value {
        font-size: 20px
    }

    .colors-display,
    .numbers-display {
        gap: 8px
    }

    .color-dot,
    .lucky-number {
        width: 28px;
        height: 28px;
        font-size: 12px
    }

    .remedies-grid {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .remedy-item {
        padding: 12px;
        font-size: 11px
    }

    .featured-products {
        padding: 20px
    }

    .product-card h4 {
        font-size: 14px;
        padding: 15px 12px 8px
    }

    .product-desc {
        font-size: 11px;
        padding: 0 12px 12px
    }

    .shop-btn {
        width: calc(100% - 24px);
        margin: 0 12px 12px;
        padding: 8px;
        font-size: 11px
    }

    .testimonial-card {
        padding: 20px
    }

    .testimonial-text {
        font-size: 12px
    }

    .testimonial-author {
        font-size: 12px
    }

    .footer p {
        font-size: 11px
    }
}