/* ==========================================
   🏛️ 页面基础及全局国风骨架
   ========================================== */
.modern-page {
    color: #222;
    position: relative;
    box-sizing: border-box;
}

/* 🏮 遮罩层：高级徽墨微熏效果 */
.mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 26, 22, 0.4); 
    z-index: 999;
    backdrop-filter: blur(2px); 
}

/* ⛩️ 弹窗容器 */
.tip-modal {
    display: none;
    position: fixed; 
    left: 50%;
    top: 25vh; 
    transform: translateX(-50%); 
    z-index: 1000;
}

/* 📜 中式牌匾画卷实体 */
.modal-content {
    width: 310px;
    background: #fbf9f3; 
    border-radius: 4px; 
    overflow: hidden;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    padding: 8px; 
    border: 1px solid #7c5835;
    box-shadow: 0 16px 36px rgba(40, 30, 20, 0.2), inset 0 0 24px rgba(185, 132, 47, 0.08);
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #d4b170; 
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}

.modal-text {
    padding: 26px 20px 18px 20px; 
    font-size: 16px;
    color: #3a2212; 
    font-weight: bold;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    font-family: "STSong", "STZhongsong", "SimSun", serif;
}

.modal-text::after {
    content: "❖"; 
    display: block;
    font-size: 11px;
    color: #c9a063;
    margin-top: 10px; 
    opacity: 0.7;
    line-height: 1;
}

.modal-close {
    width: calc(100% - 24px); 
    margin: 0 12px 14px 12px;
    border: 1px solid #8e2323;
    height: 44px;
    border-radius: 2px;
    background: linear-gradient(135deg, #b63636 0%, #8c1f1f 100%) !important;
    color: #fffaf5; 
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 4px; 
    text-indent: 4px; 
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(140, 31, 31, 0.25);
    position: relative;
    z-index: 2;
}

.modal-close:active {
    background: #6b1414 !important;
    transform: scale(0.98);
}

/* ==========================================
   🔗 功能按钮区（PC电脑端保持绝对定位，垂直排列）
   ========================================== */
/* ==========================================
   🔗 功能按钮区：右侧垂直堆叠、直角、文字竖排
/* ==========================================
   🔗 用户入口：右侧垂直排列
   ========================================== */
/* ==========================================
   右侧功能入口：竖排圆角书签
   ========================================== */
.btn-group-top {

    position:absolute;

    top:18px;

    right:18px;

    z-index:100;


    display:flex;

    flex-direction:column;

    gap:10px;

}



.agent-entrance-btn,
.order-query-btn {


    writing-mode:vertical-rl;

    text-orientation:mixed;


    width:34px;

    height:76px;


    display:flex;

    justify-content:center;

    align-items:center;


    border-radius:9px;


    color:#fffaf2;


    font-size:12px;


    font-weight:700;


    letter-spacing:2px;


    text-decoration:none;


    box-sizing:border-box;


    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;


}

/* 收藏名字 */
/* 收藏名字 */
/* 收藏名字 */

.agent-entrance-btn {

    background: linear-gradient(180deg,#bc8536 0%,#a97029 100%);

    box-shadow:
        0 3px 8px rgba(169,112,41,.16);

}


/* 结果查询 */

.order-query-btn {

    background: linear-gradient(180deg,#c89a52 0%,#b17b34 100%);

    box-shadow:
        0 3px 8px rgba(177,123,52,.15);

}



/* 鼠标效果 */

.agent-entrance-btn:hover,
.order-query-btn:hover {

    transform:translateX(-5px);


    opacity:.92;


}



/* 点击 */

.agent-entrance-btn:active,
.order-query-btn:active {

    transform:translateX(-2px) scale(.96);

}


/* ==========================================
   🌅 首屏视觉大区（Hero Section）
   ========================================== */
.hero-section {
    text-align: center;
    padding: 34px 0 28px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid rgba(184,134,11,.35);
    border-radius: 999px;
    color: #9a6a1f;
    background: #fffaf0;
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    margin: 0;
    font-size: 44px;
    line-height: 1.18;
    letter-spacing: 3px;
    color: #1f1b16;
    font-family: "STSong", "STZhongsong", "SimSun", serif;
    font-weight: 800;
}

.hero-title span {
    color: #a86f18;
}

.hero-desc {
    max-width: 620px;
    margin: 18px auto 28px;
    color: #70675d;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 1px;
}

/* ==========================================
   📋 测算表单核心样式
   ========================================== */
.modern-form {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(220,220,220,.9) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.08) !important;
    text-align: left;
    box-sizing: border-box; /* 锁死容器边框模型 */
}

.form-group {
    margin-bottom: 20px;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #25211d !important;
    border-left: 3px solid #b8860b !important;
    padding-left: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-group label span {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.input-text {
    width: 100%;
    height: 48px;
    border: 1px solid #e6e0d5 !important;
    border-radius: 14px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: all .2s ease;
}

.input-text:focus {
    border-color: #b8860b !important;
    box-shadow: 0 0 0 4px rgba(184,134,11,.12);
}

/* 👫 男女单选区域弹性栅格 */
.modern-radio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.modern-radio input {
    display: none;
}

.modern-radio .radio-label {
    border: 1px solid #e6e0d5;
    border-radius: 16px;
    padding: 14px 10px; /* 适度缩紧内部填充 */
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    box-sizing: border-box;
    text-align: center;
}

.modern-radio input:checked + .radio-label {
    border-color: #b8860b;
    background: #fffaf0;
    box-shadow: 0 8px 24px rgba(184,134,11,.12);
}

.radio-label .title {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #2b2722;
}

.radio-label .desc {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8a8177;
    white-space: nowrap; /* 保证一行内展现描述 */
}

.modern-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #c89534 0%, #8f5d13 100%) !important;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 14px;
    box-shadow: 0 14px 30px rgba(143,93,19,.25);
    cursor: pointer;
}

/* ==========================================
   🛡️ 其他配套展示区
   ========================================== */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 26px 0 50px;
}
.trust-strip div {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px 10px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,.04);
}
.trust-strip strong {
    display: block;
    color: #9a6a1f;
    font-size: 19px;
    margin-bottom: 5px;
}
.trust-strip span {
    color: #777;
    font-size: 13px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}
.section-kicker {
    color: #b8860b;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.section-head h2 {
    margin: 0;
    font-size: 28px;
    color: #222;
    font-family: "STSong", "STZhongsong", "SimSun", serif;
    letter-spacing: 2px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 42px rgba(0,0,0,.055);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(184,134,11,.08);
}
.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
}
.feature-tag {
    font-size: 21px;
    font-weight: 800;
    color: #2b2722;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: "STSong", "STZhongsong", "SimSun", serif;
}
.feature-body {
    font-size: 14px;
    color: #6d665d;
    line-height: 1.9;
    letter-spacing: 1px;
}

