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

body {
    min-width: 1200px;
    background-color: #6a0a0a;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: "Songti SC", "STSong", "SimSun", "NSimSun", "FangSong", "STFangsong", serif;
}

/* ========== 1. Header ========== */
.header {
    height: 54px;
    background: linear-gradient(to bottom, #1c0808 0%, #100404 100%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 52px;
    position: relative;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #c9a227 25%, #f5d878 50%, #c9a227 75%, transparent 100%);
}

.header-logo {
    grid-column: 2;
    color: #d4a832;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-family: "楷体", "KaiTi", "STKaiti", "华文楷体", "STSong", serif;
    text-shadow:
        0 0 8px rgba(212, 168, 50, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.7);
}

.header-logo-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #c9a227;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
    color: #e8c86a;
}

.header-nav {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 34px;
    align-items: center;
}

.header-nav a {
    color: #b8902a;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 2px;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 3px;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.header-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8c86a;
    transform: scaleX(0);
    transition: transform 0.2s;
}

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

.header-nav a:hover::after {
    transform: scaleX(1);
}

/* ========== 2. 主区域 ========== */
.main {
    min-height: calc(100vh - 54px);
    padding: 28px 0 0;
}

/* 网站口号标题 */
.site-slogan {
    text-align: center;
    font-size: 60px;
    font-family: "楷体", "KaiTi", "STKaiti", "华文楷体", serif;
    font-weight: 700;
    letter-spacing: 10px;
    color: #e8c060;
    -webkit-text-fill-color: #e8c060;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: none;
    text-shadow:
        0 0 12px rgba(232, 180, 60, 0.9),
        0 0 30px rgba(200, 140, 20, 0.5),
        2px 2px 0 rgba(0, 0, 0, 0.85),
        -1px -1px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 18px;
    position: relative;
}

