/* 重置及基础变量 - 维持原版 hunchabao 高亮红 */
:root {
    --theme-red: rgb(227, 28, 36); /* 更正宗的鲜红背景色 */
    --theme-dark-red: #c4121a;
    --theme-red-hover: #f2313a;
    --bg-light: #f5f7fa; 
    --text-dark: #333;
    --text-gray: #666;
    --border-light: #eaeaea;
    --border-focus: #1677FF; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部极简导航栏 (红底白字或全白均可，这里保留红色呼应横幅) */
.top-nav {
    background-color: #fff;
    color: var(--text-dark);
    height: 60px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--theme-red);
}

.logo-icon {
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 15px;
}

.nav-links a.active {
    color: var(--theme-red);
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--theme-red);
}

/* 英雄横幅区域 (Hero Banner) - 核心修改点 */
.hero-banner {
    background: linear-gradient(135deg, var(--theme-red), var(--theme-dark-red));
    padding: 60px 0;
    color: white;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* 左侧宣传文字区 */
.hero-left {
    flex: 1;
    min-width: 300px;
    position: relative; /* 必须为 relative 以支撑内部绝对定位图片 */
}

.banner-bg-img {
    position: absolute;
    bottom: -15%; 
    left: -5%;
    height: 150%; /* 比例调整至 150% */
    width: auto;
    opacity: 0.6; /* 透明度提升（加 0.5，原为 0.1 -> 0.6） */
    mix-blend-mode: multiply; 
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrap {
    position: relative;
    z-index: 2; /* 确保文字在图片上方 */
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: #ffffff; /* 确保纯白 */
}

.hero-subtitle {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 1; /* 移除透明度干扰 */
}

.hero-desc p {
    font-size: 15px;
    margin-bottom: 12px;
    color: #ffffff;
    opacity: 1; /* 移除透明度干扰 */
    display: flex;
    align-items: center;
}

/* 右侧表单卡片 */
.hero-right {
    flex: 0 0 380px;
}

.form-card {
    background: white;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--text-dark);
}

.form-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: bold;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 75px 0 15px; /* 右侧留出两按钮位置 */
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.clear-input {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
    display: none; /* 初始隐藏 */
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    transition: all 0.2s;
    user-select: none;
}

.clear-input:hover {
    color: #999;
    background: #e0e0e0;
}

.toggle-mask {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    opacity: 0.5;
    transition: all 0.2s;
    z-index: 10;
    filter: grayscale(1); /* 强制 Emoji 呈现灰色 */
    color: #999;
}

.toggle-mask:hover {
    opacity: 0.9;
    filter: grayscale(0); /* 悬停时稍微恢复一点或保持灰色，按需调整 */
}

.form-group input:focus {
    border-color: var(--theme-red);
    box-shadow: 0 0 0 2px rgba(227, 28, 36, 0.1);
}

.agreement-box {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
    margin: 15px 0 20px 0;
    white-space: nowrap; /* 强制不换行 */
}

.agreement-box label {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.agreement-box input {
    margin-right: 6px;
}

.agreement-box a {
    color: #1a71e8;
}

.payment-method {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.pay-option {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
}

.pay-icon {
    font-size: 18px;
    margin-right: 5px;
    font-weight: bold;
}

.pay-option.active {
    border-color: var(--border-focus);
    background-color: #f4fafe;
}

.pay-option .check-mark {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    background: var(--border-focus);
    color: white;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    border-top-left-radius: 4px;
}

.pay-option.active .check-mark {
    display: block;
}

.submit-btn {
    width: 100%;
    background-color: var(--theme-red);
    color: white;
    border: none;
    height: 48px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: var(--theme-red-hover);
}

/* 保障特性区 (Banner 正下方) */
.guarantee-section {
    background-color: #9f0d14; /* 深红色过渡带 */
    color: white;
    padding: 20px 0;
}

.guarantee-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.gu-item {
    display: flex;
    align-items: center;
}

.gu-icon {
    font-size: 32px;
    margin-right: 12px;
}

.gu-text h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.gu-text p {
    font-size: 12px;
    opacity: 0.8;
}

/* 主体内容说明区 (下方平铺卡片) */
.main-wrapper {
    margin-top: 40px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    padding: 40px 50px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.role-grid {
    display: flex;
    justify-content: center; /* 恢复居中 */
    gap: 96px; 
    flex-wrap: wrap;
}

.role-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
}

.role-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--theme-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--theme-red);
    margin-bottom: 12px;
    background: #fffafa;
}

.mt-40 { margin-top: 50px; }

.qa-grid {
    display: grid;
    grid-template-columns: repeat(2, auto); 
    justify-content: center; /* 恢复居中 */
    gap: 60px 192px; 
    border-top: 1px dashed var(--border-light);
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.qa-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.qa-icon {
    font-size: 36px;
    color: var(--theme-red);
    margin-right: 15px;
}

.qa-text strong {
    font-size: 16px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.qa-text p {
    font-size: 13px;
    color: #888;
}

/* 底层选项卡 Tabs */
.tabs-container {
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    max-width: 900px; /* 调整限宽以使内部对齐更自然 */
    margin-left: auto;
    margin-right: auto;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.tab-single {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: bold;
    position: relative;
}

.tab-single::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 64px;
    height: 3px;
    background-color: var(--theme-red);
}

.notice-content {
    padding-top: 10px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 2;
}

/* Footer */
.site-footer {
    background: #2b2e33;
    color: #9299a3;
    text-align: center;
    padding: 20px 20px; /* 高度减半 */
    font-size: 13px;
}

.site-footer p {
    margin-bottom: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 320px;
}

.close-modal {
    position: absolute;
    top: 8px; right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--theme-red);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* 样例报告重构样式 */
.sample-report-section {
    background: #fdfdfd;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sample-trigger-wrapper {
    text-align: center;
}

.view-sample-btn {
    background: transparent;
    border: 2px solid var(--theme-red);
    color: var(--theme-red);
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.view-sample-btn:hover {
    background: var(--theme-red);
    color: white;
    box-shadow: 0 4px 12px rgba(227, 28, 36, 0.2);
}

.sample-content-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.4s;
    opacity: 0;
}

.sample-content-box.active {
    max-height: 1000px;
    margin-top: 30px;
    opacity: 1;
}

.sample-inner {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 30px !important;
}

.report-detail {
    background: #fdfdfd;
    padding: 10px;
    border-radius: 4px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0; /* 增大间距 */
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
}

.report-row span {
    color: #666;
}

.report-row strong {
    color: #333;
}

/* 支付弹窗定制样式 */
.payment-modal {
    width: 420px !important;
    padding: 30px !important;
}

.payment-price {
    background: #fdf5f5;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-timer {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    text-align: center;
}

#countdown-timer {
    color: var(--theme-red);
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    background: #fff0f0;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 85px;
    display: inline-block;
}

.price-symbol {
    color: var(--theme-red);
    font-size: 14px;
    margin-left: 10px;
}

.price-amount {
    color: var(--theme-red);
    font-size: 28px;
    font-weight: bold;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.method-item {
    flex: 1;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s;
}

.method-item.active {
    border-color: var(--theme-red);
    background: #fff8f8;
}

.method-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* 使用用户提供的高清图标 */
.wechat { background-image: url('wechat_pay.png'); }
.alipay { background-image: url('alipay_pay.png'); }

.method-item.active .check-mark {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 20px;
    height: 20px;
    background: var(--theme-red);
    border-radius: 8px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-item.active .check-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.payment-qr-container {
    padding: 10px; /* 贴边设计：减少填充 */
    border: 5px solid #eee; /* 增加边框厚度 */
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    display: inline-block;
    margin: 0 auto;
}

.payment-qr-container.wechat-border,
.payment-qr-container.alipay-border {
    border-color: var(--theme-red);
    background: #fffafa; /* 浅红色背景 */
}

#qr-code-box {
    width: 240px; /* 进一步放大 */
    height: 240px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#qr-code-box img {
    width: 100%;
    height: 100%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 二维码失效遮罩层样式 */
.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none; /* 动态通过 JS 控制显示为 flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(2px);
    border-radius: 4px;
}

.refresh-box {
    text-align: center;
}

.refresh-btn {
    margin-top: 10px;
    padding: 8px 18px;
    background: #e31c24; /* 延续主题红 */
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(227, 28, 36, 0.2);
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #c4121a;
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}

/* 响应式适配 */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-right {
        width: 100%;
        max-width: 400px;
    }
    .form-title { text-align: center; }
    .form-group label { text-align: left; }
    .guarantee-grid { justify-content: center; }
    .qa-grid { grid-template-columns: 1fr; }
}

/* 自定义提示框 Toast 样式 */
.toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.toast {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 12px 24px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    animation: toast-in 0.3s ease-out;
    border-left: 4px solid var(--theme-red);
}

.toast.success {
    border-left-color: #52c41a;
}

.toast.error {
    border-left-color: var(--theme-red);
}

.toast-icon {
    font-size: 18px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.out {
    animation: toast-out 0.3s forwards;
}

/* 打印或导出 PDF 时，全局隐藏除报告外的多余按钮、图标和提示文字 */
@media print {
    body * {
        visibility: hidden;
    }
    #reportContentToPdf, #reportContentToPdf * {
        visibility: visible;
    }
    #reportContentToPdf {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .close-modal, .submit-btn, p {
        display: none !important;
    }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}
/* 客服固定按钮容器 */
.customer-service-container {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
}

/* 客服图标按钮 */
.customer-service-btn {
    width: 54px;
    height: 54px;
    background-color: var(--theme-red); /* 改为主题红 */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(227, 28, 36, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #fff;
}

.customer-service-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(227, 28, 36, 0.4);
}

.kf-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 气泡文字提示 */
.customer-service-btn::after {
    content: "联系客服";
    position: absolute;
    right: 70px;
    background: #fff;
    color: #e31c24; /* 文字改成红色 */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transform: translateX(10px);
}

.customer-service-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* 图片预览弹窗 */
.kf-popover {
    display: none;
    position: absolute;
    right: 70px;
    bottom: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1001;
    border: 1px solid #f0f0f0;
    text-align: center;
    transform-origin: right bottom;
    animation: kfPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kf-popover.active {
    display: block;
}

.kf-popover img {
    width: 100%;
    border-radius: 8px;
    display: block;
    user-select: none;
}

.kf-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    line-height: 1;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.kf-close:hover {
    color: #e31c24;
    transform: rotate(90deg);
}

@keyframes kfPopIn {
    from { opacity: 0; transform: scale(0.8) translate(20px, 20px); }
    to { opacity: 1; transform: scale(1) translate(0, 0); }
}

@media (max-width: 768px) {
    .customer-service-container {
        right: 15px;
        bottom: 120px;
    }
    .customer-service-btn {
        width: 48px;
        height: 48px;
    }
    .kf-popover {
        right: 60px;
        width: 180px;
    }
}
