/* 全局样式 */
* {
    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;
    height: 100vh;
    width: 100vw;
    color: #1a1a1a;
    line-height: 1.6;
    overflow: hidden;
    
    /* 禁用移动端默认行为，模拟原生应用 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    overscroll-behavior: none;
}

/* 顶部大广告区域 */
.ad-hero {
    position: relative;
    margin: -24px -20px 20px;
    line-height: 0;
}

/* 底部横线 */
.ad-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

/* 主容器 - 16:9全屏显示 */
.main-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 380px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部广告区域 */
.ad-hero {
    position: relative;
    margin: -16px -16px 12px;
    line-height: 0;
    flex-shrink: 0;
}

/* 底部横线 */
.ad-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

/* 表单容器 - 可滚动 */
#calculationForm {
    flex: 1;
    overflow: hidden;
}

/* 表单项 */
.form-item {
    margin-bottom: 12px;
}

.form-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #573D31;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.form-item input,
.form-item select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d4c8b8;
    border-radius: 6px;
    background: white;
    color: #1a1a1a;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    height: 48px;
}

.form-item input:focus,
.form-item select:focus {
    border-color: #c9a96e;
    background: #faf9f7;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.form-item input::placeholder {
    color: #999;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

/* 农历表单行内的选择器宽度统一 */
#lunarFields .form-row select {
    width: 100%;
    height: 44px;
}

/* 日期选择器 */
.date-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.date-selector select {
    padding: 8px 4px;
    font-size: 14px;
    text-align: center;
    text-align-last: center;
    height: 44px;
}

/* 农历4列日期选择器 */
#lunarFields .date-selector {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
}

/* 主要按钮 */
.btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #573D31 0%, #6b4d3d 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    flex-shrink: 0;
    height: 52px;
    box-shadow: 0 4px 12px rgba(87, 61, 49, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b4d3d 0%, #7d5e4c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 61, 49, 0.4);
}

.btn-primary:active {
    background: linear-gradient(135deg, #4a3228 0%, #573D31 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(87, 61, 49, 0.3);
}

/* 次要按钮 */
.btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    flex-shrink: 0;
}

.btn-secondary:hover {
    background: #ebebeb;
}

.btn-secondary:active {
    background: #e0e0e0;
}

/* 结果卡片 */
.result-card {
    background: white;
}

/* ==================== 运算结果页面 - 命理风格 ==================== */
.result-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        linear-gradient(180deg, #faf9f7 0%, #f5f0e8 50%, #efe6d9 100%);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    color: #2c2c2c;
}

/* 命理风格背景纹理 */
.result-fullscreen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 115, 85, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.result-fullscreen.hidden {
    display: none;
}

.result-container {
    flex: 1;
    padding: 20px 16px;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

/* 结果页面顶部装饰 - 命理风格 */
.result-container::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 4px 0;
    text-align: center;
    font-size: 12px;
    color: #8B7355;
    font-family: "Noto Serif SC", "SimSun", serif;
    letter-spacing: 4px;
    opacity: 0.6;
    white-space: nowrap;
}

