/* --- 全局样式与变量定义 --- */
:root {
    --primary-color: #3D5A80;  /* 高级感的深蓝色 */
    --success-color: #2ECC71;  /* 清新的成功绿 */
    --warning-color: #F39C12;  /* 明确的警告黄 */
    --error-color:   #E74C3C;  /* 沉稳的错误红 */
    --light-bg:      #F4F6F9;  /* 柔和的背景灰 */
    --text-color:    #2C3E50;  /* 易读的深灰蓝 */
    --border-color:  #EAECEF;  /* 精致的边框灰 */
    --white-color:   #FFFFFF;
}

/* --- 基础重置与页面布局 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--light-bg); color: var(--text-color); margin: 0;
    display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; box-sizing: border-box;
}
.container { width: 100%; max-width: 420px; }

/* --- 查询表单样式 --- */
.query-form {
    background: var(--white-color); padding: 40px 30px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.query-form h2 { margin: 0 0 25px 0; font-size: 22px; font-weight: 600; text-align: center; color: var(--primary-color); }
.query-form input[type="text"] {
    width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 16px; margin-bottom: 20px; box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s;
}
.query-form input[type="text"]:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.1); }
.query-form button {
    width: 100%; padding: 15px; border-radius: 8px; border: none; background-color: var(--primary-color); color: var(--white-color);
    font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.3s, transform 0.1s;
}
.query-form button:hover { background-color: #314a6b; }
.query-form button:active { transform: scale(0.98); }

/* --- 查询结果卡片样式 --- */
.result-box {
    background: var(--white-color); padding: 30px 35px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); text-align: center;
}
.result-box h1 { font-size: 22px; margin: 0 0 20px 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; }
.result-box.success h1 { color: var(--success-color); }
.result-box.warning h1 { color: var(--warning-color); }
.result-box.error h1   { color: var(--error-color); }
.result-box p { margin: 12px 0; line-height: 1.7; font-size: 16px; color: #555; }
p.cashback { font-weight: bold; color: var(--error-color); font-size: 18px; }
p.equity { font-weight: bold; color: var(--primary-color); }
p.contact { font-size: 14px; color: #777; }
.brand-logo { max-width: 150px; height: auto; margin-bottom: 25px; }

/* --- 独立的二维码区域 --- */
.qr-code-wrapper-standalone {
    background: var(--white-color); padding: 25px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); text-align: center; margin-top: 25px;
}
.wechat-qr { width: 140px; height: 140px; margin-top: 10px; border-radius: 8px; border: none !important; }

/* --- 模态弹窗与链接 --- */
/* --- 方案C最终版：呼吸光晕动画 (修正文字颜色) --- */
.info-link {
    font-size: 12px;
    font-weight: 600;
    /* 关键修复：确保文字颜色始终为白色，以在蓝色背景上脱颖而出 */
    color: var(--white-color) !important; 
    background: none;
    border: none;
    padding: 5px 12px; /* 微调内边距，使其更像一个按钮 */
    border-radius: 5px;
    margin-left: 8px;
    cursor: pointer;
    text-decoration: none;
    position: relative; 
    z-index: 1;
    transition: transform 0.2s ease;
}
.info-link:hover {
    transform: scale(1.05); /* 增加悬停放大效果 */
}
/* 创建动画的光晕伪元素 */
.info-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    background-color: var(--primary-color);
    animation: pulse 2.5s infinite;
    z-index: -1;
}
/* 定义呼吸动画 */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(61, 90, 128, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(61, 90, 128, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(61, 90, 128, 0);
    }
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center; padding: 20px; }
.modal-content { position: relative; background-color: var(--white-color); margin: auto; padding: 30px 35px; border: 1px solid #888; width: 100%; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border-radius: 12px; animation: fadeIn 0.3s; text-align: left; border-top: 4px solid var(--primary-color); }
@keyframes fadeIn { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }
.close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; position: absolute; top: 10px; right: 20px; }
.close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; }
.modal-content h3 { margin: 0 0 15px 0; font-size: 18px; color: var(--primary-color); }
.modal-content p { font-size: 15px; line-height: 1.6; color: #555; margin-bottom: 15px; }
.modal-content ul { list-style-type: none; padding-left: 0; }
.modal-content ul li { font-size: 14px; line-height: 1.8; color: #555; padding-left: 20px; position: relative; margin-bottom: 10px; }
.modal-content ul li::before { content: "✔"; color: var(--success-color); position: absolute; left: 0; top: 0; }
.back-link-wrapper { margin-top: 25px; text-align: center; }
.back-link { text-decoration: none; color: var(--primary-color); font-size: 15px; font-weight: 500; transition: color 0.3s; }
.back-link:hover { text-decoration: underline; color: #314a6b; }