.example-section { margin-top: 34px; }
.example-card {
    background: linear-gradient(135deg, #fffdf8 0%, #fff 100%);
    border: 1px solid rgba(184,134,11,.22);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 18px 48px rgba(0,0,0,.06);
}
.example-title {
    text-align: center;
    color: #9a6a1f;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 25px;
}
.name-example { padding: 24px 0; border-top: 1px solid #f3eedf; }
.name-example:first-of-type { border-top: none; }
.name-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.name-main { font-size: 28px; color: #222; font-weight: 800; letter-spacing: 4px; font-family: "STSong", "STZhongsong", "SimSun", serif; }
.name-badge { font-size: 11px; font-weight: bold; padding: 3px 10px; border-radius: 6px; letter-spacing: 1px; }
.name-badge.grade-ji { background: #fdf2f2; color: #c53030; border: 1px solid rgba(197,48,48,0.25); }
.name-badge.grade-jing { background: #fffaf0; color: #b8860b; border: 1px solid rgba(184,134,11,0.25); }
.name-source { color: #333; font-size: 15px; font-weight: 500; line-height: 1.7; margin-bottom: 8px; }
.highlight-word { color: #ba261a; font-weight: bold; border-bottom: 1px dashed rgba(186,38,26,0.5); padding: 0 2px; }
.name-meaning { color: #61574c; font-size: 14px; line-height: 1.8; letter-spacing: 0.5px; background: rgba(184,134,11,0.02); padding: 10px 14px; border-radius: 8px; border-left: 2px solid rgba(184,134,11,0.15); }
.example-annotation { margin-top: 25px; padding-top: 20px; border-top: 1px dashed #e6e0d5; }
.annotation-title { font-size: 13px; font-weight: bold; color: #8f5d13; margin-bottom: 8px; }
.example-annotation p { margin: 0; color: #7a7165; font-size: 12px; line-height: 1.8; }

.footer-backbone { text-align: center; margin-top: 38px; color: #9a9188; font-size: 13px; letter-spacing: 2px; line-height: 2; }
.footer-legal { margin-top: 42px; padding-top: 24px; border-top: 1px solid #eee; text-align: center; font-size: 12px; color: #888; line-height: 2; }
.footer-legal p { margin: 4px 0; }
.legal-link-row a { color: #9a6a1f; text-decoration: none; margin: 0 6px; }
.legal-link-row a:hover { text-decoration: underline; }
.icp-text { color: #777; letter-spacing: 1px; }
.icp-text a { color: #777; text-decoration: none; }
.icp-text a:hover { color: #777; text-decoration: underline; }
.disclaimer-tip { color: #999; margin-top: 8px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ==========================================
   📱 🌟【重点优化：移动端 H5 专属清洗断点】
   ========================================== */
@media (max-width: 680px) {
/* ==========================================
   🔗 功能按钮区：右侧垂直堆叠、直角、文字竖排、紧凑尺寸
   ========================================== */
/* ==========================================
   H5 右侧功能入口
   保持桌面端风格，缩小尺寸
   ========================================== */

.btn-group-top {

    position:absolute;

    right:12px;

    top:12px;

    z-index:100;


    display:flex;

    flex-direction:column;

    gap:8px;

}


.agent-entrance-btn,
.order-query-btn {


    width:32px;

    height:70px;


    writing-mode:vertical-rl;

    text-orientation:mixed;


    display:flex;

    justify-content:center;

    align-items:center;


    border-radius:8px;


    color:#fffaf2;


    font-size:11px;


    font-weight:700;


    letter-spacing:1px;


    text-decoration:none;


    box-sizing:border-box;


    transition:
        transform .25s ease,
        opacity .25s ease;

}



/* 收藏名字 */

.agent-entrance-btn {

    background:
    linear-gradient(180deg,#bc8536 0%,#a97029 100%);

    box-shadow:
    0 3px 8px rgba(169,112,41,.16);

}



/* 结果查询 */

.order-query-btn {

    background:
    linear-gradient(180deg,#c28d48 0%,#ad7430 100%);

    box-shadow:
    0 3px 8px rgba(173,116,48,.14);

}



.agent-entrance-btn:hover,
.order-query-btn:hover {

    transform:translateX(-3px);

    opacity:.92;

}

    
    /* 清浮动容器防止下方标题错位 */
    .hero-section {
        clear: both;
        padding: 15px 0 20px;
    }

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

    /* 🎯 2. 彻底解决“大卡片出边”：强化 padding 和模型自适应 */
    .modern-form {
        width: calc(100% - 24px) !important; /* 给手机屏幕两侧留出12px安全间距 */
        margin: 0 auto !important;
        padding: 20px 16px !important; /* 缩减内部边距，腾出空间给内容 */
        border-radius: 20px !important;
    }

    /* 🎯 3. 彻底解决“男女卡片出边”：收窄字体和内部间距，避免撑爆 */
    .modern-radio {
        gap: 10px; /* 缩减两张卡片中间的间隙 */
    }
    
    .modern-radio .radio-label {
        padding: 12px 6px; /* 压缩卡片上下内边距 */
    }

    .radio-label .title {
        font-size: 15px; /* 字号略微收紧 */
    }

    .radio-label .desc {
        font-size: 11px;
        transform: scale(0.95); /* 微调字号，防止拼音或长描述挤破外框 */
    }

    /* 弹窗 H5 定位 */
    .tip-modal {
        top: 25vh;
        width: 275px; 
    }
    .modal-content {
        width: 100%; 
        padding: 6px; 
    }
    .modal-text {
        padding: 24px 16px 14px 16px; 
        font-size: 15px;
    }
    .modal-close {
        width: calc(100% - 16px);
        margin: 0 8px 10px 8px;
        height: 40px;
        font-size: 13px;
    }

    .trust-strip, .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 24px;
    }
    .footer-legal {
        padding: 20px 12px 0;
    }
    /* 收藏列表卡片右上角45°斜角吊牌标签 解决重叠问题 */
.history-order-card {
    position: relative;
    overflow: hidden;
}
.history-card-top {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.history-gender {
    position: absolute;
    top: 0;
    right: 0;
    transform: rotate(45deg);
    transform-origin: top right;
    width: 110px;
    text-align: center;
    padding: 4px 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: unset;
}
.card-boy-tag {
    background: #f2f8ff;
    color: #2d84e7;
    border: 1px solid #8abfff;
}
.card-girl-tag {
    background: #fff5f8;
    color: #e86b8d;
    border: 1px solid #f2a2b5;
}
/* 已收藏文字色号替换 */
.status-badge.paid {
    color: #c89534;
}
/* 收藏卡片柔和渐变背景 */
.history-order-card {
    background: linear-gradient(180deg, #fffbf5 0%, #fff9eb 100%);
}

}
