* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 全局SVG默认尺寸约束 */
svg:not([width]):not([height]) {
    width: 1em;
    height: 1em;
}
.report-card-icon svg, .feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.history-block-title svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    vertical-align: middle;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(15, 15, 35, 0.98);
    border-bottom: 1px solid rgba(200, 160, 80, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.nav-logo {
    font-size: 1.3em;
    font-weight: 600;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 30px;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}
.nav-links a:hover { color: #ffd700; }

/* 主容器 */
.main-container {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 15px;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 40px 20px 40px;
    margin-bottom: 30px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 200, 80, 0.15);
    border: 1px solid rgba(255, 200, 80, 0.3);
    border-radius: 50px;
    color: #ffd700;
    font-size: 0.85em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #fff 0%, #ffd700 50%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 6px;
    font-weight: 700;
}
.hero .subtitle {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 10px;
    letter-spacing: 3px;
}
.hero .desc {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 标签页导航 */
.tabs-nav {
    display: flex;
    gap: 3px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}
.tab-btn {
    padding: 12px 15px;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-bottom: none;
    border-radius: 0;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    white-space: nowrap;
}
.tab-btn:first-child { border-radius: 8px 0 0 0; }
.tab-btn:last-child { border-radius: 0 8px 0 0; }
.tab-btn:hover {
    background: rgba(50, 50, 80, 0.8);
    color: #ffd700;
}
.tab-btn.active {
    background: rgba(40, 35, 50, 0.95);
    color: #ffd700;
    border-color: rgba(200, 160, 80, 0.4);
    font-weight: 600;
}
a.tab-btn {
    text-decoration: none;
}

/* 内容卡片 */
.content-card {
    background: rgba(40, 35, 50, 0.95);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 0 0 12px 12px;
    padding: 25px;
    min-height: 600px;
}

/* 标签页内容 */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== 查日历标签 - 深色专业风格 ========== */
.almanac-card {
    background: rgba(25, 25, 40, 0.9);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 8px;
    overflow: hidden;
    color: #e0e0e0;
    font-size: 13px;
}

/* 日期头部 - 左右布局 */
.almanac-top {
    display: grid;
    grid-template-columns: 1fr 280px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.2);
}
.almanac-date-header {
    display: grid;
    grid-template-columns: 45px 1fr 55px;
    padding: 18px 15px;
    background: rgba(30, 30, 50, 0.6);
}
.mobile-top-row {
    display: none;
}
.date-left {
    text-align: center;
    border-right: 1px solid rgba(200, 160, 80, 0.2);
    padding-right: 12px;
}
.date-left .weekday {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.date-left .constellation {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
    letter-spacing: 3px;
}
.date-center {
    text-align: center;
    padding: 0 15px;
}
.date-center .solar-date {
    color: #c8a050;
    font-size: 12px;
    margin-bottom: 3px;
}
.date-center .day-number {
    font-size: 52px;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    margin: 5px 0;
}
.date-center .lunar-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}
.yiji-extra {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 15px 5px;
    font-size: 13px;
    border-top: 1px solid rgba(200, 160, 80, 0.15);
}
.extra-jieqi {
    color: #6bdc96;
}
.extra-moon {
    color: #b8b8ff;
}
.extra-huangdao {
    color: #ffd700;
}
.extra-heidao {
    color: rgba(180, 180, 200, 0.8);
}
.extra-festival {
    color: #ff8888;
}
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    margin-top: 8px;
}
.date-nav-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #c8a050;
    border-radius: 50%;
    background: rgba(200, 160, 80, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #c8a050;
    transition: all 0.2s;
}
.date-nav-btn:hover {
    background: rgba(255, 200, 80, 0.3);
    border-color: #ffd700;
    color: #ffd700;
}
.date-right {
    text-align: center;
    border-left: 1px solid rgba(200, 160, 80, 0.2);
    padding-left: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.date-right .ganzhi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}
