/* ============================================
   起名主题 - 全局样式表（大气美化版）
   主色调：红 #C41A1A / 灰 #F5F5F5 / 白 #FFFFFF
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 24px;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    color: #C41A1A;
    flex-shrink: 0;
    letter-spacing: 1px;
}
.logo i {
    margin-right: 8px;
    color: #C41A1A;
}
.logo a:hover {
    color: #a01515;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    padding: 5px 26px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    color: #555;
}
.nav a i {
    margin-right: 6px;
    font-size: 15px;
}
.nav a:hover,
.nav a.active {
    background: #C41A1A;
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 26, 26, 0.25);
}

.menu-toggle {
    display: none;
    background: #C41A1A;
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 22px;
    flex-shrink: 0;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
.menu-overlay.show {
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}
.mobile-menu.show {
    display: block;
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
}
.mobile-menu-close:hover {
    color: #C41A1A;
}

.mobile-menu-body {
    padding: 10px 0;
}
.mobile-menu-body a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #555;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
}
.mobile-menu-body a i {
    width: 24px;
    margin-right: 12px;
    color: #C41A1A;
    font-size: 16px;
}
.mobile-menu-body a:hover,
.mobile-menu-body a.active {
    background: #fef5f0;
    color: #C41A1A;
}
.mobile-menu-body a.active {
    font-weight: 600;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
    .menu-overlay {
        display: none;
    }
}

/* ===== 首页 Hero 区域 ===== */
.hero-section {
    display: flex;
    gap: 50px;
    padding: 55px 0 60px;
    align-items: stretch;
}

