/* Magic2027 测算平台 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}
.container { max-width: 750px; margin: 0 auto; background: #fff; min-height: 100vh; }

/* Header */
.header {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: #fff;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-inner { display: flex; align-items: center; gap:10px; }
.logo { display: flex; align-items: center; color: #fff; text-decoration: none; }
.logo-icon { font-size: 24px; margin-right: 8px; }
.logo-text { font-size: 18px; font-weight: bold; }
.nav { display:flex;gap:7px;overflow-x:auto;flex:1;scrollbar-width:none;padding:3px 1px; }
.nav::-webkit-scrollbar{display:none}
.nav a { flex:0 0 auto;color:#fff;text-decoration:none;font-size:13px;font-weight:600;line-height:1;padding:9px 11px;border:1px solid rgba(255,255,255,.36);border-radius:18px;background:rgba(255,255,255,.12);box-shadow:0 1px 3px rgba(75,36,8,.14) }
.nav a:hover,.nav a:focus-visible { background:#fff;color:#9b4e16;outline:none; }

/* Main */
.main { padding: 16px; }

/* Footer */
.footer {
    background: #2c2c2c;
    color: #999;
    padding: 24px 16px;
    margin-top: 30px;
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #999; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copyright { text-align: center; font-size: 12px; line-height: 1.8; }
.footer-copyright a { color: #999; text-decoration: none; }
.disclaimer { color: #666; margin-top: 8px; }

/* 通用卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e6d3;
    display: flex;
    align-items: center;
}
.card-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #D2691E;
    margin-right: 10px;
    border-radius: 2px;
}

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-label .required { color: #e74c3c; margin-right: 4px; }
.form-input, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color 0.3s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #D2691E;
    background: #fff;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* 性别选择 */
.gender-group { display: flex; gap: 12px; }
.gender-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.gender-option.active {
    border-color: #D2691E;
    background: #fef5e7;
    color: #8B4513;
}
.gender-option .icon { font-size: 24px; display: block; margin-bottom: 4px; }

/* 按钮 */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: #fff;
    color: #D2691E;
    border: 2px solid #D2691E;
}
.btn-wechat {
    background: #07c160;
    color: #fff;
}
.btn-alipay {
    background: #1677ff;
    color: #fff;
}

/* 价格 */
.price-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef5e7 0%, #fdf0d5 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}
.price-now {
    font-size: 36px;
    color: #e74c3c;
    font-weight: bold;
}
.price-now .symbol { font-size: 18px; }
.price-origin {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

/* 八字排盘 */
.bazi-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.bazi-table th, .bazi-table td {
    padding: 12px 8px;
    border: 1px solid #e8e8e8;
}
.bazi-table th {
    background: #fef5e7;
    color: #8B4513;
    font-weight: 600;
}
.bazi-table .ganzhi {
    font-size: 22px;
    font-weight: bold;
    color: #8B4513;
}
.bazi-table .nayin {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.bazi-table .shishen {
    font-size: 12px;
    color: #D2691E;
}

/* 五行 */
.wuxing-bar {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin: 12px 0;
}
.wuxing-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}
.wuxing-jin { background: #c0392b; }
.wuxing-mu { background: #27ae60; }
.wuxing-shui { background: #2980b9; }
.wuxing-huo { background: #e67e22; }
.wuxing-tu { background: #f39c12; }

/* 报告章节 */
.report-section { margin-bottom: 24px; }
.report-section h3 {
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #D2691E;
}
.report-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}
.report-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.report-info-item {
    background: #fafafa;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.report-info-item .label { color: #999; margin-right: 8px; }
.report-info-item .value { color: #333; font-weight: 500; }

/* 锁内容（未付费） */
.locked-content {
    position: relative;
    overflow: hidden;
}
.locked-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, #fff);
}
.lock-overlay {
    text-align: center;
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 12px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.lock-icon { font-size: 40px; margin-bottom: 12px; }
.lock-text { color: #666; margin-bottom: 16px; font-size: 14px; }

/* 提示 */
.tip {
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #795548;
    margin-bottom: 16px;
}

/* 产品列表 */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-2px); }
.product-icon { font-size: 40px; margin-bottom: 12px; }
.product-name { font-size: 16px; font-weight: bold; margin-bottom: 8px; color: #8B4513; }
.product-desc { font-size: 12px; color: #999; margin-bottom: 12px; line-height: 1.5; }
.product-price { font-size: 20px; color: #e74c3c; font-weight: bold; }
.product-price .symbol { font-size: 14px; }
.product-hot {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.contact-list{display:grid;gap:12px}.contact-item{display:flex;align-items:center;gap:14px;padding:16px;background:#faf7f1;border:1px solid #eee2d1;border-radius:12px;text-decoration:none;color:#333}.contact-item>span{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#a5571b;color:#fff;font-weight:700}.contact-item small,.contact-item strong{display:block}.contact-item small{color:#8a7a68;margin-bottom:3px}.contact-item strong{font-size:15px;word-break:break-all}

/* 响应式 */
@media (max-width: 480px) {
    .header{padding:10px 12px}.nav{gap:6px}.nav a{font-size:12px;padding:8px 10px}
    .logo-text { font-size: 16px; }
    .product-grid { grid-template-columns: 1fr; }
}