.site-slogan::after {
    content: "";
    display: block;
    width: 320px;
    height: 1px;
    background: linear-gradient(to right, transparent, #ffd700 30%, #fff8cc 50%, #ffd700 70%, transparent);
    margin: 10px auto 0;
}

/* ========== 书卷 ========== */
.scroll-wrapper {
    width: 1400px;
    height: 540px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.scroll-bg {
    width: 100%;
    height: 100%;
    background-image: url('../images/scroll.png');
    background-size: 123% 100%;
    background-position: left top;
    background-repeat: no-repeat;
    position: absolute;
    top: -35px;
    left: 0;
}

.scroll-content {
    position: absolute;
    top: 105px;
    bottom: 95px;
    left: 174px;
    right: 174px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
}

.scroll-divider-line {
    background: linear-gradient(to bottom, transparent, #b8943a 10%, #b8943a 90%, transparent);
    width: 1px;
    align-self: stretch;
    margin: 0 -30px 80px;
}

.scroll-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 60px 16px;
    gap: 7px;
    margin-top: -10px;
}

.scroll-panel-title {
    font-size: 24px;
    color: #6b1a00;
    font-weight: bold;
    letter-spacing: 6px;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", "SimSun", serif;
    flex-shrink: 0;
    text-shadow: 0 1px 0 rgba(255, 200, 100, 0.4);
    margin-top: 10px;
}

.scroll-panel-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.scroll-panel:first-child .scroll-panel-form {
    gap: 30px;
}

.scroll-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.scroll-form-label {
    font-size: 13px;
    color: #5c1800;
    min-width: 62px;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: 1px;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", serif;
}

.scroll-form-input,
.scroll-form-select {
    flex: 1;
    height: 30px;
    border: 1px solid #c9a227;
    border-radius: 3px;
    background: rgba(255, 253, 240, 0.92);
    padding: 0 8px;
    font-size: 12px;
    color: #3a1a00;
    outline: none;
    min-width: 0;
    max-width: 210px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.scroll-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8943a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-color: rgba(255, 253, 240, 0.92);
    padding-right: 24px;
}

.scroll-form-input:focus,
.scroll-form-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}

.scroll-form-hint {
    font-size: 12px;
    color: #8b4010;
    text-align: center;
    letter-spacing: 1px;
    flex-shrink: 0;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", serif;
}

.scroll-btn-red {
    width: 58%;
    height: 40px;
    border: 1px solid rgba(212, 150, 60, 0.5);
    border-radius: 20px;
    background: linear-gradient(to bottom, #c0281a 0%, #8a1008 100%);
    color: #ffd890;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 5px;
    cursor: pointer;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", serif;
    box-shadow: 0 3px 10px rgba(120, 0, 0, 0.45);
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 25px;
}

.scroll-btn-red:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.scroll-btn-red:active {
    transform: translateY(1px);
}

.scroll-btn-gold {
    width: 58%;
    height: 40px;
    border: 1px solid rgba(180, 120, 10, 0.4);
    border-radius: 20px;
    background: linear-gradient(to bottom, #f0c84a 0%, #c09008 100%);
    color: #3a1000;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 5px;
    cursor: pointer;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", serif;
    box-shadow: 0 3px 10px rgba(160, 100, 0, 0.4);
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(255, 200, 80, 0.4);
    margin-top: 10px;
}

.scroll-btn-gold:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.scroll-btn-gold:active {
    transform: translateY(1px);
}

/* ========== 3. 通用区块标题 ========== */
.section-title {
    font-size: 26px;
    color: transparent;
    background: linear-gradient(to bottom, #ffffff 0%, #ffe566 25%, #ffd700 55%, #c8860a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 22px;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", "SimSun", serif;
    font-weight: bold;
    text-shadow: none;
    filter: drop-shadow(2px 2px 0 rgba(60, 10, 0, 0.9)) drop-shadow(0 0 16px rgba(255, 160, 0, 0.4));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-title::before,
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #ffd700 60%, #fff8cc);
    flex-shrink: 0;
    filter: none;
}

.section-title::after {
    background: linear-gradient(to left, transparent, #ffd700 60%, #fff8cc);
}

/* ========== 四大维度卡片 ========== */
.cards-section {
    width: 1100px;
    margin: -40px auto 0;
    padding: 0 20px;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.card {
    width: 24%;
    position: relative;
    background: linear-gradient(160deg, #8a1c1c 0%, #5a0e0e 100%);
    border: 2px solid #dcb367;
    border-radius: 8px;
    padding: 3px;
    box-sizing: border-box;
    color: #dcb367;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.card-inner-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(220, 179, 103, 0.45);
    border-radius: 6px;
    box-sizing: border-box;
    padding: 36px 16px 22px;
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-top-label {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 230, 150, 0.85);
    letter-spacing: 3px;
    white-space: nowrap;
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
}

.card-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    border: 1px solid rgba(220, 179, 103, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.35);
    color: #dcb367;
    font-family: "STKaiti", "KaiTi", serif;
    flex-shrink: 0;
}

.card-title {
    font-size: 28px;
    color: #f5e098;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", "SimSun", serif;
    letter-spacing: 5px;
    text-shadow: 0 0 14px rgba(220, 179, 103, 0.5), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.card-subtitle {
    font-size: 13px;
    color: rgba(255, 225, 140, 0.9);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.card-score {
    font-size: 15px;
    font-weight: bold;
    color: #f5e098;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    width: 100%;
}

.card-divider::before,
.card-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 179, 103, 0.55));
}

.card-divider::after {
    background: linear-gradient(to left, transparent, rgba(220, 179, 103, 0.55));
}

.card-divider-diamond {
    width: 5px;
    height: 5px;
    background: #dcb367;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.card-desc {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(240, 215, 155, 0.9);
    text-align: left;
    width: 100%;
    font-family: "Songti SC", "STSong", "SimSun", serif;
}

.card-desc p {
    margin: 0;
}

/* ========== 4. 用户好评 ========== */
.review-section {
    width: 1100px;
    margin: 32px auto 0;
    padding: 0 20px;
}

.review-track-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.review-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee-scroll 24s linear infinite;
}

.review-track:hover {
    animation-play-state: paused;
}

.review-cards {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.review-card {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #9a2020 0%, #6a1010 100%);
    border-radius: 10px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #dcb367 30%, #f5e098 50%, #dcb367 70%, transparent);
}

.review-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 179, 103, 0.5) 40%, rgba(220, 179, 103, 0.5) 60%, transparent);
}

.review-card-border-l,
.review-card-border-r {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
}

.review-card-border-l {
    left: 0;
    background: linear-gradient(to bottom, #dcb367, rgba(220, 179, 103, 0.2) 50%, rgba(220, 179, 103, 0));
}

.review-card-border-r {
    right: 0;
    background: linear-gradient(to bottom, #dcb367, rgba(220, 179, 103, 0.2) 50%, rgba(220, 179, 103, 0));
}

.review-card-body {
    padding: 20px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid #dcb367;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #dcb367;
    font-family: "STKaiti", "KaiTi", serif;
    background: radial-gradient(circle at 40% 35%, #7a2020, #3a0808);
    box-shadow: 0 0 10px rgba(220, 179, 103, 0.25);
    position: relative;
    overflow: hidden;
}

.review-avatar::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 22px;
    background: rgba(220, 179, 103, 0.12);
    border-radius: 50% 50% 0 0;
}

.review-avatar-text {
    position: relative;
    z-index: 1;
    margin-top: -6px;
}

.review-name {
    font-size: 13px;
    color: #f0d88a;
    margin-bottom: 4px;
    letter-spacing: 1px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: bold;
}

.review-star {
    color: #f5c518;
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.review-role {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid rgba(220, 179, 103, 0.6);
    border-radius: 20px;
    font-size: 11px;
    color: #dcb367;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.18);
}

.review-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 179, 103, 0.45), transparent);
    margin: 0 auto 10px;
}

.review-content {
    font-size: 11.5px;
    line-height: 1.75;
    color: rgba(255, 235, 190, 0.88);
    text-align: left;
    width: 100%;
}

/* ========== 5. 易经八卦 ========== */
.bagua-section {
    width: 1100px;
    margin: 32px auto 44px;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.bagua-text {
    flex: 1;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(220, 179, 103, 0.55);
    border-radius: 6px;
    padding: 32px 36px;
    position: relative;
}

.bagua-text::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    border-top: 2px solid #dcb367;
    border-left: 2px solid #dcb367;
}

.bagua-text::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #dcb367;
    border-right: 2px solid #dcb367;
}

.bagua-corner-tr {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-top: 2px solid #dcb367;
    border-right: 2px solid #dcb367;
    pointer-events: none;
}

.bagua-corner-bl {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #dcb367;
    border-left: 2px solid #dcb367;
    pointer-events: none;
}

.bagua-title {
    font-size: 28px;
    color: #f5e098;
    letter-spacing: 5px;
    margin-bottom: 5px;
    font-family: "STKaiti", "KaiTi", "FangSong", "STFangsong", "STSong", "SimSun", serif;
    text-shadow: 2px 2px 0 rgba(60, 10, 0, 0.8), 0 0 20px rgba(255, 200, 60, 0.4);
}

.bagua-subtitle {
    font-size: 12px;
    color: rgba(220, 179, 103, 0.65);
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-left: 2px;
}

.bagua-title-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.bagua-title-divider::before,
.bagua-title-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(220, 179, 103, 0.6), transparent);
}

