/* ========================================
   如浩传世 - 移动端完整样式（弹窗美化+功能增强版）
   适配：手机端全页面 / 暗黑金复古风格 / 大尺寸交互友好
======================================== */
/* 1. 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #0d0907;
    color: #c2b49c;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}
/* 2. 通用装饰组件 */
.diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #b88646;
    transform: rotate(45deg);
    margin: 0 8px;
    vertical-align: middle;
}
.section {
    padding: 20px 15px;
}
.section-title {
    text-align: center;
    font-size: 18px;
    color: #d4af67;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
}
.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, #b88646);
}
.section-title::before { left: 10px; }
.section-title::after {
    right: 10px;
    background: linear-gradient(to right, #b88646, transparent);
}
/* 3. 顶部Logo导航栏 */
.site-header {
    background: #120c08;
    border-bottom: 2px solid #2a1f15;
    padding: 12px 0;
    text-align: center;
}
.main-logo {
    height: 36px;
    margin: 0 auto;
}
.header-slogan {
    color: #e8c987;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 15px;
    font-style: italic;
    text-shadow: 0 0 8px rgba(232, 201, 135, 0.3);
}
.header-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 0 10px;
}
.nav-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #b88646;
    background: #261a10;
    color: #d4af67;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s;
}
.nav-btn-active {
    background: linear-gradient(180deg, #d94242 0%, #b82020 45%, #8b1010 100%);
    color: #ffe8b0 !important;
    border-color: #b82020 !important;
}
/* 4. 招募Banner区 */
.banner {
    padding: 25px 15px;
    text-align: center;
    background: linear-gradient(180deg, #1a120a 0%, #0d0907 100%);
}
.banner-title {
    font-size: 22px;
    color: #d4af67;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(212, 175, 103, 0.3);
    font-weight: 500;
}
.banner-subtitle {
    font-size: 14px;
    color: #e6c880;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.banner-desc {
    font-size: 13px;
    color: #c2b49c;
}
/* 5. 福利领取页专属样式（放大优化核心） */
.reward-section {
    padding: 20px 14px;
    max-width: 560px;
    margin: 0 auto;
}
.reward-panel {
    display: block;
    margin-bottom: 26px;
}
.reward-panel:last-child {
    margin-bottom: 0;
}
/* 卡片主体：内边距加大，更宽松 */
.reward-card {
    position: relative;
    background: #1a1410;
    border: 2px solid #b88646;
    padding: 28px 22px 24px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    transition: all 0.25s ease;
}
.reward-card::before,
.reward-card::after,
.reward-card .corner-bl,
.reward-card .corner-br {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #b88646;
}
.reward-card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.reward-card::after { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.reward-card .corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.reward-card .corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.reward-card:active {
    transform: scale(0.98);
    border-color: #e6c070;
}
/* 二维码区域：尺寸放大，更清晰 */
.reward-qrcode {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #2a1f15;
}
.reward-qrcode img {
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    border: 2px solid #b88646;
    padding: 5px;
    background: #fff;
    border-radius: 3px;
}
.reward-qrcode p {
    color: #d4af67;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.5;
}
.reward-qrcode .group-num {
    color: #ffe8b0;
    font-weight: bold;
    font-size: 15px !important;
}
/* 礼包标题：字号加大 */
.reward-info h3 {
    color: #ffe8b0;
    font-size: 20px;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    padding-bottom: 12px;
}
.reward-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b88646, transparent);
}
/* 奖励列表：字号加大，行高更松 */
.reward-desc {
    margin-bottom: 20px;
    padding: 0 4px;
}
.reward-desc p {
    position: relative;
    padding-left: 14px;
    margin-bottom: 10px;
    color: #c2b49c;
    font-size: 16px;
    line-height: 1.8;
}
.reward-desc p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 3px;
    height: 16px;
    background: #b88646;
    border-radius: 2px;
}
/* 表单区域：输入框整体加高加大 */
.form-item {
    margin-bottom: 16px;
}
.form-item label {
    display: block;
    color: #d4af67;
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 2px;
}
.input-wrap {
    position: relative;
}
.input-wrap .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #887755;
}
.input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    border: 2px solid #b88646;
    background: #0c0906;
    color: #fff;
    font-size: 16px;
    outline: none;
    border-radius: 3px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.input-wrap input:focus {
    border-color: #ffe8b0;
    box-shadow: 0 0 10px rgba(212, 175, 103, 0.4);
}
.error-tip {
    color: #ff6666;
    font-size: 13px;
    margin: 8px 0;
    text-align: center;
    min-height: 18px;
}
/* 领取按钮：加高加宽，触屏更易点击 */
.submit-btn {
    width: 100%;
    height: 58px;
    margin: 8px 0 12px;
    background: linear-gradient(180deg, #d94242 0%, #b82020 45%, #8b1010 100%);
    color: #ffe8b0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
    box-shadow: 0 0 12px rgba(200, 46, 46, 0.4);
    transition: all 0.2s;
}
.submit-btn:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}
.submit-btn:disabled {
    filter: grayscale(0.5);
    cursor: not-allowed;
}
.tip {
    text-align: center;
    color: #887755;
    font-size: 13px;
    line-height: 1.6;
}
/* 领取成功结果框：同步放大 */
.result-box {
    margin-top: 22px;
    padding: 22px 20px;
    background: #0f0a06;
    border: 1px solid #b88646;
    border-radius: 3px;
    text-align: center;
}
.result-box h4 {
    color: #ffe8b0;
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 500;
}
.result-box p {
    color: #c2b49c;
    margin-bottom: 8px;
    font-size: 15px;
}
.code-text {
    color: #ffe8b0;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 22px;
    font-family: Consolas, monospace;
    margin: 12px 0;
    padding: 14px;
    background: #1a1410;
    border: 1px dashed #b88646;
    border-radius: 3px;
    user-select: all;
    -webkit-user-select: all;
}
/* ========== 6. 通用弹窗美化（核心新增） ========== */
.modal-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #1a1410;
    border: 2px solid #b88646;
    padding: 28px 24px 24px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-card::before,