/* 用户资料展示区域 - 命理风格 */
.user-info-section {
    background: linear-gradient(145deg, #faf9f7 0%, #f5f0e8 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow:
        0 6px 24px rgba(139, 115, 85, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid #e8dcc8;
    position: relative;
    overflow: hidden;
}

/* 命理风格装饰 - 左上角云纹 */
.user-info-section::before {
    content: '☯';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 32px;
    color: rgba(139, 115, 85, 0.12);
    font-family: serif;
    font-weight: 300;
}

/* 命理风格装饰 - 右下角印章效果 */
.user-info-section::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.user-info-title {
    font-size: 20px;
    font-weight: 700;
    color: #573D31;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding: 8px 0;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    letter-spacing: 4px;
}

/* 标题两侧的命理装饰线 */
.user-info-title::before {
    content: '✦';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9a96e;
    font-size: 12px;
    font-weight: 300;
}

.user-info-title::after {
    content: '✦';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9a96e;
    font-size: 12px;
    font-weight: 300;
    width: auto;
    height: auto;
    background: none;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.user-info-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 115, 85, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.1);
}

.info-label {
    font-size: 13px;
    color: #8B7355;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.info-label::after {
    content: ':';
    color: #c9a96e;
}

.info-value {
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 700;
    text-align: right;
    flex: 1;
    margin-left: 14px;
    font-family: "Noto Serif SC", "SimSun", serif;
    letter-spacing: 0.5px;
}

/* 特殊字段的命理强调 */
.user-info-item:nth-child(7) .info-value,  /* 农历日期 */
.user-info-item:nth-child(8) .info-value,  /* 生肖 */
.user-info-item:nth-child(9) .info-value {  /* 天干地支 */
    color: #b8860b;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .user-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-info-section {
        padding: 20px 16px;
    }

    .user-info-title {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .user-info-title::before,
    .user-info-title::after {
        font-size: 12px;
        left: 10px;
        right: 10px;
    }

    .user-info-item {
        padding: 14px 16px;
        min-height: 46px;
    }
}

/* 八字排盘区域 - 命理风格 */
.bazi-section {
    margin-bottom: 24px;
    margin-top: 40px;
}

.bazi-title {
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 14px;
    padding-left: 20px;
    letter-spacing: 4px;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    position: relative;
}

.bazi-title::before {
    content: '◈';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #c9a96e;
    font-size: 14px;
}

.bazi-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bazi-card {
    text-align: center;
    padding: 16px 10px;
    background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(139, 115, 85, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #e8dcc8;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bazi-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(139, 115, 85, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bazi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

.bazi-label {
    display: block;
    font-size: 13px;
    color: #8B7355;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 3px;
}

.bazi-value-large {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #573D31;
    letter-spacing: 8px;
    line-height: 1.2;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    text-shadow: 1px 1px 0 rgba(201, 169, 110, 0.2);
}

/* 五行分布区域 - 命理风格 */
.wuxing-section {
    margin-bottom: 24px;
}

.wuxing-title {
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 14px;
    padding-left: 20px;
    letter-spacing: 4px;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    position: relative;
}

.wuxing-title::before {
    content: '◈';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #8B7355;
}

.wuxing-bars-large {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    background: white;
    padding: 20px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    position: relative;
}

.wuxing-bars-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.wuxing-item-large {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-container-large {
    width: 100%;
    max-width: 45px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.bar-fill-large {
    width: 100%;
    border-radius: 0 0 2px 2px;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 4px;
}

.bar-fill-large.gold { background: linear-gradient(180deg, #D4AF37 0%, #B8860B 100%); }
.bar-fill-large.wood { background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%); }
.bar-fill-large.water { background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%); }
.bar-fill-large.fire { background: linear-gradient(180deg, #FF5722 0%, #E64A19 100%); }
.bar-fill-large.earth { background: linear-gradient(180deg, #8D6E63 0%, #6D4C41 100%); }

.wuxing-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.wuxing-name-large {
    font-size: 22px;
    font-weight: 700;
    color: #8B7355;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.wuxing-count {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.wuxing-status-large {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 1px;
}

.wuxing-status-large[data-status="缺失"] {
    background: #f5f5f5;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.wuxing-status-large[data-status="偏弱"] {
    background: #f5f5f5;
    color: #d97706;
    border: 1px solid #d97706;
}

.wuxing-status-large[data-status="适中"] {
    background: #f5f5f5;
    color: #16a34a;
    border: 1px solid #16a34a;
}

.wuxing-status-large[data-status="过旺"] {
    background: #f5f5f5;
    color: #b45309;
    border: 1px solid #b45309;
}

/* 缺五行警示横幅 - 清爽命理风格 */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #dc2626;
    padding: 20px 22px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
    border: 2px solid #b91c1c;
    position: relative;
    overflow: hidden;
}

.warning-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fca5a5, transparent);
    animation: warningPulse 2s ease-in-out infinite;
    will-change: opacity;
}

@keyframes warningPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.warning-icon {
    font-size: 42px;
    flex-shrink: 0;
    animation: warningIconPulse 1.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes warningIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin-bottom: 6px;
    letter-spacing: 1px;
    font-family: "Noto Serif SC", "SimSun", serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.warning-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* 命主信息横幅 - 清爽命理风格 */
.info-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: white;
    padding: 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.info-item {
    text-align: center;
    position: relative;
}

.info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #8B7355, transparent);
}

.info-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

.info-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    font-family: "Noto Serif SC", "SimSun", serif;
}

/* 分析结果区域 - 清爽命理风格 */
.analysis-section {
    flex: 1;
    overflow: visible;
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 分析卡片 */
.analysis-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf9f7 100%);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 3px 12px rgba(139, 115, 85, 0.1);
    border: 1px solid #e8dcc8;
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.analysis-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.analysis-text {
    font-size: 14px;
    color: #333;
    line-height: 2;
}

.analysis-text p {
    margin-bottom: 12px;
}

.analysis-text strong {
    color: #8B7355;
    font-weight: 600;
}

/* 缺点说明大卡片 - 清爽命理风格 */
.weakness-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf9f7 100%);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.12);
    border: 1px solid #e8dcc8;
    position: relative;
}

.weakness-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: white;
    border-bottom: 2px solid #8B7355;
    position: relative;
}

.weakness-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.weakness-icon {
    font-size: 24px;
    color: #8B7355;
}

.weakness-title {
    font-size: 17px;
    font-weight: 700;
    color: #8B7355;
    letter-spacing: 1px;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.weakness-desc-large {
    padding: 18px;
    font-size: 14px;
    color: #333;
    line-height: 2;
}

/* 补救建议区域 - 清爽命理风格 */
.remedy-section {
    background: white;
    border-radius: 4px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    position: relative;
}

.remedy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.remedy-title {
    font-size: 17px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8B7355;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.remedy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.remedy-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
    min-height: 52px;
}

.remedy-card:hover {
    background: #f5f5f5;
    border-color: #8B7355;
    transform: translateY(-2px);
}

.remedy-icon-large {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.remedy-content {
    flex: 1;
    min-width: 0;
}

.remedy-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.remedy-value-large {
    font-size: 13px;
    color: #2c2c2c;
    line-height: 1.7;
    word-break: break-word;
    font-weight: 500;
}

/* 职业建议 - 清爽命理风格 */
.career-section {
    background: white;
    border-radius: 4px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    position: relative;
}

.career-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.career-title {
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 14px;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.career-tag {
    padding: 10px 18px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.career-tag:hover {
    background: #8B7355;
    border-color: #8B7355;
    color: white;
    transform: translateY(-2px);
}

/* 底部按钮 - 清爽命理风格 */
.btn-secondary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    background: white;
    border: 2px solid #8B7355;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-secondary:active {
    background: #8B7355;
    color: white;
    transform: translateY(2px);
}

.block-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

/* 底部装饰 */
.footer {
    display: none;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 响应式优化 - 小屏幕 */
@media (max-width: 500px) {
    .bazi-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
    will-change: opacity;
}

/* ==================== 计算动画遮罩层 - 重新设计 ==================== */
.calculation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1512 0%, #2c2825 50%, #1a1512 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.calculation-overlay.hidden {
    display: none !important;
}

/* 背景星星 */
.calc-bg-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #D4AF37, transparent),
        radial-gradient(2px 2px at 40px 70px, #D4AF37, transparent),
        radial-gradient(2px 2px at 50px 160px, #D4AF37, transparent),
        radial-gradient(2px 2px at 90px 40px, #D4AF37, transparent),
        radial-gradient(2px 2px at 130px 80px, #D4AF37, transparent);
    background-size: 200px 200px;
    animation: starsMove 20s linear infinite;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* 背景粒子 */
.calc-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(139, 115, 85, 0.1) 0%, transparent 40%);
    animation: particlesFloat 8s ease-in-out infinite;
}

@keyframes particlesFloat {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 背景光晕 */
.calc-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.calculation-content {
    text-align: center;
    color: #D4AF37;
    padding: 40px;
    position: relative;
    z-index: 10;
}

/* 主太极图 */
.main-taiji-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.main-taiji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(90deg, #2c2825 50%, #D4AF37 50%);
    animation: mainTaijiSpin 4s linear infinite;
    overflow: hidden;
}

.taiji-yin {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #2c2825;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.taiji-yang {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #D4AF37;
    border-radius: 50%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.taiji-dot-small {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #2c2825;
    border-radius: 50%;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.taiji-dot-large {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #D4AF37;
    border-radius: 50%;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes mainTaijiSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 太极环 */
.taiji-ring-1,
.taiji-ring-2,
.taiji-ring-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.taiji-ring-1 {
    width: 180px;
    height: 180px;
    animation: ringRotate 6s linear infinite reverse;
}

.taiji-ring-2 {
    width: 200px;
    height: 200px;
    animation: ringRotate 8s linear infinite;
}

.taiji-ring-3 {
    width: 220px;
    height: 220px;
    animation: ringRotate 10s linear infinite reverse;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 八卦环 */
.bagua-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    animation: baguaRotate 20s linear infinite;
}

@keyframes baguaRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.bagua-item {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 28px;
    color: rgba(212, 175, 55, 0.6);
    transform: translate(-50%, -50%);
}

.bagua-1 { transform: translate(-50%, -50%) translateY(-160px); }
.bagua-2 { transform: translate(-50%, -50%) rotate(45deg) translateY(-160px); }
.bagua-3 { transform: translate(-50%, -50%) rotate(90deg) translateY(-160px); }
.bagua-4 { transform: translate(-50%, -50%) rotate(135deg) translateY(-160px); }
.bagua-5 { transform: translate(-50%, -50%) rotate(180deg) translateY(-160px); }
.bagua-6 { transform: translate(-50%, -50%) rotate(225deg) translateY(-160px); }
.bagua-7 { transform: translate(-50%, -50%) rotate(270deg) translateY(-160px); }
.bagua-8 { transform: translate(-50%, -50%) rotate(315deg) translateY(-160px); }

/* 五行环 */
.wuxing-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    animation: wuxingRotate 15s linear infinite reverse;
}

@keyframes wuxingRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.wuxing-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.4);
}

.wood-item { transform: translate(-50%, -50%) translateY(-190px); color: #228B22; }
.fire-item { transform: translate(-50%, -50%) rotate(72deg) translateY(-190px); color: #DC143C; }
.earth-item { transform: translate(-50%, -50%) rotate(144deg) translateY(-190px); color: #B8860B; }
.metal-item { transform: translate(-50%, -50%) rotate(216deg) translateY(-190px); color: #D4AF37; }
.water-item { transform: translate(-50%, -50%) rotate(288deg) translateY(-190px); color: #0064B8; }

/* 标题 */
.calc-title-main {
    margin-bottom: 40px;
}

.calc-title-text {
    font-size: 32px;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 8px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.calc-title-sub {
    font-size: 14px;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 4px;
}

/* 新进度条 */
.calc-progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    position: relative;
}

.calc-progress-bar-new {
    width: 100%;
    height: 6px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.calc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B7355, #D4AF37, #FFD700);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.8); }
}

.calc-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    animation: progressWave 2s linear infinite;
}

@keyframes progressWave {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.calc-progress-percent {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #D4AF37;
    margin-top: 10px;
}

/* 新步骤指示 */
.calc-steps-new {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
}

.calc-step-item {
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.calc-step-item.active {
    opacity: 1;
}

.calc-step-item.completed {
    opacity: 0.7;
}

.calc-step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 28px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.calc-step-item.active .calc-step-icon {
    background: linear-gradient(135deg, #8B7355, #D4AF37);
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: stepPulse 1.5s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.calc-step-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #D4AF37;
    white-space: nowrap;
}

.calc-step-line {
    width: 40px;
    height: 2px;
    background: rgba(212, 175, 55, 0.3);
    transition: all 0.5s ease;
}

.calc-step-item.completed + .calc-step-line,
.calc-step-item.completed .calc-step-line {
    background: rgba(212, 175, 55, 0.7);
}

.calc-status-text {
    font-size: 16px;
    color: rgba(212, 175, 55, 0.8);
    margin-top: 20px;
    letter-spacing: 2px;
}

/* ==================== 命中缺五行弹窗 - 专业命理风格 ==================== */
.fate-hint-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

.fate-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 24, 22, 0.95);
    backdrop-filter: blur(15px);
}

.fate-hint-popup.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@keyframes fateHintFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fate-hint-dialog {
    background: linear-gradient(180deg, #2C2620 0%, #1A1816 50%, #2C2620 100%);
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fateHintFadeIn 0.5s ease-out;
}

/* 边框装饰 */
.fate-border-top,
.fate-border-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.fate-border-top {
    top: 15px;
}

.fate-border-bottom {
    bottom: 15px;
}

.fate-border-left,
.fate-border-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 80%;
    background: linear-gradient(180deg, transparent, #D4AF37, transparent);
}

.fate-border-left {
    left: 15px;
}

.fate-border-right {
    right: 15px;
}

/* 四角装饰 */
.fate-corner-tl,
.fate-corner-tr,
.fate-corner-bl,
.fate-corner-br {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.fate-corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.fate-corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.fate-corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.fate-corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* 印章 */
.fate-seal {
    display: inline-block;
    padding: 10px 25px;
    border: 3px solid #DC2626;
    color: #DC2626;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 6px;
    border-radius: 6px;
    text-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
    margin-bottom: 30px;
    animation: fateSealPulse 2s ease-in-out infinite;
    font-family: "Noto Serif SC", "SimSun", serif;
    will-change: transform, opacity, box-shadow;
}

@keyframes fateSealPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.8);
    }
}

.fate-hint-icon {
    font-size: 80px;
    margin-bottom: 25px;
    animation: fateIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    will-change: transform;
}

@keyframes fateIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 1));
    }
}

.fate-hint-title {
    font-size: 36px;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-family: "Noto Serif SC", "SimSun", serif;
    text-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
    line-height: 1.4;
}

.fate-hint-divider {
    width: 80%;
    height: 2px;
    margin: 25px auto;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    position: relative;
}

.fate-hint-divider::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1A1816;
    padding: 0 15px;
    color: #D4AF37;
    font-size: 20px;
}

.fate-hint-remedy {
    font-size: 26px;
    color: #E6DCCA;
    line-height: 1.8;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
    text-shadow: 0 2px 10px rgba(230, 220, 202, 0.3);
}

.fate-hint-footer {
    margin-top: 35px;
    font-size: 14px;
    color: rgba(230, 220, 202, 0.5);
    letter-spacing: 6px;
    font-family: "Noto Serif SC", "SimSun", serif;
}

/* 移动端优化 */
@media (max-width: 500px) {
    .fate-hint-dialog {
        padding: 40px 30px;
        max-width: 90%;
    }

    .fate-hint-title {
        font-size: 28px;
    }

    .fate-hint-remedy {
        font-size: 20px;
    }

    .fate-hint-icon {
        font-size: 60px;
    }

    .fate-seal {
        font-size: 20px;
        padding: 8px 20px;
    }
}

/* ==================== 触摸屏优化 ==================== */
/* 检测触摸屏设备并应用全屏无边框样式 */
@media (pointer: coarse) and (orientation: portrait) {
    /* 移除所有边距和内边距 */
    body {
        padding: 0 !important;
        margin: 0 !important;
        height: 100vh !important;
        width: 100vw !important;
        overflow: hidden !important;
    }
    
    /* 主容器全屏无边框 */
    .main-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }
    
    /* 卡片全屏 */
    .card {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100% !important;
        box-shadow: none !important;
    }
    
    /* 顶部广告区域全宽 */
    .ad-hero {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
    }
    
    /* 确保图片无边框且块级显示 */
    img {
        display: block !important;
        max-width: 100% !important;
        border: none !important;
    }
    
    /* 表单容器全屏 */
    #calculationForm {
        padding: 0 !important;
        margin: 0 !important;
        height: 100% !important;
        overflow-y: auto !important;
        /* 隐藏滚动条 */
        -ms-overflow-style: none !important;  /* IE and Edge */
        scrollbar-width: none !important;     /* Firefox */
    }
    
    /* 隐藏Webkit滚动条 */
    #calculationForm::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 表单项加大触摸目标 */
    .form-item input,
    .form-item select {
        min-height: 56px !important;
        font-size: 18px !important;
        padding: 16px !important;
    }
    
    /* 按钮加大 */
    .btn-primary {
        min-height: 64px !important;
        font-size: 20px !important;
        padding: 20px !important;
        margin-top: 20px !important;
    }
    
    /* 结果页面全屏 */
    .result-fullscreen {
        border-radius: 0 !important;
    }
    
    /* 强制隐藏所有可能的边框和间隙 */
    * {
        box-sizing: border-box !important;
    }
}

/* 针对45寸竖屏触摸屏的额外优化 */
@media (pointer: coarse) and (orientation: portrait) and (min-width: 1200px) {
    /* 进一步加大字体和触摸目标 */
    .form-item label {
        font-size: 17px !important;
        margin-bottom: 10px !important;
    }

    .form-item input,
    .form-item select {
        min-height: 64px !important;
        font-size: 20px !important;
        padding: 20px !important;
    }

    .btn-primary {
        min-height: 72px !important;
        font-size: 22px !important;
        padding: 24px !important;
    }

    .btn-nfc {
        min-height: 72px !important;
        font-size: 22px !important;
        padding: 24px 32px !important;
    }

    .button-row button {
        min-height: 64px !important;
        font-size: 18px !important;
        padding: 18px 24px !important;
    }

    body {
        font-size: 18px;
    }
}

/* ==================== NFC专用页面样式 ==================== */
.nfc-only-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #faf9f7 0%, #f5f3f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.nfc-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 100%;
}

.nfc-title {
    font-size: 36px;
    font-weight: 700;
    color: #573D31;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: "Noto Serif SC", "SimSun", serif;
    letter-spacing: 4px;
}

.nfc-subtitle {
    font-size: 18px;
    color: #8B7355;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ==================== NFC按钮样式 ==================== */
.nfc-section {
    margin: 20px 0;
    text-align: center;
}

.nfc-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.nfc-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.nfc-divider span {
    display: inline-block;
    background: #573D31;
    padding: 0 15px;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.btn-nfc {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    min-height: 60px;
    width: 100%;
    max-width: 300px;
}

.btn-nfc:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-nfc:active {
    transform: translateY(0);
}

.btn-nfc:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nfc-icon {
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.nfc-text {
    font-size: 18px;
}

.nfc-hint {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    opacity: 0.8;
}

.nfc-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    display: none;
}

.nfc-message.error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* NFC指南链接样式 */
.nfc-guide-link {
    margin-top: 8px;
    font-size: 13px;
}

.nfc-guide-link a {
    color: #2196F3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nfc-guide-link a:hover {
    background-color: rgba(33, 150, 243, 0.1);
    text-decoration: underline;
}

.guide-icon {
    font-size: 14px;
}

.guide-text {
    font-size: 13px;
}

/* 触摸屏优化 */
@media (pointer: coarse) and (orientation: portrait) {
    .btn-nfc {
        min-height: 70px !important;
        font-size: 20px !important;
        padding: 20px !important;
        max-width: 100% !important;
    }
    
    .nfc-icon {
        font-size: 28px !important;
    }
    
    .nfc-text {
        font-size: 20px !important;
    }
    
    .nfc-hint {
        font-size: 16px !important;
        margin-top: 12px !important;
    }
    
    .nfc-guide-link {
        font-size: 15px !important;
        margin-top: 10px !important;
    }
    
    .nfc-guide-link a {
        padding: 6px 10px !important;
    }
    
    .guide-icon {
        font-size: 16px !important;
    }
    
    .guide-text {
        font-size: 15px !important;
    }
}

/* ==================== 姓名笔画分析样式 ==================== */
.name-stroke-section {
    background: white;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    position: relative;
}

.name-stroke-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.name-stroke-title {
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 16px;
    padding-left: 20px;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
    position: relative;
}

.name-stroke-title::before {
    content: '◈';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #c9a96e;
}

.name-stroke-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.name-stroke-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #fafafa;
    padding: 14px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.name-stroke-item {
    text-align: center;
    position: relative;
}

.name-stroke-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #8B7355, transparent);
}

.stroke-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

.stroke-value {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #8B7355;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.name-stroke-characters {
    background: white;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.stroke-characters-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.stroke-characters-list {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.stroke-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    font-family: "Noto Serif SC", "SimSun", serif;
}

.stroke-item .char {
    font-size: 24px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 4px;
}

.stroke-count {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.name-stroke-description {
    background: white;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.stroke-desc-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.stroke-desc-text {
    font-size: 13px;
    color: #333;
    line-height: 1.8;
}

.luck-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.luck-badge.吉 {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.luck-badge.平 {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #e65100;
}

.luck-badge.凶 {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .name-stroke-header {
        grid-template-columns: 1fr;
    }

    .name-stroke-item:not(:last-child)::after {
        display: none;
    }

    .name-stroke-item {
        padding: 8px 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .name-stroke-item:last-child {
        border-bottom: none;
    }

    .stroke-characters-list {
        gap: 8px;
    }
}

/* 详细分析区域样式 */
.analysis-detail-section {
    margin-top: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #8B7355;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #8B7355;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 8px 0;
    text-align: justify;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .analysis-detail-section {
        padding: 12px;
        margin-top: 15px;
    }

    .detail-title {
        font-size: 15px;
    }

    .detail-content {
        font-size: 13px;
        line-height: 1.7;
    }

    .stroke-item {
        padding: 8px 12px;
    }

    .stroke-item .char {
        font-size: 20px;
    }
}

/* ==================== 五格剖象法样式 ==================== */
.five-grid-section {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(145deg, #faf8f5 0%, #fff5f0 100%);
    border-radius: 12px;
    border: 1px solid #e8dcc8;
}

.section-title-with-icon {
    font-size: 16px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Noto Serif SC", "SimSun", serif;
    letter-spacing: 2px;
}

.section-icon {
    font-size: 20px;
    color: #c9a96e;
}

.five-grid-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.five-grid-card {
    background: white;
    border-radius: 8px;
    padding: 12px 8px;
    border: 1px solid #e8dcc8;
    text-align: center;
    transition: all 0.3s ease;
}

.five-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
}

.grid-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.grid-name {
    font-size: 13px;
    font-weight: 700;
    color: #8B7355;
    letter-spacing: 1px;
}

.grid-number {
    font-size: 14px;
    font-weight: 700;
    color: #573D31;
}

.grid-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.grid-wuxing {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wuxing-icon {
    font-size: 16px;
}

.grid-luck {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 1px;
}

.grid-luck-good {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.grid-luck-neutral {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #e65100;
}

.grid-luck-bad {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.grid-footer {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* ==================== 三才配置样式 ==================== */
.three-talents-section {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(145deg, #faf9f7 0%, #f5f0e8 100%);
    border-radius: 12px;
    border: 1px solid #e8dcc8;
}

.three-talents-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.three-talents-title {
    font-size: 15px;
    font-weight: 700;
    color: #8B7355;
    margin: 0;
    font-family: "Noto Serif SC", "SimSun", serif;
    letter-spacing: 2px;
}

.three-talents-luck {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.three-talents-luck.good {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.three-talents-luck.neutral {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #e65100;
}

.three-talents-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.talent-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.talent-label {
    font-size: 11px;
    color: #8B7355;
    font-weight: 600;
    letter-spacing: 1px;
}

.talent-wuxing {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: white;
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
    transition: all 0.3s ease;
}

.talent-wuxing:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.talent-arrow {
    font-size: 20px;
    color: #c9a96e;
    font-weight: 700;
}

.three-talents-analysis {
    background: white;
    padding: 14px;
    border-radius: 8px;
    border-left: 4px solid #c9a96e;
    font-size: 13px;
    color: #333;
    line-height: 1.8;
}

/* 移动端响应式 */
@media (max-width: 480px) {
    .five-grid-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .five-grid-card {
        padding: 10px 6px;
    }

    .grid-name {
        font-size: 11px;
    }

    .grid-number {
        font-size: 12px;
    }

    .grid-wuxing {
        font-size: 11px;
    }

    .grid-luck {
        font-size: 10px;
        padding: 2px 6px;
    }

    .grid-footer {
        font-size: 10px;
    }

    .three-talents-display {
        gap: 8px;
    }

    .talent-wuxing {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }

    .talent-arrow {
        font-size: 16px;
    }

    .three-talents-analysis {
        font-size: 12px;
        padding: 12px;
    }
}

/* ==================== 问事栏样式 ==================== */
.fortune-section {
    background: white;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    position: relative;
}

.fortune-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B7355, transparent);
}

.fortune-title {
    font-size: 15px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 14px;
    padding-left: 16px;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
    position: relative;
}

.fortune-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #8B7355;
}

.fortune-bars {
    display: flex;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.fortune-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.fortune-bar:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.fortune-label {
    font-size: 28px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(0,0,0,0.4);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 2px;
    animation: fortune-appear 0.5s ease-out;
}

@keyframes fortune-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 针对浅色背景调整文字颜色 */
.fortune-bar[data-type="中上吉"] .fortune-label {
    color: #333;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* 底部按钮行样式 */
.button-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-row button {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: none;
}

.btn-house {
    background: linear-gradient(135deg, #8d6e63 0%, #a1887f 100%);
}

.btn-house:hover {
    background: linear-gradient(135deg, #a1887f 0%, #bcaaa4 100%);
    transform: translateY(-2px);
}

.btn-lottery {
    background: linear-gradient(135deg, #8B0000 0%, #a52a2a 100%);
}

.btn-lottery:hover {
    background: linear-gradient(135deg, #a52a2a 0%, #b22222 100%);
    transform: translateY(-2px);
}

.button-row button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* 移动端优化 */
@media (max-width: 480px) {
    .fortune-bars {
        height: 80px;
    }

    .fortune-bar {
        /* 占满整个容器 */
    }

    .fortune-label {
        font-size: 20px;
        padding: 8px 14px;
        letter-spacing: 1px;
    }

    .button-row {
        flex-direction: column;
        gap: 10px;
    }

    .button-row button {
        min-height: 48px;
        padding: 14px 18px;
    }

    .remedy-card {
        padding: 14px;
        min-height: 48px;
    }

    .remedy-symbol {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* ==================== 新增模組樣式 (來自 pos機正式上線) ==================== */

/* 五行生剋與命局分析卡片 - 网格布局 */
.detail-cards {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #c9a96e;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.08);
}

.detail-card:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
}

.detail-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #573D31;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-card-content {
    font-size: 13px;
    line-height: 1.8;
    color: #2c2c2c;
}

/* 緊急警告橫幅 */
.urgent-warning-banner-new {
    position: relative;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    border: 3px solid #FFD700;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.4);
    animation: urgentWarningPulse 1.5s ease-in-out infinite;
}

@keyframes urgentWarningPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(220, 20, 60, 0.4);
        border-color: #FFD700;
    }
    50% {
        box-shadow: 0 12px 48px rgba(220, 20, 60, 0.7);
        border-color: #FF0000;
    }
}

.urgent-bg-red {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.1) 0px,
        rgba(255, 0, 0, 0.1) 10px,
        rgba(139, 0, 0, 0.1) 10px,
        rgba(139, 0, 0, 0.1) 20px
    );
    animation: warningStripe 2s linear infinite;
}

@keyframes warningStripe {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.urgent-simple-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.urgent-warning-icon {
    font-size: 64px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: warningIconPulse 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes warningIconPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
}

.urgent-center-content {
    text-align: center;
    flex-shrink: 0;
}

.urgent-wuxing-char {
    font-size: 80px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: wuxingCharFlash 1.5s ease-in-out infinite;
    margin-bottom: 5px;
    line-height: 1;
}

@keyframes wuxingCharFlash {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 50px rgba(255, 215, 0, 1);
        transform: scale(1.05);
    }
}

.urgent-wuxing-name {
    font-size: 32px;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 4px;
    margin-right: 8px;
}

.urgent-wuxing-label {
    font-size: 16px;
    color: rgba(255, 215, 0, 0.8);
    font-weight: 700;
}

.urgent-status-text {
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    border-radius: 20px;
    font-size: 14px;
    color: #FFD700;
    font-weight: 700;
    letter-spacing: 2px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { background: rgba(255, 215, 0, 0.2); }
    50% { background: rgba(255, 215, 0, 0.4); }
}

.urgent-text-content {
    flex: 1;
    text-align: right;
}

.urgent-main-title {
    font-size: 28px;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: titleFlash 2s ease-in-out infinite;
}

@keyframes titleFlash {
    0%, 100% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
    50% { text-shadow: 0 0 25px rgba(255, 215, 0, 1); }
}

.urgent-sub-title {
    font-size: 16px;
    color: #FFF;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.urgent-footer-note {
    font-size: 14px;
    color: #FFD700;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: inline-block;
}

/* 五行生剋與命局分析卡片 */
.detail-cards-section {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #c9a96e;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.08);
}

.detail-card:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
}

.detail-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #573D31;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-card-content {
    font-size: 13px;
    line-height: 1.8;
    color: #2c2c2c;
}

/* 缺失五行詳細區塊 */
.weakness-detail-section {
    background: linear-gradient(145deg, #faf9f7 0%, #fff5f0 100%);
    border: 2px solid #e8dcc8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.1);
}

/* 緊急通知 */
.urgent-notice {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
    animation: urgentNoticePulse 2s ease-in-out infinite;
}

@keyframes urgentNoticePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 24px rgba(220, 20, 60, 0.6);
    }
}

.urgent-notice-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.urgent-notice-content {
    flex: 1;
}

.urgent-notice-title {
    font-size: 18px;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.urgent-notice-text {
    font-size: 15px;
    color: #fff;
    line-height: 1.6;
    font-weight: 500;
}

.defect-title {
    font-size: 18px;
    font-weight: 800;
    color: #8B0000;
    margin-bottom: 16px;
    padding: 12px;
    background: linear-gradient(90deg, #fee2e2, transparent);
    border-left: 4px solid #DC143C;
    letter-spacing: 1px;
}

.defect-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 2px solid;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.defect-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.defect-item.health-defect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.defect-item.wealth-defect {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fff);
}

.defect-item.relationship-defect {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8, #fff);
}

.defect-item.career-defect {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #fff);
}

.defect-icon {
    font-size: 32px;
    flex-shrink: 0;
    font-weight: 300;
    opacity: 0.85;
}

.defect-content {
    flex: 1;
}

.defect-label {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.defect-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
    font-weight: 500;
}

/* 詳細分析建議區塊 */
.detail-rows-section {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e6e8;
    transition: all 0.3s ease;
}

.detail-row:hover {
    border-color: #c9a96e;
    background: #faf9f7;
}

.detail-row .detail-label {
    font-size: 13px;
    font-weight: 700;
    color: #c9a96e;
    min-width: 80px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-row .detail-value {
    font-size: 14px;
    color: #2c2c2c;
    line-height: 1.6;
}

/* 適合與不適合職業區塊 */
.career-advice-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.career-advice-card {
    padding: 14px;
    border-radius: 12px;
    border: 2px solid;
}

.career-advice-card.suitable {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #059669;
    color: #fff;
}

.career-advice-card.avoid {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #DC143C;
    color: #8B0000;
}

.career-advice-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.career-advice-list {
    font-size: 13px;
    line-height: 1.8;
    color: inherit;
}

/* 額外信息區塊 */
.extra-info-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.extra-info-card {
    background: linear-gradient(145deg, #faf9f7 0%, #fff5f0 100%);
    padding: 14px 10px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e8dcc8;
    transition: all 0.3s ease;
}

.extra-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.15);
    border-color: #c9a96e;
}

.extra-info-symbol {
    font-size: 28px;
    margin-bottom: 8px;
    color: #c9a96e;
}

.extra-info-title {
    font-size: 11px;
    color: #8B7355;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.extra-info-value {
    font-size: 14px;
    font-weight: 700;
    color: #573D31;
}

/* 店鋪購買提醒區塊 */
.shop-notice-section {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    animation: shopNoticeGlow 2s ease-in-out infinite;
}

@keyframes shopNoticeGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 8px 28px rgba(251, 191, 36, 0.6);
    }
}

.shop-notice-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: shopIconBounce 1s ease-in-out infinite;
}

@keyframes shopIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.shop-notice-content {
    flex: 1;
}

.shop-notice-title {
    font-size: 20px;
    font-weight: 900;
    color: #92400e;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.shop-notice-text {
    font-size: 15px;
    color: #78350f;
    line-height: 1.6;
    font-weight: 600;
}

/* 響應式調整 */
@media (max-width: 480px) {
    .detail-cards-section {
        grid-template-columns: 1fr;
    }

    .career-advice-section {
        grid-template-columns: 1fr;
    }

    .extra-info-section {
        grid-template-columns: 1fr 1fr;
    }

    .shop-notice-section {
        flex-direction: column;
        text-align: center;
    }

    .career-advice-card {
        padding: 12px;
    }

    .career-advice-title {
        font-size: 13px;
    }

    .career-advice-list {
        font-size: 12px;
    }

    .shop-notice-icon {
        font-size: 40px;
    }

    .shop-notice-title {
        font-size: 18px;
    }

    .shop-notice-text {
        font-size: 14px;
    }
}

    /* 緊急警告橫幅響應式 */
    .urgent-warning-banner-new {
        padding: 20px 15px;
    }

    .urgent-simple-wrapper {
        gap: 15px;
    }

    .urgent-warning-icon {
        font-size: 48px;
    }

    .urgent-wuxing-char {
        font-size: 56px;
    }

    .urgent-wuxing-name {
        font-size: 24px;
    }

    .urgent-wuxing-label {
        font-size: 14px;
    }

    .urgent-status-text {
        padding: 6px 16px;
        font-size: 12px;
    }

    .urgent-main-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .urgent-sub-title {
        font-size: 14px;
    }

    .urgent-footer-note {
        font-size: 12px;
        padding: 4px 10px;
    }

    .urgent-text-content {
        text-align: center;
    }

    .urgent-simple-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