.date-right .ganzhi-item span:first-child {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
}
.date-right .ganzhi-item span:last-child {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* 宜忌区域 - 右侧 */
.yiji-area {
    padding: 15px;
    background: rgba(20, 20, 35, 0.8);
    border-left: 1px solid rgba(200, 160, 80, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.yiji-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.yiji-row:last-child { margin-bottom: 0; }
.yiji-label {
    width: 24px;
    height: 24px;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 10px;
}
.yiji-label.yi {
    border-color: #c41e3a;
    color: #c41e3a;
}
.yiji-label.ji {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.7);
}
.yiji-text {
    flex: 1;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding-top: 2px;
}

/* 时辰宜忌表 */
.shichen-area {
    border-top: 1px solid rgba(200, 160, 80, 0.2);
}
.shichen-header {
    background: linear-gradient(90deg, rgba(140, 100, 60, 0.6), rgba(100, 80, 50, 0.6));
    color: #ffd700;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    letter-spacing: 3px;
}
.shichen-list {
    background: rgba(20, 20, 35, 0.5);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.shichen-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
    border-right: 1px solid rgba(200, 160, 80, 0.1);
    font-size: 14px;
}
.shichen-row:nth-child(2n) {
    border-right: none;
}
.shichen-row:nth-last-child(-n+2) { border-bottom: none; }
.shichen-name-col {
    background: rgba(30, 30, 50, 0.5);
    border-right: 1px solid rgba(200, 160, 80, 0.1);
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shichen-name-text {
    writing-mode: vertical-rl;
    font-size: 17px;
    color: #ffd700;
    letter-spacing: 5px;
    font-weight: 600;
}
.shichen-content-col {
    padding: 10px 12px;
}
.shichen-info-line {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    font-size: 13px;
}
.shichen-xingshen-line {
    color: #c8a050;
    margin-bottom: 8px;
    font-size: 13px;
}
.shichen-yiji-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}
.shichen-yiji-line:last-child { margin-bottom: 0; }
.shichen-yiji-tag {
    width: 24px;
    height: 24px;
    border: 1.5px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 8px;
}
.shichen-yiji-tag.yi {
    border-color: #c41e3a;
    color: #c41e3a;
}
.shichen-yiji-tag.ji {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.7);
}
.shichen-yiji-text {
    flex: 1;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 2px;
    font-size: 13px;
}

/* 手机版时辰列表保持单列 */
@media (max-width: 768px) {
    .shichen-list {
        grid-template-columns: 1fr;
    }
    .shichen-row {
        border-right: none;
    }
    .shichen-row:last-child { border-bottom: none; }
}

/* 黄历详情区域 */
.almanac-detail-section {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(25, 25, 45, 0.95), rgba(35, 30, 50, 0.95));
    border: 1px solid rgba(200, 160, 80, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.detail-section-header {
    background: linear-gradient(90deg, rgba(180, 140, 60, 0.4), rgba(120, 90, 40, 0.2), rgba(180, 140, 60, 0.4));
    color: #ffd700;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 6px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.detail-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 20px;
    background: rgba(20, 20, 35, 0.3);
}
.detail-card {
    background: linear-gradient(145deg, rgba(40, 35, 60, 0.8), rgba(30, 28, 45, 0.9));
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(200, 160, 80, 0.15);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}
.detail-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 160, 80, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.detail-card-tip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 45, 70, 0.98);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    width: 180px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(200, 160, 80, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    margin-bottom: 8px;
}
.detail-card-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(50, 45, 70, 0.98);
}
.detail-card:hover .detail-card-tip {
    opacity: 1;
    visibility: visible;
}
.detail-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.detail-card-icon.gold { background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.1)); color: #ffd700; }
.detail-card-icon.red { background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(200, 50, 50, 0.1)); color: #ff6b6b; }
.detail-card-icon.blue { background: linear-gradient(135deg, rgba(100, 180, 255, 0.2), rgba(50, 120, 200, 0.1)); color: #6bb8ff; }
.detail-card-icon.green { background: linear-gradient(135deg, rgba(100, 220, 150, 0.2), rgba(50, 180, 100, 0.1)); color: #6bdc96; }
.detail-card-icon.purple { background: linear-gradient(135deg, rgba(180, 130, 255, 0.2), rgba(130, 80, 200, 0.1)); color: #b482ff; }
.detail-card-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}
.detail-card-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}
.shensha-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.shensha-box {
    padding: 20px 25px;
}
.shensha-box:first-child {
    border-right: 1px solid rgba(200, 160, 80, 0.15);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), transparent);
}
.shensha-box:last-child {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.03), transparent);
}
.shensha-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}
.shensha-title::before {
    content: '◆';
    font-size: 10px;
}
.shensha-title.ji { color: #ffd700; }
.shensha-title.ji::before { color: #ffd700; }
.shensha-title.xiong { color: #ff6b6b; }
.shensha-title.xiong::before { color: #ff6b6b; }
.shensha-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.shensha-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}
.shensha-tag-tip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 45, 70, 0.98);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.5;
    width: 140px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(200, 160, 80, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 100;
    margin-bottom: 6px;
    white-space: normal;
}
.shensha-tag-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(50, 45, 70, 0.98);
}
.shensha-tag:hover .shensha-tag-tip {
    opacity: 1;
    visibility: visible;
}
.shensha-box:first-child .shensha-tag {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.08));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.shensha-box:first-child .shensha-tag:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 180, 0, 0.15));
}
.shensha-box:last-child .shensha-tag {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.15), rgba(255, 80, 80, 0.08));
    color: #ff8888;
    border: 1px solid rgba(255, 100, 100, 0.3);
}
.shensha-box:last-child .shensha-tag:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.25), rgba(255, 80, 80, 0.15));
}
@media (max-width: 768px) {
    .detail-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px;
    }
    .detail-card {
        padding: 10px 5px;
    }
    .detail-card-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .detail-card-label {
        font-size: 9px;
    }
    .detail-card-value {
        font-size: 11px;
    }
    .shensha-grid {
        grid-template-columns: 1fr;
    }
    .shensha-box:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(200, 160, 80, 0.15);
    }
    .shensha-tags {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    .shensha-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    /* 手机版布局调整 */
    .almanac-top {
        display: flex;
        flex-direction: column;
    }
    .almanac-date-header {
        display: block;
        padding: 15px;
    }
    .mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        font-size: 12px;
    }
    .mobile-weekday {
        color: rgba(255, 255, 255, 0.7);
    }
    .mobile-solar {
        color: rgba(255, 255, 255, 0.85);
    }
    .mobile-constellation {
        color: rgba(255, 255, 255, 0.6);
    }
    .date-left {
        display: none;
    }
    .date-center {
        width: 100%;
        text-align: center;
    }
    .date-center .solar-date {
        display: none;
    }
    .date-nav {
        gap: 80px;
    }
    .date-right {
        border-left: none;
        padding-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
    .yiji-area {
        border-left: none;
        border-top: 1px solid rgba(200, 160, 80, 0.2);
    }
}

