:root {
    --secondary-dark: #16213e;
    --accent-gold: #d4af37;
    --accent-red: #c53a3a;
    --light-bg: #f8f5f1;
    --brown: #8b4513;
    --green: #0d986a;
    --blue: #2d5da1;
    --success-color: #2e7d32;
    --text-primary: #333;
    --text-secondary: #666;
    --danger-color: #c62828;
    --border-radius: 8px;
    /* 财运风格 */
    --wealth-primary: #b8860b;
    --wealth-secondary: #8b6914;
    --wealth-bg: #f9f6f0;
    --wealth-card: #fffef9;
    --wealth-border: #e0d6c2;
    --wealth-text: #5c4b37;

    /* 通用变量 */
    --primary: #b8860b;
    /* 以财运金色为主，兼顾合婚棕色 */
    --primary-dark: #8b4513;
    /* 合婚棕色作为深色 */
    --primary-light: #e6c87c;
    --accent: #a0522d;
    /* 合婚棕色作为强调色 */
    --bg: #f9f6f0;
    --card: #fffef9;
    --text: #333;
    --text-light: #666;
    --border: #e0d6c2;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --good: #27ae60;
    --medium: #f39c12;
    --poor: #c0392b;
    --border-color: #e0d6c2;
}
footer {
    display: none;
}
#back-to-top {
    display: none !important;
}

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

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.caiyun-header {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.target-year {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}

/* 主要内容区 */
.notice-bar {
    background: #fff8e1;
    color: #5d4037;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

main {
    padding: 40px 0;
}

.section_tit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4a017;
}

.section_tit i {
    color: var(--accent-gold);
    font-size: 22px;
}

.section_tit h2 {
    font-size: 24px;
    color: var(--secondary-dark);
}

/* 输入区域样式 */

/* 顶部标题区 - 融合两种风格 */
.page-titl {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.page-titl::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

h1 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 表单容器 - 融合设计 */
.form-container {
    background: var(--card);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-title {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-light);
    display: flex;
    align-items: center;
}

.form-title i {
    margin-right: 12px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 输入组 - 统一风格 */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.input-item {
    flex: 1;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.radio-options {
    display: flex;
    background: #fef8f0;
    border-radius: 8px;
    padding: 4px;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-option input {
    display: none;
}

.radio-label {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.radio-option input:checked+.radio-label {
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--primary);
    margin-bottom: 0 !important;
    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b8860b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    padding-left: 20px;

}

/* 时间选择 */
.time-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.time-select {
    flex: 2;
}

.time-input {
    flex: 1;
}

.note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(184, 134, 11, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.note i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 年份选择特殊样式 */
.year-container {
    background: linear-gradient(135deg, #fef8f0 0%, #fcf5e9 100%);
    border-radius: 10px;
    padding: 25px;
    margin-top: 15px;
    border: 2px solid var(--border);
    text-align: center;
}

.year-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.year-input-container input {
    width: 150px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    background: white;
}

/* 测算按钮 - 融合风格 */
.calculate-btn-container {
    text-align: center;
    margin-top: 20px;
}

.calculate-btn {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
    letter-spacing: 1px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(139, 69, 19, 0.4);
}

/* 倒计时 */
.countdown-banner {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e53935 100%);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 10px 0 40px;
    animation: puls 2s infinite;
    font-weight: bold;
}

@keyframes puls {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}


/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* 基本信息网格 */
.mingli-card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.jichuxinx {
    margin-bottom: 40px;
}

.mingli-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.row-label {
    font-size: 14px;
    color: var(--text-light);
}

.row-note {
    font-size: 12px;
    color: var(--accent);
    margin-top: 3px;
}

.row-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.wuxing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.wuxing-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wuxing-wang {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.wuxing-xiang {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.wuxing-xiu {
    background: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
}

.wuxing-qiu {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

.wuxing-si {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* 付费解锁卡片 - 提前展示 */
.premium-card {
    background: linear-gradient(135deg, #1a1a2e, var(--secondary-dark));
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.premium-title {
    font-size: 26px;
    color: var(--accent-gold);
}

.premium-badge {
    background-color: var(--accent-red);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.feature-icon {
    color: var(--accent-gold);
    font-size: 22px;
    margin-top: 3px;
}

.feature-text h4 {
    margin-bottom: 5px;
    font-size: 17px;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.pricing-section {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 25px;
}

.pricing-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
}

.current-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--accent-gold);
}

.price-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--accent-gold), #b8941f);
    color: #1a1a1a;
    border: none;
    border-radius: var(--border-radius);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

/* 悬浮付费按钮 */
.floating-pay-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-subtext {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-subtext i {
    color: var(--good);
    margin-right: 8px;
}

/* 查看详情按钮 */
.view-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    font-size: 14px;
}

.view-detail-btn:hover {
    text-decoration: underline;
}

/* 计数器动画 */
.counter {
    font-weight: 700;
    color: var(--accent-gold);
}

/* 主要结果区域 */
.main-result {
    background: var(--card);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-title {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-light);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 12px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 四柱信息 */
.sizhu-container {
    margin-bottom: 40px;
}

.sizhu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}


.sizhu-item {
    background: #fef8f0;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.sizhu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.sizhu-header {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.sizhu-content {
    margin-top: 15px;
}

.sizhu-tgdz {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
}

.sizhu-god {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 15px;
    padding: 6px 12px;
    background: rgba(160, 82, 45, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.sizhu-detail {
    text-align: left;
    margin-top: 15px;
    font-size: 14px;
}

.sizhu-detail div {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

/* 喜用神信息 */
.xiyongshen-card {
    background: linear-gradient(135deg, #fef8f0 0%, #fcf5e9 100%);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--border);
    margin-bottom: 40px;
}

.xiyongshen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.xiyongshen-title {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: bold;
}

.qiangruo-badge {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

.xiyongshen-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.xiyongshen-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.xiyongshen-item h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.xiyongshen-item h4 i {
    margin-right: 10px;
    color: var(--primary);
}

/* 五行能量图 */
.wuxing-chart {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.wuxing-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wuxing-bar-value {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--primary-light));
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 1s ease;
}

.wuxing-bar-label {
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary-dark);
    text-align: center;
}

.wuxing-bar-score {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: bold;
    color: var(--text);
}

/* 月度运势板块 */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-light);
}

.month-tit {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* 月份选择器 */
.month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef8f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.current-month {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-dark);
    min-width: 120px;
    text-align: center;
}

.month-stats {
    display: flex;
    gap: 20px;
}

.stat-badge {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    min-width: 120px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* 月度运势详情 */
.month-details {
    background: #fef8f0;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border);
}

.month-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
}

.month-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-dark);
}

.month-shensha {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shensha-badge {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 运势分类 */
.yunshi-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .yunshi-categories {
        grid-template-columns: 1fr;
    }
}

.yunshi-category {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.yunshi-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    padding: 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fef8f0, #fcf5e9);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
}

.category-subtitle {
    font-size: 14px;
    color: var(--accent);
    margin-top: 5px;
    font-weight: 500;
}

.category-content {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.category-content::-webkit-scrollbar {
    width: 6px;
}

.category-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.yunshi-text {
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

.yunshi-text p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.yunshi-text p:last-child {
    margin-bottom: 0;
}

/* 神煞重点标记 */
.shensha-highlight {
    color: var(--accent);
    font-weight: 600;
    position: relative;
    padding: 0 4px;
}

.shensha-highlight::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(160, 82, 45, 0.2);
    z-index: -1;
}

/* 吉凶标记 */
.luck-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.good-luck {
    background: rgba(46, 204, 113, 0.1);
    color: var(--good);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.medium-luck {
    background: rgba(243, 156, 18, 0.1);
    color: var(--medium);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.poor-luck {
    background: rgba(231, 76, 60, 0.1);
    color: var(--poor);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* 底部总结 */
.month-summary {
    background: linear-gradient(135deg, #fef8f0, #fcf5e9);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.summary-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-dark);
}

.summary-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
}

.summary-highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 10px 16px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    background: none;
}

/* 响应式调整 */
@media (max-width: 768px) {

    input[type="text"],
    input[type="number"],
    select {
        font-size: 13px;
    }

    h1 {
        font-size: 24px;
    }

    .note {
        font-size: 12px;
    }

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

    .yunshi-categories {
        grid-template-columns: 1fr;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .form-title {
        font-size: 16px;
    }

    .input-group .radio-label {
        font-size: 12px;
    }

    .form-container {
        padding: 15px 15px 25px;
    }

    .year-container {
        padding: 12px;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .calculate-btn-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 70%, transparent);
        z-index: 100;
        backdrop-filter: blur(10px);
    }

    .calculate-btn {
        font-size: 16px;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .month-grid,
    .day-list {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px 14px;
    }

    .countdown-banner {
        font-size: 13px;
    }

    main.container {
        padding-bottom: 130px;
    }

    .section_tit h2 {
        font-size: 16px;
    }

    .info-value {
        font-size: 14px;
    }

    .info-grid {
        gap: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

    .main-result {
        padding: 15px;
        border: none;
    }

    .xiyongshen-card {
        padding: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title i {
        width: auto;
        height: auto;
        color: var(--primary);
        background: none;
    }

    .sizhu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sizhu-tgdz {
        font-size: 20px;
    }

    .sizhu-header {
        font-size: 16px;
    }

    .sizhu-item {
        padding: 14px;
    }

    .sizhu-detail div {
        flex-wrap: wrap;
    }

    .sizhu-detail div span:first-child {
        font-weight: bold;
    }

    .sizhu-god {
        font-size: 14px;
    }

    .qiangruo-badge {
        font-size: 10px;
    }

    .xiyongshen-title {
        font-size: 16px;
    }

    .xiyongshen-content {
        gap: 16px;
    }

    .main-result p {
        margin-bottom: 6px;
    }

    /* 五行能量图 */
    .wuxing-chart {
        height: 150px;
        gap: 10px;
        margin-top: 15px;
        padding: 15px;
    }

    .wuxing-bar-label {
        font-size: 12px;
        line-height: 1.2;
    }

    .wuxing-bar-score {
        top: -20px;
        font-size: 11px;
    }

    .year-title {
        font-size: 18px;
    }

    .year-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
    }

    .year-stat {
        padding: 12px 10px;
    }

    .year-stat-label {
        font-size: 12px;
    }

    .year-stat-value {
        font-size: 14px;
    }

    .category-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .category-title {
        font-size: 16px;
    }

    .row-label {
        font-size: 13px;
    }

    .row-value {
        font-size: 12px;
    }

    .mingli-grid {
        gap: 12px;
        margin-bottom: 12px;
    }

    .section-header {
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 10px;
    }

    .current-month {
        font-size: 18px;
    }

    .month-selector {
        flex-direction: column;
        gap: 14px;
    }

    .category-content {
        max-height: 300px;
        padding: 16px;
    }

    .category-header {
        padding: 14px;
    }

    .month-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .month-details {
        padding: 14px;
    }

    .yunshi-text {
        font-size: 14px;
    }

    .yunshi-category .category-icon {
        display: none;
    }

    .luck-badge {
        padding: 2px 8px;
        font-size: 10px;
        top: 10px;
        right: 10px;
        border-radius: 4px;
    }

    .category-subtitle {
        font-size: 13px;
    }

    .shensha-badge {
        font-size: 12px;
        padding: 6px 10px;
    }

    .month-stats {
        gap: 10px;
    }

    .stat-badge {
        min-width: 100px;
    }

    .stat-value {
        font-size: 13px;
    }

    .month-summary {
        padding: 16px;
        margin-top: 20px;
    }

    .summary-content {
        font-size: 14px;
    }

    .summary-icon {
        display: none;
    }

    .summary-header {
        justify-content: center;
    }

    .summary-title {
        font-size: 18px;
    }

    .note {
        font-size: 12px;
    }
}