.modal-card::after,
.modal-card .modal-corner-bl,
.modal-card .modal-corner-br {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #b88646;
}
.modal-card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.modal-card::after { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.modal-card .modal-corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.modal-card .modal-corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.modal-title {
    color: #ffe8b0;
    font-size: 20px;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px dashed #2a1f15;
}
.modal-content {
    color: #c2b49c;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
}
.modal-code {
    color: #ffe8b0;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    padding: 16px;
    margin: 10px 0 20px;
    background: #0c0906;
    border: 1px dashed #b88646;
    border-radius: 3px;
    font-family: Consolas, monospace;
    user-select: all;
    -webkit-user-select: all;
}
.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-btn-primary,
.modal-btn-secondary {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn-primary {
    background: linear-gradient(180deg, #d94242 0%, #b82020 45%, #8b1010 100%);
    color: #ffe8b0;
    box-shadow: 0 0 10px rgba(200, 46, 46, 0.3);
}
.modal-btn-primary:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}
.modal-btn-secondary {
    background: transparent;
    color: #d4af67;
    border: 2px solid #b88646;
}
.modal-btn-secondary:active {
    background: rgba(184, 134, 70, 0.1);
    transform: scale(0.98);
}
/* 引导弹窗专属优化 */
#wxGuideModal .reward-card {
    margin: 0 auto;
    max-width: 400px;
}
/* 7. 底部页脚 */
.site-footer {
    background: #0d0907;
    border-top: 1px solid #2a1f15;
    padding: 20px 15px;
    margin-top: 10px;
}
.footer-inner {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.footer-qrcodes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.qrcode-item {
    text-align: center;
}
.qrcode-item img {
    width: 56px;
    height: 56px;
    margin: 0 auto 5px;
    border: 1px solid #3a2b1e;
    padding: 3px;
    background: #fff;
}
.qrcode-item p {
    font-size: 12px;
    color: #887755;
}
.kf-link {
    display: block;
    color: #d4af67;
}
.kf-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #3a2b1e;
    padding: 3px;
    background: #1a1410;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.footer-logo {
    margin: 10px 0;
}
.footer-logo img {
    height: 28px;
    margin: 0 auto;
}
.footer-switch {
    margin: 10px 0;
}
.footer-switch a {
    color: #d4af67;
    font-size: 13px;
}
.footer-icp {
    margin: 10px 0;
}
.footer-icp a {
    color: #887755;
    font-size: 12px;
    text-decoration: none;
}
.footer-notice {
    color: #665544;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 10px;
}
/* 8. 全局金色选中效果 */
::selection {
    background: #d4af67;
    color: #120d09;
    text-shadow: none;
}
::-moz-selection {
    background: #d4af67;
    color: #120d09;
    text-shadow: none;
}
/* 图片点击轻微缩放 */
.qrcode-item:active img,
.reward-qrcode:active img,
.footer-logo:active img,
.main-logo:active {
    transform: scale(1.04);
}
/* 按钮/链接聚焦金色边框 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4af67;
    outline-offset: 2px;
}