/* ========== 生肖标签 ========== */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.zodiac-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.zodiac-card:hover, .zodiac-card.active {
    border-color: #ffd700;
    background: rgba(255, 200, 80, 0.1);
    transform: translateY(-3px);
}
.zodiac-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.zodiac-name {
    font-size: 1.1em;
    color: #ffd700;
    font-weight: 600;
}
.zodiac-years {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* 生肖详情 */
.zodiac-detail {
    display: none;
    background: rgba(20, 20, 40, 0.6);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(200, 160, 80, 0.3);
}
.zodiac-detail.active { display: block; }
.zodiac-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.2);
}
.zodiac-detail-icon {
    font-size: 3.5em;
}
.zodiac-detail-title h3 {
    font-size: 1.5em;
    color: #ffd700;
    margin-bottom: 5px;
}
.zodiac-detail-title p {
    color: rgba(255, 255, 255, 0.6);
}
.zodiac-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.zodiac-info-item {
    background: rgba(30, 30, 50, 0.6);
    padding: 15px;
    border-radius: 8px;
}
.zodiac-info-label {
    color: #c8a050;
    font-size: 0.85em;
    margin-bottom: 5px;
}
.zodiac-info-value {
    color: #fff;
    font-weight: 500;
}
.zodiac-compat {
    margin-top: 20px;
}
.zodiac-compat h4 {
    color: #ffd700;
    margin-bottom: 15px;
}
.compat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.compat-item {
    padding: 12px 15px;
    border-radius: 8px;
}
.compat-item.good {
    background: rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.3);
}
.compat-item.bad {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
}
.compat-label {
    font-size: 0.85em;
    margin-bottom: 5px;
}
.compat-item.good .compat-label { color: #50c878; }
.compat-item.bad .compat-label { color: #ff6b6b; }
.compat-value {
    color: #fff;
    font-weight: 500;
}

/* ========== 节气标签 ========== */
.jieqi-current {
    background: linear-gradient(135deg, rgba(255, 200, 80, 0.15), rgba(200, 150, 50, 0.1));
    border: 1px solid rgba(255, 200, 80, 0.4);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}
.jieqi-current h3 {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 10px;
}
.jieqi-current-name {
    font-size: 2.5em;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.jieqi-current-date {
    color: rgba(255, 255, 255, 0.7);
}
.jieqi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.jieqi-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.jieqi-card:hover {
    border-color: #ffd700;
    background: rgba(255, 200, 80, 0.1);
}
.jieqi-name {
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}
.jieqi-date {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== 择日标签 ========== */
.zeri-form {
    background: rgba(255, 200, 80, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.zeri-form h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}
.zeri-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.zeri-option {
    padding: 12px;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.8);
}
.zeri-option:hover, .zeri-option.active {
    border-color: #ffd700;
    background: rgba(255, 200, 80, 0.15);
    color: #ffd700;
}
.zeri-results {
    margin-top: 25px;
}
.zeri-result-item {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #50c878;
}
.zeri-result-date {
    font-size: 1.2em;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
}
.zeri-result-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

/* ========== 农历知识标签 ========== */
.knowledge-section {
    margin-bottom: 30px;
}
.knowledge-section h3 {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.3);
}
.knowledge-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}
.knowledge-content p {
    margin-bottom: 15px;
}
.tiangan-dizhi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}
.td-item {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.td-char {
    font-size: 1.5em;
    color: #ffd700;
    font-weight: 600;
}
.td-info {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}
.wuxing-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}
.wuxing-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 6px;
}
.wuxing-item.wood { background: rgba(80, 200, 80, 0.2); color: #50c850; }
.wuxing-item.fire { background: rgba(255, 100, 100, 0.2); color: #ff6b6b; }
.wuxing-item.earth { background: rgba(200, 180, 80, 0.2); color: #c8b450; }
.wuxing-item.metal { background: rgba(200, 200, 200, 0.2); color: #c8c8c8; }
.wuxing-item.water { background: rgba(100, 150, 255, 0.2); color: #6496ff; }

/* 农历转换 */
.convert-section {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.convert-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
}
.convert-result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.convert-box {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.convert-box h4 {
    color: #c8a050;
    margin-bottom: 15px;
}
.convert-date {
    font-size: 1.3em;
    color: #fff;
    font-weight: 600;
}
.convert-extra {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
}
.footer-text { color: rgba(255,255,255,0.6); margin-bottom: 15px; font-size: 0.9em; line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 15px; flex-wrap: wrap; line-height: 1.8; }
.footer-links a { color: #c8a050; text-decoration: none; font-size: 0.85em; }
.footer-links a:hover { color: #ffd700; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8em; margin: 0.5em 0; line-height: 1.8; }
.footer a {
    color: #c8a050;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-container { padding: 0; margin: 10px auto 20px; }
    .tabs-nav { display: flex; flex-wrap: wrap; gap: 2px; }
    .tab-btn { padding: 8px 4px; font-size: 0.7em; justify-content: center; flex: none !important; width: calc(20% - 1.6px) !important; }
    .content-card { padding: 15px; border-radius: 0 0 12px 12px; }
    .date-picker { flex-direction: column; align-items: stretch; }
    .shensha-section, .yiji-section { grid-template-columns: 1fr; }
    .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
    .jieqi-grid { grid-template-columns: repeat(2, 1fr); }
    .zeri-options { grid-template-columns: repeat(2, 1fr); }
    .tiangan-dizhi-grid { grid-template-columns: repeat(5, 1fr); }
    .zodiac-info-grid, .compat-grid, .convert-result { grid-template-columns: 1fr; }
    .shichen-header { flex-direction: column; }
    .shichen-name { margin-bottom: 8px; }
    .shichen-yiji { grid-template-columns: 40px 1fr; }
}

/* 新功能区样式 */
.feature-section {
    padding: 0;
}
.feature-title {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 10px;
    text-align: center;
}
.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.input-form {
    max-width: 400px;
    margin: 0 auto;
}
.chenggu-form {
    max-width: 800px;
}
.input-row-inline {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}
.input-group {
    flex: 1;
}
.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
}
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 8px;
    background: rgba(30, 30, 50, 0.8);
    color: #fff;
    font-size: 14px;
    height: 42px;
    box-sizing: border-box;
}
.inline-btn {
    margin-top: 0;
    height: 42px;
    padding: 0 30px;
    font-size: 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-group {
    min-width: 100px;
}
.btn-group label {
    display: none;
}
.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}
.input-row label {
    width: 80px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}
.input-row select,
.input-row input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 8px;
    background: rgba(30, 30, 50, 0.8);
    color: #fff;
    font-size: 14px;
}
.input-row select:focus,
.input-row input:focus {
    outline: none;
    border-color: #ffd700;
}
.calc-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c8a050, #a08040);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.calc-btn:hover {
    background: linear-gradient(135deg, #dab060, #b89050);
    transform: translateY(-2px);
}
.result-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(40, 35, 60, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 12px;
    position: relative;
}
.result-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.result-close:hover {
    background: rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
}
.result-title {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
}
.result-weight {
    font-size: 36px;
    color: #ffd700;
    text-align: center;
    margin: 20px 0;
}
.result-poem {
    color: #c8a050;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    margin: 15px 0;
}
.result-meaning {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    padding: 15px;
    background: rgba(20, 20, 35, 0.5);
    border-radius: 8px;
}
.wuxing-chart {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}
.wuxing-bar {
    text-align: center;
}
.wuxing-bar-fill {
    width: 40px;
    background: linear-gradient(to top, #c8a050, #ffd700);
    border-radius: 4px 4px 0 0;
    margin: 0 auto 5px;
}
.wuxing-bar-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}
.result-good { color: #69db7c; }
.result-bad { color: #ff6b6b; }
.result-warn { color: #ffa94d; }

/* 称骨对照表样式 */
.chenggu-tables {
    margin-top: 30px;
    padding: 20px;
    background: rgba(30, 28, 45, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 12px;
    width: calc(100% + 50px);
    margin-left: -25px;
    margin-right: -25px;
    box-sizing: border-box;
}
.table-title {
    color: #ffd700;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.2);
}
.weight-section {
    margin-bottom: 25px;
}
.weight-header {
    color: #c8a050;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #c8a050;
}
.weight-grid {
    display: grid;
    gap: 8px;
}
.year-grid {
    grid-template-columns: repeat(10, 1fr);
}
.month-grid, .hour-grid {
    grid-template-columns: repeat(6, 1fr);
}
.day-grid {
    grid-template-columns: repeat(10, 1fr);
}
.weight-item {
    background: rgba(40, 35, 60, 0.6);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 6px;
    padding: 8px 5px;
    text-align: center;
    font-size: 12px;
}
.weight-item:hover {
    border-color: #ffd700;
    background: rgba(200, 160, 80, 0.1);
}
.w-year, .w-month, .w-day {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}
.w-hour {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}
.w-hour small {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}
.w-val {
    color: #ffd700;
    font-weight: 500;
}
.weight-poem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.poem-item {
    background: rgba(40, 35, 60, 0.6);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.poem-weight {
    color: #ffd700;
    font-weight: 600;
    min-width: 45px;
}
.poem-level {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    min-width: 30px;
    text-align: center;
}
.poem-level.bad { background: rgba(255, 100, 100, 0.2); color: #ff6b6b; }
.poem-level.warn { background: rgba(255, 170, 80, 0.2); color: #ffa94d; }
.poem-level.mid { background: rgba(200, 160, 80, 0.2); color: #c8a050; }
.poem-level.good { background: rgba(100, 200, 150, 0.2); color: #69db7c; }
.poem-level.great { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.poem-text {
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 完整称骨歌样式 */
.weight-poem-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.poem-full-item {
    background: rgba(40, 35, 60, 0.6);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 10px;
    padding: 15px;
}
.poem-full-item:hover {
    border-color: rgba(200, 160, 80, 0.4);
    background: rgba(50, 45, 70, 0.7);
}
.poem-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.15);
}
.poem-verse {
    color: #e8d5a3;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}
.poem-meaning {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
    padding-left: 10px;
    border-left: 2px solid rgba(200, 160, 80, 0.3);
}
/* 红砂日详细样式 */
.hongsha-detail {
    margin-top: 30px;
    padding: 20px;
    background: rgba(30, 28, 45, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 12px;
    width: calc(100% + 50px);
    margin-left: -25px;
    box-sizing: border-box;
}
.hongsha-intro {
    background: rgba(40, 35, 60, 0.6);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}
.hongsha-intro p { margin-bottom: 10px; }
.hongsha-intro p:last-child { margin-bottom: 0; }
.hongsha-poem {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.poem-line {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(40, 35, 60, 0.6);
    border-radius: 8px;
}
.poem-month {
    color: #c8a050;
    font-weight: 500;
    min-width: 120px;
}
.poem-day {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}
.poem-day.bad { background: rgba(255, 100, 100, 0.2); color: #ff6b6b; }
.poem-day.warn { background: rgba(255, 170, 80, 0.2); color: #ffa94d; }
.poem-day.mid { background: rgba(200, 160, 80, 0.2); color: #c8a050; }
.poem-note { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.hongsha-table {
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 8px;
    overflow: hidden;
}
.hs-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.hs-row.hs-header {
    background: rgba(200, 160, 80, 0.15);
}
.hs-row.hs-header .hs-cell {
    color: #ffd700;
    font-weight: 500;
}
.hs-cell {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}
.hs-cell.month { color: #c8a050; }
.hs-cell.bad { color: #ff6b6b; font-weight: 500; }
.hs-cell.warn { color: #ffa94d; font-weight: 500; }
.hs-cell.mid { color: #e8d5a3; font-weight: 500; }
.hs-row:last-child .hs-cell { border-bottom: none; }
.hongsha-yiji {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.yiji-box {
    background: rgba(40, 35, 60, 0.6);
    border-radius: 10px;
    padding: 15px;
}
.yiji-box.ji { }
.yiji-box.yi { }

/* 红砂日宜忌新样式 */
.hongsha-yiji-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.yiji-card {
    background: rgba(40, 35, 60, 0.6);
    border-radius: 12px;
    padding: 20px;
}
.yiji-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.yiji-icon {
    font-size: 20px;
}
.yiji-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.yiji-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
}
.yiji-tag.bad {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}
.yiji-tag.good {
    background: rgba(100, 200, 100, 0.2);
    color: #69db7c;
}
.yiji-card-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.yiji-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.yiji-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 100, 100, 0.08);
    border-radius: 8px;
}
.yiji-item.yi-item {
    background: rgba(100, 200, 100, 0.08);
}
.yiji-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.yiji-item-content {
    flex: 1;
    min-width: 0;
}
.yiji-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.yiji-item-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}
.yiji-principle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(200, 160, 80, 0.1);
    border-radius: 8px;
}
.principle-icon {
    font-size: 16px;
}
.principle-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.yiji-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #fff;
}
.yiji-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yiji-list li {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.yiji-list li:last-child { border-bottom: none; }
.hongsha-resolve {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.resolve-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(40, 35, 60, 0.6);
    border-radius: 10px;
}
.resolve-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #c8a050, #a08030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 600;
    flex-shrink: 0;
}
.resolve-title {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 5px;
}
.resolve-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.5;
}

/* 化解方法新样式 */
.resolve-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}
.resolve-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.resolve-card {
    background: rgba(40, 35, 60, 0.6);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}
.resolve-card:hover {
    background: rgba(50, 45, 70, 0.7);
}
.resolve-card.best {
    background: rgba(100, 200, 100, 0.1);
    border: 1px solid rgba(100, 200, 100, 0.3);
}
.resolve-card-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.resolve-card-body {
    flex: 1;
    min-width: 0;
}
.resolve-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.best-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(100, 200, 100, 0.3);
    color: #69db7c;
    border-radius: 10px;
    font-weight: 500;
}
.resolve-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    line-height: 1.5;
}
.resolve-card-detail {
    margin-bottom: 12px;
}
.resolve-card-detail .detail-item {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
}
.resolve-effect {
    display: flex;
    align-items: center;
    gap: 10px;
}
.effect-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}
.effect-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.effect-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c8a050, #ffd700);
    border-radius: 3px;
}
.effect-fill.best-fill {
    background: linear-gradient(90deg, #50c878, #69db7c);
}
.effect-text {
    font-size: 11px;
    color: #c8a050;
    font-weight: 500;
    min-width: 30px;
}
.effect-text.best-text {
    color: #69db7c;
}
.resolve-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(200, 160, 80, 0.1);
    border-radius: 8px;
}
.resolve-tip-icon {
    font-size: 18px;
}
.resolve-tip-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.hongsha-note {
    background: rgba(40, 35, 60, 0.6);
    padding: 15px;
    border-radius: 8px;
}
.hongsha-note p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.hongsha-note p:last-child { margin-bottom: 0; }
.hongsha-note strong { color: #ffd700; }

/* 注意事项新样式 */
.note-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.note-card {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(40, 35, 60, 0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.note-card:hover {
    background: rgba(50, 45, 70, 0.7);
}
.note-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.note-content {
    flex: 1;
    min-width: 0;
}
.note-title {
    font-size: 14px;
    font-weight: 600;
    color: #c8a050;
    margin-bottom: 6px;
}
.note-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
.note-desc strong {
    color: #ffd700;
}

/* 红砂日历样式 */
.hongsha-calendar {
    margin-top: 25px;
    padding: 20px;
    background: rgba(40, 35, 60, 0.4);
    border-radius: 12px;
}
.calendar-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
.calendar-tab {
    padding: 10px 25px;
    background: rgba(200, 160, 80, 0.1);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.calendar-tab:hover {
    background: rgba(200, 160, 80, 0.2);
}
.calendar-tab.active {
    background: linear-gradient(135deg, #c8a050, #a08030);
    color: #1a1a2e;
    font-weight: 600;
    border-color: #c8a050;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.calendar-month-card {
    background: rgba(30, 28, 45, 0.6);
    border-radius: 10px;
    overflow: hidden;
}
.month-header {
    background: rgba(200, 160, 80, 0.15);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #c8a050;
    font-size: 14px;
}
.month-days {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 60px;
}
.hs-day {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.hs-day small {
    font-size: 10px;
    opacity: 0.8;
}
.hs-day.bad {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}
.hs-day.warn {
    background: rgba(255, 170, 80, 0.2);
    color: #ffa94d;
}
.hs-day.mid {
    background: rgba(200, 160, 80, 0.2);
    color: #c8a050;
}
.no-hs {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    width: 100%;
    text-align: center;
    padding: 15px 0;
}
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 160, 80, 0.2);
}

.hongsha-poem-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.poem-detail-item {
    background: rgba(40, 35, 60, 0.6);
    border-radius: 10px;
    overflow: hidden;
}
.poem-detail-head {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(30, 25, 50, 0.5);
    border-bottom: 1px solid rgba(200, 160, 80, 0.15);
}
.poem-detail-body {
    padding: 15px;
}
.detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 13px;
}
.detail-row:last-child { margin-bottom: 0; }
.detail-label {
    color: rgba(255, 255, 255, 0.6);
    min-width: 85px;
    flex-shrink: 0;
}
.detail-value {
    color: rgba(255, 255, 255, 0.9);
}
.detail-value.bad { color: #ff6b6b; }
.detail-value.warn { color: #ffa94d; }
.detail-value.mid { color: #e8d5a3; }
.level-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
}
.level-tag.bad { background: rgba(255, 100, 100, 0.2); color: #ff6b6b; }
.level-tag.warn { background: rgba(255, 170, 80, 0.2); color: #ffa94d; }
.level-tag.mid { background: rgba(200, 160, 80, 0.2); color: #c8a050; }

/* 红砂口诀左右布局 */
.hongsha-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hongsha-left .hongsha-poem-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.left-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 160, 80, 0.2);
}

/* 生肖速查表 */
.shengxiao-lookup {
    background: rgba(40, 35, 60, 0.6);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}
.lookup-title {
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}
.lookup-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
}
.lookup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.lookup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.lookup-item.bad {
    background: rgba(255, 100, 100, 0.1);
}
.lookup-item.warn {
    background: rgba(255, 170, 80, 0.1);
}
.lookup-item.mid {
    background: rgba(200, 160, 80, 0.1);
}
.lookup-animal {
    color: #fff;
    font-weight: 500;
}
.lookup-months {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}
.lookup-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(200, 160, 80, 0.2);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.legend-dot.bad { background: #ff6b6b; }
.legend-dot.warn { background: #ffa94d; }
.legend-dot.mid { background: #c8a050; }

/* 日支说明 */
.lookup-explain {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 160, 80, 0.2);
}
.explain-title {
    color: #c8a050;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.explain-content {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.8;
}
.explain-content p {
    margin: 5px 0;
}
.dizhi-list {
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    background: rgba(30, 28, 45, 0.5);
    border-radius: 6px;
    font-size: 11px;
}

.hongsha-memory {
    margin-top: 15px;
    background: rgba(200, 160, 80, 0.1);
    border: 1px dashed rgba(200, 160, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
}
.memory-title {
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.memory-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.memory-left {
    display: flex;
    flex-direction: column;
}
.memory-left .memory-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.memory-tips {
    background: rgba(40, 35, 60, 0.6);
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    box-sizing: border-box;
}
.tips-title {
    color: #c8a050;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.tip-num {
    width: 18px;
    height: 18px;
    background: rgba(200, 160, 80, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #c8a050;
    flex-shrink: 0;
}
.tip-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.5;
}
.tip-text strong {
    color: #fff;
}
.tips-stat {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(200, 160, 80, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-align: center;
}
.tips-stat strong {
    color: #ffd700;
}
.memory-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.6;
}
.memory-content p:last-child { margin-bottom: 0; }
.memory-content strong { color: #ffd700; }
.memory-highlight {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
}
.memory-highlight.bad { background: rgba(255, 100, 100, 0.2); color: #ff6b6b; }
.memory-highlight.warn { background: rgba(255, 170, 80, 0.2); color: #ffa94d; }
.memory-highlight.mid { background: rgba(200, 160, 80, 0.2); color: #c8a050; }
.yiji-list li strong { color: #ffd700; }

/* 红砂查询表单样式 */
.today-tip {
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin: 20px 0;
    width: 100%;
}
.today-tip strong {
    font-weight: 600;
}
.today-tip.bad {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6b6b;
}
.today-tip.warn {
    background: rgba(255, 170, 80, 0.15);
    color: #ffa94d;
}
.today-tip.mid {
    background: rgba(200, 160, 80, 0.15);
    color: #c8a050;
}
.today-tip.safe {
    background: rgba(100, 200, 100, 0.15);
    color: #69db7c;
}

.hongsha-query-form {
    max-width: 500px;
    margin: 25px auto;
    padding: 25px;
    background: rgba(40, 35, 60, 0.6);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 12px;
}
.query-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.query-label {
    color: #c8a050;
    font-size: 15px;
    font-weight: 500;
}
.query-input {
    padding: 12px 18px;
    font-size: 16px;
    border: 1px solid rgba(200, 160, 80, 0.4);
    border-radius: 8px;
    background: rgba(30, 28, 45, 0.8);
    color: #fff;
    min-width: 180px;
}
.query-input:focus {
    outline: none;
    border-color: #c8a050;
    box-shadow: 0 0 0 2px rgba(200, 160, 80, 0.2);
}
.query-btn {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffd700, #c8a050);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 160, 80, 0.4);
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .chenggu-tables {
        overflow-x: hidden;
        padding: 15px;
    }
    .weight-section {
        overflow-x: hidden;
    }
    .year-grid { grid-template-columns: repeat(5, 1fr); }
    .month-grid, .hour-grid { grid-template-columns: repeat(4, 1fr); }
    .day-grid { grid-template-columns: repeat(5, 1fr); }
    .weight-poem-grid { grid-template-columns: 1fr; }
    .poem-item { font-size: 13px; }
    .poem-text { white-space: normal; }
    .weight-poem-full { grid-template-columns: 1fr; }
    .poem-verse { font-size: 13px; }
    .input-row-inline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .chenggu-form {
        max-width: 100%;
    }
    .input-group {
        width: 100%;
    }
    .input-group label {
        text-align: left;
        margin-bottom: 5px;
    }
    .btn-group {
        grid-column: span 2;
        width: 100%;
    }
    .btn-group label {
        display: none;
    }
    .inline-btn {
        width: 100%;
    }
    .result-box {
        width: calc(100% + 50px);
        margin-left: -25px;
        margin-right: -25px;
        box-sizing: border-box;
    }
    .hongsha-detail {
        width: calc(100% + 30px);
        margin-left: -15px;
        padding: 15px;
    }
    .hongsha-yiji {
        grid-template-columns: 1fr;
    }
    .hongsha-yiji-new {
        grid-template-columns: 1fr;
    }
    .yiji-grid {
        grid-template-columns: 1fr;
    }
    .note-grid {
        grid-template-columns: 1fr;
    }
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .calendar-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    .calendar-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
    .month-days {
        padding: 10px;
        gap: 5px;
    }
    .hs-day {
        font-size: 11px;
        padding: 3px 6px;
    }
    .calendar-legend {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 11px;
    }
    .hongsha-main-layout {
        grid-template-columns: 1fr;
    }
    .lookup-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .lookup-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 10px;
        gap: 4px;
    }
    .lookup-animal {
        font-size: 12px;
    }
    .lookup-months {
        font-size: 11px;
    }
    .memory-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .memory-left .memory-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .memory-highlight {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }
    .hongsha-resolve {
        grid-template-columns: 1fr;
    }
    .resolve-grid-new {
        grid-template-columns: 1fr;
    }
    .resolve-card {
        padding: 15px;
    }
    .resolve-card-icon {
        font-size: 26px;
    }
    .hongsha-query-form {
        margin: 20px auto;
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .query-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        -webkit-box-orient: vertical !important;
        -webkit-flex-direction: column !important;
    }
    .query-label {
        display: none !important;
    }
    .query-input,
    input[type="date"] {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        -webkit-box-sizing: border-box !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    .query-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        -webkit-box-sizing: border-box !important;
    }
    .hs-row {
        grid-template-columns: 1fr;
    }
    .hs-row.hs-header {
        display: none;
    }
    .hs-cell {
        padding: 8px 12px;
    }
    .hs-cell.month {
        background: rgba(200, 160, 80, 0.1);
        font-weight: 500;
    }
    .poem-line {
        flex-wrap: wrap;
        gap: 8px;
    }
    .poem-month {
        min-width: auto;
        width: 100%;
    }
    .poem-detail-head {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .poem-month {
        font-size: 14px;
        min-width: auto;
    }
    .poem-day {
        padding: 4px 10px;
        font-size: 12px;
    }
    .poem-note {
        font-size: 11px;
    }
    .poem-detail-body {
        padding: 12px;
    }
    .detail-row {
        flex-direction: column;
        gap: 3px;
        margin-bottom: 12px;
    }
    .detail-label {
        min-width: auto;
        font-size: 12px;
    }
    .detail-value {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* ========== 太岁查询页面样式 ========== */
.taisui-year-banner {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(200, 160, 80, 0.2) 100%);
    border: 1px solid rgba(200, 160, 80, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}
.banner-year {
    font-size: 20px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 5px;
}
.banner-taisui {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}
.banner-fan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.fan-item {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}
.fan-item.lv1 { background: rgba(255, 100, 100, 0.25); color: #ff6b6b; }
.fan-item.lv2 { background: rgba(255, 170, 80, 0.25); color: #ffa94d; }
.fan-item.lv3 { background: rgba(200, 160, 80, 0.25); color: #c8a050; }

.taisui-query-box {
    background: linear-gradient(180deg, rgba(50, 45, 70, 0.8) 0%, rgba(40, 35, 60, 0.9) 100%);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 16px;
    overflow: hidden;
    margin: 25px 0;
}
.query-header {
    background: rgba(200, 160, 80, 0.15);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.2);
}
.query-icon {
    font-size: 22px;
}
.query-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffd700;
}
.query-form {
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.form-group {
    flex: 1;
    min-width: 150px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 25, 50, 0.8);
    border: 1px solid rgba(200, 160, 80, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}
.taisui-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 25px;
    background: linear-gradient(135deg, #c8a050 0%, #ffd700 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}
.taisui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 160, 80, 0.4);
}
.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s;
}
.taisui-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* 太岁知识 */
.taisui-knowledge {
    margin-top: 40px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(200, 160, 80, 0.3);
}
.title-icon {
    font-size: 22px;
}

.knowledge-block {
    background: rgba(35, 30, 55, 0.6);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 14px;
    margin-bottom: 25px;
    overflow: hidden;
}
.block-header {
    background: rgba(200, 160, 80, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.15);
}
.block-icon {
    font-size: 20px;
}
.block-title {
    font-size: 16px;
    font-weight: 600;
    color: #e8d5a3;
}
.block-content {
    padding: 20px;
}
.block-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 12px;
}
.block-content em {
    color: #ffd700;
    font-style: normal;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 太岁周期 */
.taisui-cycle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.cycle-item {
    background: rgba(40, 35, 60, 0.7);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}
.cycle-year {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 5px;
}
.cycle-info {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}
.cycle-god {
    display: block;
    font-size: 12px;
    color: #c8a050;
}

/* 五种犯太岁类型 */
.taisui-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.type-card {
    background: rgba(40, 35, 60, 0.5);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.type-card.level-1 { border-color: rgba(255, 100, 100, 0.4); }
.type-card.level-2 { border-color: rgba(255, 100, 100, 0.3); }
.type-card.level-3 { border-color: rgba(255, 170, 80, 0.3); }
.type-card.level-4 { border-color: rgba(200, 160, 80, 0.3); }

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.type-name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}
.type-level {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
}
.level-1 .type-level { background: rgba(255, 100, 100, 0.3); color: #ff6b6b; }
.level-2 .type-level { background: rgba(255, 100, 100, 0.2); color: #ff8888; }
.level-3 .type-level { background: rgba(255, 170, 80, 0.2); color: #ffa94d; }
.level-4 .type-level { background: rgba(200, 160, 80, 0.2); color: #c8a050; }

.type-alias {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}
.type-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.6;
}
.type-effect {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 12px;
    border-radius: 8px;
}
.effect-icon {
    flex-shrink: 0;
}

/* 犯太岁年份表 */
.year-table {
    overflow-x: auto;
}
.year-row {
    display: grid;
    grid-template-columns: 70px 90px repeat(5, 1fr);
    gap: 2px;
}
.year-row.header {
    background: rgba(200, 160, 80, 0.15);
    border-radius: 8px 8px 0 0;
}
.year-row.header .year-cell {
    font-weight: 600;
    color: #ffd700;
    font-size: 12px;
}
.year-cell {
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
}
.year-cell.year-name {
    font-weight: 600;
    color: #fff;
}
.year-cell.taisui-name {
    color: #ffd700;
}
.year-cell.danger {
    color: #ff6b6b;
    background: rgba(255, 100, 100, 0.1);
}
.year-cell.warn {
    color: #ffa94d;
    background: rgba(255, 170, 80, 0.1);
}
.year-cell.mild {
    color: #c8a050;
    background: rgba(200, 160, 80, 0.1);
}

/* 化解方法 */
.resolve-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.method-item {
    display: flex;
    gap: 15px;
    background: rgba(40, 35, 60, 0.5);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s;
}
.method-item:hover {
    border-color: rgba(200, 160, 80, 0.4);
    background: rgba(50, 45, 70, 0.6);
}
.method-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.method-info {
    flex: 1;
}
.method-name {
    font-size: 15px;
    font-weight: 600;
    color: #e8d5a3;
    margin-bottom: 6px;
}
.method-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 8px;
}
.method-tip {
    font-size: 11px;
    color: #c8a050;
    background: rgba(200, 160, 80, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* 注意事项 */
.notice-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.notice-item {
    display: flex;
    gap: 12px;
    background: rgba(40, 35, 60, 0.5);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 10px;
    padding: 15px;
}
.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.notice-text strong {
    display: block;
    font-size: 14px;
    color: #e8d5a3;
    margin-bottom: 5px;
}
.notice-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* 太岁查询结果 */
.taisui-result-info {
    background: rgba(30, 25, 50, 0.6);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 15px 0 20px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}
.info-value {
    color: #ffd700;
    font-size: 14px;
    font-weight: 500;
}
.taisui-result-status {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
}
.taisui-result-status.bad {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(255, 80, 80, 0.1) 100%);
    border: 1px solid rgba(255, 100, 100, 0.3);
}
.taisui-result-status.good {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.2) 0%, rgba(80, 180, 80, 0.1) 100%);
    border: 1px solid rgba(100, 200, 100, 0.3);
}
.status-icon {
    font-size: 28px;
    margin-right: 10px;
}
.status-text {
    font-size: 22px;
    font-weight: 600;
}
.taisui-result-status.bad .status-text { color: #ff6b6b; }
.taisui-result-status.good .status-text { color: #69db7c; }

.taisui-result-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.result-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(40, 35, 60, 0.6);
    border-radius: 10px;
    border-left: 4px solid;
}
.result-type-item.lv1 { border-left-color: #ff6b6b; }
.result-type-item.lv2 { border-left-color: #ffa94d; }
.result-type-item.lv3 { border-left-color: #c8a050; }

.result-type-item .type-icon {
    font-size: 20px;
}
.result-type-item .type-info {
    flex: 1;
}
.result-type-item .type-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.result-type-item .type-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.taisui-result-advice {
    background: rgba(200, 160, 80, 0.1);
    border: 1px solid rgba(200, 160, 80, 0.25);
    border-radius: 10px;
    padding: 18px;
}
.advice-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 12px;
}
.advice-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding-left: 5px;
}
.advice-content p:last-child {
    margin-bottom: 0;
}

.taisui-result-good {
    background: rgba(100, 200, 100, 0.1);
    border: 1px solid rgba(100, 200, 100, 0.25);
    border-radius: 10px;
    padding: 20px;
}
.taisui-result-good p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}
.taisui-result-good p:last-child {
    margin-bottom: 0;
}

/* 太岁页面响应式 */
@media (max-width: 768px) {
    .taisui-cycle {
        grid-template-columns: 1fr;
    }
    .taisui-types {
        grid-template-columns: 1fr;
    }
    .type-card {
        padding: 15px;
    }
    .year-row {
        grid-template-columns: 50px 55px repeat(5, 50px);
        font-size: 10px;
        min-width: 360px;
    }
    .year-row.header {
        display: grid;
    }
    .year-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .year-cell {
        padding: 8px 2px;
        font-size: 10px;
        white-space: nowrap;
    }
    .resolve-methods {
        grid-template-columns: 1fr;
    }
    .method-item {
        padding: 15px;
    }
    .method-icon {
        font-size: 26px;
    }
    .notice-list {
        grid-template-columns: 1fr;
    }
    .query-form {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
    }
    .taisui-btn {
        width: 100%;
    }
    .banner-fan {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .fan-item {
        display: inline-block;
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* 太岁方位 */
.direction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.direction-item {
    background: rgba(40, 35, 60, 0.6);
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 12px;
    padding: 18px;
}
.direction-year {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 160, 80, 0.2);
}
.dir-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
}
.dir-row:last-child {
    border-bottom: none;
}
.dir-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.dir-value {
    font-size: 13px;
    font-weight: 500;
}
.dir-value.bad { color: #ff6b6b; }
.dir-value.warn { color: #ffa94d; }
.dir-value.mild { color: #c8a050; }
.direction-note {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
}
.direction-note p {
    font-size: 13px;
    margin: 0;
}

/* 三合六合表 */
.hexiu-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.hexiu-row {
    display: grid;
    grid-template-columns: 70px repeat(4, 1fr);
    gap: 2px;
    min-width: 420px;
}
.hexiu-row.header {
    background: rgba(200, 160, 80, 0.15);
    border-radius: 8px 8px 0 0;
}
.hexiu-row.header .hexiu-cell {
    font-weight: 600;
    color: #ffd700;
    font-size: 12px;
}
.hexiu-cell {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
}
.hexiu-cell.shengxiao {
    font-weight: 600;
    color: #fff;
    background: rgba(40, 35, 60, 0.5);
}
.hexiu-cell.good {
    color: #69db7c;
    background: rgba(100, 200, 100, 0.08);
}
.hexiu-cell.bad {
    color: #ff6b6b;
}
.hexiu-cell.warn {
    color: #ffa94d;
}

/* 本命佛 */
.buddha-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}
.buddha-item {
    background: rgba(40, 35, 60, 0.5);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s;
}
.buddha-item:hover {
    border-color: rgba(200, 160, 80, 0.4);
    transform: translateY(-2px);
}
.buddha-shengxiao {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}
.buddha-zodiac {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.buddha-name {
    display: block;
    font-size: 13px;
    color: #ffd700;
    font-weight: 500;
}

/* 拜太岁流程 */
.worship-timeline {
    position: relative;
    padding-left: 30px;
}
.worship-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #c8a050, rgba(200, 160, 80, 0.3));
}
.worship-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}
.worship-step:last-child {
    margin-bottom: 0;
}
.step-number {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #c8a050, #ffd700);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.step-content {
    flex: 1;
    padding-top: 2px;
}
.step-title {
    font-size: 15px;
    font-weight: 600;
    color: #e8d5a3;
    margin-bottom: 5px;
}
.step-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}
.worship-note {
    background: rgba(200, 160, 80, 0.1);
    border: 1px solid rgba(200, 160, 80, 0.25);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 20px;
}
.worship-note p {
    font-size: 13px;
    margin: 0;
}

/* 六十甲子太岁 */
.jiazi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.jiazi-item {
    background: rgba(40, 35, 60, 0.5);
    border: 1px solid rgba(200, 160, 80, 0.15);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s;
}
.jiazi-item:hover {
    border-color: rgba(200, 160, 80, 0.4);
    background: rgba(50, 45, 70, 0.6);
}
.jiazi-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 4px;
}
.jiazi-shengxiao {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}
.jiazi-god {
    font-size: 12px;
    color: #e8d5a3;
    margin-bottom: 6px;
}
.jiazi-years {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* 太岁页面额外响应式 */
@media (max-width: 768px) {
    .taisui-query-box {
        margin: 20px 0;
    }
    .query-header {
        padding: 10px 15px;
    }
    .query-form {
        padding: 12px 15px;
        gap: 12px;
    }
    .form-group select {
        padding: 10px 12px;
    }
    .taisui-btn {
        padding: 12px 20px;
    }
    .direction-grid {
        grid-template-columns: 1fr;
    }
    .hexiu-row {
        grid-template-columns: 60px repeat(4, 1fr);
        font-size: 10px;
    }
    .hexiu-cell {
        padding: 8px 4px;
        font-size: 10px;
    }
    .buddha-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jiazi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .jiazi-item {
        padding: 10px 6px;
    }
    .jiazi-name {
        font-size: 14px;
    }
    .jiazi-god {
        font-size: 11px;
    }
    .worship-timeline {
        padding-left: 25px;
    }
}