.hero-left {
    flex: 1.2;
    background: #fff;
    border-radius: 24px;
    padding: 42px 44px 46px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.hero-left .form-title {
    font-size: 28px;
    font-weight: 900;
    color: #C41A1A;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.hero-left .form-title i {
    margin-right: 10px;
}
.hero-left .form-sub {
    font-size: 17px;
    color: #999;
    margin-bottom: 26px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.form-group label .required {
    color: #C41A1A;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 18px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    font-family: inherit;
    color: #333;
}
.form-control:focus {
    outline: none;
    border-color: #C41A1A;
    box-shadow: 0 0 0 5px rgba(196, 26, 26, 0.08);
    background: #fff;
}
.form-control::placeholder {
    color: #bbb;
}
.form-control[readonly] {
    background: #fafafa;
    cursor: pointer;
}
.form-control[readonly]:hover {
    border-color: #C41A1A;
}

.gender-btn-group {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}

.gender-btn {
    padding: 12px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    flex: 1;
    max-width: 160px;
    text-align: center;
}

.gender-btn:hover {
    border-color: #C41A1A;
    color: #C41A1A;
    background: #fef0ed;
}

.gender-btn.active {
    border-color: #C41A1A;
    background: #C41A1A;
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 26, 26, 0.25);
}

.gender-btn.active:hover {
    background: #a01515;
    border-color: #a01515;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: #C41A1A;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    letter-spacing: 4px;
}
.btn-submit:hover {
    background: #a01515;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(196, 26, 26, 0.35);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit i {
    margin-right: 12px;
}

.hero-right {
    flex: 1;
    background: linear-gradient(145deg, #faf5f2 0%, #f5e8e4 100%);
    border-radius: 24px;
    padding: 48px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #f0e0db;
    position: relative;
    overflow: hidden;
}
.hero-right::before {
    content: '祥';
    position: absolute;
    right: -40px;
    bottom: -50px;
    font-size: 240px;
    color: rgba(196, 26, 26, 0.04);
    font-family: 'Times New Roman', serif;
}
.hero-right::after {
    content: '福';
    position: absolute;
    left: -30px;
    top: -20px;
    font-size: 160px;
    color: rgba(196, 26, 26, 0.03);
    font-family: 'Times New Roman', serif;
}

.hero-badge {
    display: inline-block;
    background: rgba(196, 26, 26, 0.1);
    color: #C41A1A;
    font-size: 16px;
    font-weight: 600;
    padding: 6px 28px;
    border-radius: 30px;
    border: 1px solid rgba(196, 26, 26, 0.12);
    margin-bottom: 20px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.12;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.hero-title span {
    color: #C41A1A;
    font-size: 56px;
}

.hero-sub {
    font-size: 26px;
    color: #C41A1A;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.hero-desc {
    font-size: 18px;
    color: #888;
    line-height: 2;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 24px;
    border-top: 2px solid #f0e0db;
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 34px;
    font-weight: 900;
    color: #C41A1A;
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}
.stat-divider {
    width: 2px;
    height: 40px;
    background: #e0d0cb;
}

/* ===== 文章三栏 ===== */
.article-section {
    margin: 14px 0 40px;
    width: 100%;
    overflow: hidden;
}

.article-section .section-title {
    font-size: 28px;
    font-weight: 900;
    color: #333;
    margin-bottom: 24px;
    padding-left: 18px;
    border-left: 5px solid #C41A1A;
}
.article-section .section-title i {
    color: #C41A1A;
    margin-right: 10px;
}

.article-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article-col {
    background: #fff;
    border-radius: 18px;
    padding: 24px 26px 26px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 0;
    overflow: hidden;
}
.article-col:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.article-col .col-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    padding-bottom: 14px;
    border-bottom: 3px solid #f0f0f0;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.article-col .col-title i {
    color: #C41A1A;
    margin-right: 10px;
}
.article-col .col-title .more-link {
    font-size: 15px;
    font-weight: 400;
    color: #999;
    transition: color 0.3s;
    flex-shrink: 0;
}
.article-col .col-title .more-link:hover {
    color: #C41A1A;
}

.article-item {
    padding: 10px 0;
    border-bottom: 1px dashed #f5f5f5;
    overflow: hidden;
}
.article-item:last-child {
    border-bottom: none;
}
.article-item a {
    display: block;
    font-size: 17px;
    color: #444;
    transition: color 0.2s;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-item a:hover {
    color: #C41A1A;
}
.article-item .meta {
    font-size: 14px;
    color: #bbb;
    margin-top: 3px;
}
.article-item .badge {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 14px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}
.article-item .badge-hot {
    background: #fef0ed;
    color: #C41A1A;
}
.article-item .badge-recommend {
    background: #f5f0ee;
    color: #C41A1A;
}

/* ===== 响应式 - 三栏变两栏 ===== */
@media (max-width: 992px) {
    .article-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

/* ===== 响应式 - 两栏变一栏 ===== */
@media (max-width: 768px) {
    .article-grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .article-col {
        padding: 18px 20px 20px;
    }
    .article-item a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .article-col .col-title {
        font-size: 17px;
    }
    .article-item a {
        font-size: 15px;
    }
}

/* ===== 底部 ===== */
.footer {
    background: #2c2c2c;
    color: #bbbbbb;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    line-height: 2.2;
    margin-top: 30px;
}
.footer a {
    color: #bbbbbb;
}
.footer a:hover {
    color: #C41A1A;
}

/* ============================================================
   响应式 - 整体
   ============================================================ */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        gap: 18px;
        padding: 32px 0 10px;
    }
    .hero-right {
        padding: 34px 32px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-title span {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }
    .logo {
        font-size: 26px;
    }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding-top: 14px;
        border-top: 1px solid #f0f0f0;
    }
    .nav.show {
        display: flex;
    }
    .nav a {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 17px;
    }
    .menu-toggle {
        display: block;
    }
    .hero-left {
        padding: 26px 22px 30px;
    }
    .hero-left .form-title {
        font-size: 24px;
    }
    .form-control {
        font-size: 17px;
        padding: 13px 18px;
    }
    .gender-btn {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 120px;
    }
    .btn-submit {
        font-size: 20px;
        padding: 16px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-title span {
        font-size: 36px;
    }
    .hero-sub {
        font-size: 22px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .stat-divider {
        display: none;
    }
    .stat-num {
        font-size: 26px;
    }
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .hero-left {
        padding: 20px 16px 24px;
    }
    .hero-left .form-title {
        font-size: 20px;
    }
    .hero-left .form-sub {
        font-size: 15px;
    }
    .hero-right {
        padding: 24px 20px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-title span {
        font-size: 30px;
    }
    .hero-sub {
        font-size: 18px;
        letter-spacing: 4px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .btn-submit {
        font-size: 18px;
        padding: 14px;
        letter-spacing: 2px;
    }
    .form-control {
        font-size: 16px;
        padding: 11px 16px;
    }
    .form-group label {
        font-size: 15px;
    }
    .gender-btn {
        padding: 10px 16px;
        font-size: 15px;
        max-width: 100%;
    }
    .footer {
        font-size: 14px;
        padding: 26px 16px;
    }
}

/* ============================================================
   qiming.php、dafen.php、laohuangli.php 共用样式
   ============================================================ */

.qiming-search-area {
    margin: 10px 0 25px;
}

.qiming-search-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.qiming-search-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.qiming-search-item {
    flex: 1;
    min-width: 140px;
}

.qiming-search-item label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.qiming-search-item .form-control {
    padding: 12px 16px;
    font-size: 17px;
}

.qiming-search-item .form-control[readonly] {
    background: #fafafa;
    cursor: pointer;
}

.qiming-search-btn {
    flex: 0 0 auto;
    min-width: auto;
}

.btn-submit-small {
    padding: 12px 30px;
    background: #C41A1A;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-submit-small:hover {
    background: #a01515;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(196, 26, 26, 0.3);
}

.gender-btn-group-small {
    display: flex;
    gap: 6px;
}

.gender-btn-small {
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f5f5f5;
    color: #666;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.gender-btn-small:hover {
    border-color: #C41A1A;
    color: #C41A1A;
    background: #fef0ed;
}
.gender-btn-small.active {
    border-color: #C41A1A;
    background: #C41A1A;
    color: #fff;
}

.empty-state-result {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state-result i {
    font-size: 64px;
    color: #ddd;
    display: block;
    margin-bottom: 16px;
}
.empty-state-result p {
    font-size: 18px;
    margin-bottom: 6px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 16px;
}
.alert-error {
    background: #fdf0ef;
    color: #c0392b;
    border: 1px solid #fadbd8;
}
.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* ===== qiming.php 名字结果样式 ===== */

.bazi-analysis {
    background: #fff;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}
.bazi-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}
.bazi-title i {
    color: #C41A1A;
    margin-right: 8px;
}

.bazi-info-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.bazi-info-item {
    font-size: 16px;
    color: #666;
}
.bazi-info-item strong {
    color: #333;
}

.bazi-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
}
.bazi-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bazi-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}
.bazi-value {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.bazi-advice {
    margin-top: 14px;
    padding: 14px 18px;
    background: #f8f5f2;
    border-radius: 10px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}
.bazi-advice i {
    color: #C41A1A;
    margin-right: 8px;
}

.name-list-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid #C41A1A;
}
.name-list-title i {
    color: #C41A1A;
    margin-right: 8px;
}

.name-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 28px 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.name-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.name-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
    flex-wrap: wrap;
}

.name-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.score-number {
    font-size: 36px;
    font-weight: 900;
    color: #C41A1A;
    line-height: 1;
}
.score-label {
    font-size: 16px;
    color: #999;
}

.name-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.name-full {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    letter-spacing: 2px;
}
.name-match {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f5f5f5;
    color: #999;
}
.name-match.best {
    background: #fef0ed;
    color: #C41A1A;
}

.name-gender {
    flex-shrink: 0;
}
.gender-tag {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.gender-tag.male {
    background: #e3f2fd;
    color: #1976d2;
}
.gender-tag.female {
    background: #fce4ec;
    color: #c62828;
}
.gender-tag.unisex {
    background: #f5f5f5;
    color: #888;
}

.char-info-list {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    flex-wrap: wrap;
}

.char-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f9f9;
    padding: 10px 16px;
    border-radius: 12px;
    min-width: 160px;
}
.char-char {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    width: 44px;
    text-align: center;
}
.char-detail p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}
.char-detail p span:last-child {
    color: #666;
    font-weight: 500;
}
.char-label {
    font-size: 12px;
    color: #ccc;
}

.char-analysis {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.analysis-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.analysis-label {
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    min-width: 90px;
}
.analysis-text {
    flex: 1;
}
.analysis-text b {
    color: #C41A1A;
}
.wuxing-tag {
    color: #C41A1A;
    font-weight: 600;
}
.poetry-text {
    color: #666;
    line-height: 1.8;
}
.poetry-highlight {
    color: #C41A1A;
    font-weight: 700;
}

/* ===== laohuangli.php 老黄历样式 ===== */

.huangli-full {
    margin-top: 10px;
}

.huangli-full-header {
    text-align: center;
    padding: 20px 0 16px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}
.huangli-full-header h2 {
    font-size: 28px;
    color: #333;
}
.huangli-full-header p {
    font-size: 20px;
    color: #C41A1A;
    font-weight: 600;
    margin-top: 4px;
}

.huangli-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    background: #fff;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    margin-bottom: 24px;
}
.hl-full-item {
    padding: 8px 0;
    border-bottom: 1px dashed #f5f5f5;
}
.hl-full-item:last-child {
    border-bottom: none;
}
.hl-full-label {
    font-size: 13px;
    color: #999;
    display: block;
}
.hl-full-value {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.hl-full-value.red {
    color: #C41A1A;
}

.huangli-full-yiji {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.yiji-box {
    background: #fff;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}
.yiji-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.yiji-title.yi {
    color: #27ae60;
}
.yiji-title.ji {
    color: #e74c3c;
}
.yiji-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.yiji-tag {
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
}
.yiji-tag.yi {
    background: #e8f5e9;
    color: #27ae60;
}
.yiji-tag.ji {
    background: #fdf0ef;
    color: #e74c3c;
}

.huangli-full-shensha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.shensha-box {
    background: #fff;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}
.shensha-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}
.shensha-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.shensha-tag {
    padding: 3px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}
.shensha-tag.ji {
    background: #e8f5e9;
    color: #27ae60;
}
.shensha-tag.xiong {
    background: #fdf0ef;
    color: #e74c3c;
}

.huangli-full-shichen {
    background: #fff;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    margin-bottom: 24px;
}
.shichen-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}
.shichen-title i {
    color: #C41A1A;
    margin-right: 8px;
}
.shichen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.shichen-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    border-left: 4px solid #ddd;
    transition: transform 0.2s;
}
.shichen-item:hover {
    transform: scale(1.02);
}
.shichen-item.huangdao {
    border-left-color: #27ae60;
}
.shichen-item.heidiao {
    border-left-color: #e74c3c;
}
.shichen-item.ripo {
    background: #fdf0ef;
}
.shichen-time {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.shichen-range {
    font-size: 12px;
    color: #999;
}
.shichen-ganzhi {
    font-size: 13px;
    color: #666;
}
.shichen-type {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin: 4px 0;
}
.shichen-type.huang {
    background: #e8f5e9;
    color: #27ae60;
}
.shichen-type.hei {
    background: #fdf0ef;
    color: #e74c3c;
}
.shichen-ripo {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 600;
}
.shichen-chong {
    font-size: 12px;
    color: #999;
}

.huangli-full-nav {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}
.nav-btn {
    padding: 10px 28px;
    border-radius: 30px;
    background: #fff;
    color: #555;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.nav-btn:hover {
    border-color: #C41A1A;
    color: #C41A1A;
    background: #fef0ed;
}
.nav-btn.today-btn {
    background: #C41A1A;
    color: #fff;
    border-color: #C41A1A;
}
.nav-btn.today-btn:hover {
    background: #a01515;
    border-color: #a01515;
}

/* ============================================================
   共用响应式
   ============================================================ */
@media (max-width: 768px) {
    .qiming-search-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .qiming-search-item {
        min-width: auto;
    }
    .qiming-search-btn {
        flex: 1;
    }
    .btn-submit-small {
        width: 100%;
        justify-content: center;
    }
    .gender-btn-group-small {
        flex-wrap: wrap;
    }
    .gender-btn-small {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
    .name-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .name-display {
        width: 100%;
    }
    .name-full {
        font-size: 24px;
    }
    .char-info-list {
        flex-direction: column;
        gap: 10px;
    }
    .char-item {
        min-width: auto;
    }
    .analysis-item {
        flex-direction: column;
        gap: 2px;
    }
    .analysis-label {
        min-width: auto;
    }
    .huangli-full-yiji {
        grid-template-columns: 1fr;
    }
    .huangli-full-shensha {
        grid-template-columns: 1fr;
    }
    .huangli-full-grid {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
    }
    .shichen-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .huangli-full-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .huangli-full-grid {
        grid-template-columns: 1fr;
    }
    .shichen-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .shichen-item {
        padding: 8px 10px;
    }
}