.bagua-title-divider::after {
    background: linear-gradient(to left, rgba(220, 179, 103, 0.6), transparent);
}

.bagua-title-divider span {
    width: 5px;
    height: 5px;
    background: #dcb367;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.bagua-desc {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 230, 180, 0.88);
    text-align: justify;
}

.bagua-points {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.bagua-point {
    font-size: 12px;
    color: #c8a060;
    display: flex;
    align-items: center;
    gap: 7px;
}

.bagua-point::before {
    content: "◆";
    color: #dcb367;
    font-size: 8px;
    flex-shrink: 0;
}

.bagua-img-wrap {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bagua-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bagua-radiate {

    0%,
    100% {
        filter:
            drop-shadow(0 0 4px rgba(255, 210, 80, 0.6)) drop-shadow(0 0 10px rgba(220, 160, 0, 0.4)) drop-shadow(0 0 20px rgba(180, 100, 0, 0.2));
    }

    50% {
        filter:
            drop-shadow(0 0 12px rgba(255, 240, 120, 1)) drop-shadow(0 0 30px rgba(255, 200, 60, 0.85)) drop-shadow(0 0 55px rgba(220, 150, 0, 0.65)) drop-shadow(0 0 90px rgba(180, 100, 0, 0.35));
    }
}

.bagua-spin-wrap {
    width: 260px;
    height: 260px;
    animation: bagua-spin 12s linear infinite;
}

.bagua-img {
    width: 260px;
    height: 260px;
    background-image: url('../images/taiji.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: bagua-radiate 2s ease-in-out infinite;
}

/* ========== Flatpickr 中国风覆盖 ========== */
.flatpickr-calendar {
    background: #fffef2;
    border: 1px solid #c9a227;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(120, 60, 0, 0.25);
    font-family: "Microsoft YaHei", sans-serif;
}

.flatpickr-months {
    background: linear-gradient(to bottom, #8a1008, #6a0808);
    border-radius: 5px 5px 0 0;
}

.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #ffd890;
    fill: #ffd890;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: #ffd890;
    font-weight: bold;
}

.flatpickr-current-month input.cur-year {
    color: #ffd890;
    font-weight: bold;
}

.flatpickr-weekdays {
    background: #f5e8c0;
}

span.flatpickr-weekday {
    color: #8b4513;
    font-weight: bold;
    font-size: 12px;
}

.flatpickr-day {
    color: #5c1800;
    border-radius: 4px;
}

.flatpickr-day:hover {
    background: #f5d878;
    border-color: #c9a227;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: linear-gradient(to bottom, #c0281a, #8a1008);
    border-color: #8a1008;
    color: #ffd890;
}

.flatpickr-day.today {
    border-color: #c9a227;
    color: #8b1a00;
    font-weight: bold;
}

.fp-shichen-wrap {
    padding: 8px 10px 10px;
    background: #fffef2;
    border-top: 1px solid #e8d090;
    border-radius: 0 0 5px 5px;
}

.fp-shichen-wrap label {
    font-size: 11px;
    color: #8b4513;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.fp-shichen-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.fp-shichen-btn {
    padding: 3px 0;
    font-size: 11px;
    text-align: center;
    border: 1px solid #c9a227;
    border-radius: 3px;
    background: #fff8e7;
    color: #6b3010;
    cursor: pointer;
    transition: all 0.15s;
}

.fp-shichen-btn:hover {
    background: #f5d878;
}

.fp-shichen-btn.active {
    background: linear-gradient(to bottom, #c0281a, #8a1008);
    color: #ffd890;
    border-color: #8a1008;
}

/* ========== 日期输入框 ========== */
.date-input-wrap {
    flex: 1;
    max-width: 210px;
    position: relative;
}

.date-input-wrap input {
    width: 100%;
    height: 30px;
    border: 1px solid #c9a227;
    border-radius: 3px;
    background: rgba(255, 253, 240, 0.92);
    padding: 0 28px 0 8px;
    font-size: 12px;
    color: #3a1a00;
    outline: none;
    cursor: pointer;
}

.date-input-wrap::after {
    content: "📅";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
}

/* ========== Radio 性别选择 ========== */
.radio-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    max-width: 220px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-dot {
    width: 16px;
    height: 16px;
    border: 1.5px solid #c9a227;
    border-radius: 50%;
    background: rgba(255, 253, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.radio-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.radio-item input[type="radio"]:checked+.radio-dot {
    border-color: #8a1008;
    background: rgba(255, 240, 220, 0.95);
}

.radio-item input[type="radio"]:checked+.radio-dot::after {
    background: #c0281a;
}

.radio-label {
    font-size: 12px;
    color: #5c1800;
    user-select: none;
}

/* ========== 响应式：平板（≤1280px） ========== */
@media (max-width: 1280px) {
    body {
        min-width: 0;
    }

    .scroll-wrapper {
        width: 100%;
    }

    .cards-section,
    .review-section,
    .bagua-section {
        width: 100%;
        box-sizing: border-box;
    }

    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        flex: 0 0 calc(50% - 18px);
        max-width: calc(50% - 18px);
    }
}

/* ========== 响应式：手机（≤768px） ========== */
@media (max-width: 768px) {
    body {
        min-width: 0;
    }

    /* Header */
    .header {
        padding: 0 16px;
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: 54px;
    }

    .header-logo {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-nav {
        gap: 14px;
    }

    .header-nav a {
        font-size: 12px;
    }

    /* 口号 */
    .site-slogan {
        font-size: clamp(22px, 6vw, 38px);
        letter-spacing: 4px;
        padding: 0 12px;
    }

    /* 书卷区 */
    .scroll-wrapper {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .scroll-bg {
        display: none;
    }

    .scroll-content {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 16px;
        background: linear-gradient(160deg, #2a0c06, #180604);
        border: 1px solid rgba(180, 130, 40, 0.4);
        border-radius: 8px;
        margin: 0 12px;
    }

    .scroll-divider-line {
        width: 80%;
        height: 1px;
        margin: 12px auto;
        align-self: center;
        background: linear-gradient(to right, transparent, #b8943a, transparent);
    }

    .scroll-panel {
        padding: 0 16px 12px;
        gap: 8px;
    }

    /* 四大维度卡片 */
    .cards-section,
    .review-section,
    .bagua-section {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
        min-width: 140px;
    }

    /* 八卦区 */
    .bagua-section {
        flex-direction: column;
        gap: 20px;
    }

    .bagua-img-wrap {
        width: 160px;
        margin: 0 auto;
    }

    .bagua-spin-wrap,
    .bagua-img {
        width: 160px;
        height: 160px;
    }

    /* 测名弹窗 */
    .measure-modal {
        width: 95vw;
    }
}

/* ========== 专属起名 Tab ========== */
.naming-tab-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #c9a227;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 标题与Tab同行 */
.scroll-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    flex-shrink: 0;
}

.naming-tab {
    padding: 6px 22px;
    font-size: 13px;
    font-family: "STKaiti", "KaiTi", serif;
    letter-spacing: 1px;
    cursor: pointer;
    background: rgba(255, 253, 240, 0.8);
    color: #8a6020;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.naming-tab.active {
    background: linear-gradient(to bottom, #f5d78e, #c9a227);
    color: #4a2408;
    font-weight: bold;
}

.naming-tab:not(.active):hover {
    background: rgba(245, 215, 142, 0.3);
}

/* ========== 胶囊按钮组（字数偏好）========== */
.capsule-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.capsule-btn {
    padding: 3px 12px;
    border: 1px solid #c9a227;
    border-radius: 14px;
    background: rgba(255, 253, 240, 0.8);
    color: #6b3a10;
    font-size: 12px;
    font-family: "STKaiti", serif;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.capsule-btn.active {
    background: linear-gradient(to bottom, #f5d78e, #c9a227);
    color: #4a2408;
    font-weight: bold;
    border-color: #a07800;
}

/* ========== 风格多选标签 ========== */
.style-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.style-tag {
    padding: 3px 10px;
    border: 1px solid #c9a227;
    border-radius: 14px;
    background: rgba(255, 253, 240, 0.8);
    color: #6b3a10;
    font-size: 12px;
    font-family: "STKaiti", serif;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.style-tag.active {
    background: linear-gradient(to bottom, #f5d78e, #c9a227);
    color: #4a2408;
    font-weight: bold;
    border-color: #a07800;
}

/* ========== 老外起名提示条 ========== */
.foreigner-hint {
    background: rgba(245, 215, 142, 0.2);
    border: 1px dashed rgba(200, 162, 50, 0.6);
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #8a6020;
    line-height: 1.6;
}

.foreigner-hint .hint-en {
    color: #aaa;
    font-size: 10px;
}

/* ========== 起汉语名全宽书卷布局 ========== */
.scroll-content-foreigner {
    position: absolute;
    top: 85px;
    bottom: 75px;
    left: 240px;
    right: 280px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.foreigner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 80px;
    padding-top: 10px;
}

.foreigner-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.foreigner-col-title {
    font-size: 18px;
    font-family: "STKaiti", "KaiTi", serif;
    color: #6b1a00;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(180, 130, 30, 0.3);
    padding-bottom: 6px;
}

/* 老外表单标签宽度加大以适应英文 */
.fg-label {
    min-width: 100px !important;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* 老外表单输入框宽度放开 */
.fg-input {
    width: 250px;
    max-width: none !important;
    flex: none;
}

#birthdate-foreigner {
    width: 250px;
}


/* 底部按钮居中 */
.foreigner-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 0 0;
}

#scroll-foreigner .scroll-btn-gold {
    width: 280px;
    letter-spacing: 2px;
}

/* 导航激活态 */
.header-nav .nav-link.active {
    color: #fff;
    font-weight: bold;
}