/* ============================================================
   起名主题 - 全局样式表（中式典雅版）
   设计令牌：深朱红 #A93121 / 描金 #C9A063 / 暖白底 #FBF7F3
   ============================================================ */

:root {
    --brand: #A93121;
    --brand-light: #B93A28;
    --brand-dark: #8C2718;
    --brand-soft: #FBF1EC;
    --gold: #C9A063;
    --gold-light: #DAB590;
    --gold-line: rgba(201, 160, 99, 0.38);
    --accent: #FB6304;
    --bg: #FBF7F3;
    --card: #FFFFFF;
    --line: #EFE3D9;
    --line-soft: #F5EDE6;
    --text: #2B2622;
    --text-2: #6B6159;
    --text-3: #9C928A;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow: 0 6px 24px rgba(169, 49, 33, 0.07);
    --shadow-hover: 0 14px 40px rgba(169, 49, 33, 0.14);
    --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text-2);
    line-height: 1.8;
    font-size: 16px;
}

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

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

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

/* ===== 顶部信息条 ===== */
.topbar {
    background: linear-gradient(90deg, #7E2214 0%, var(--brand) 52%, #B93A28 100%);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    letter-spacing: 0.5px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 40px;
}
.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}
.topbar i {
    color: var(--gold-light);
    margin-right: 6px;
}
.topbar a:hover {
    color: #fff;
}
.topbar-tel {
    color: #fff;
    font-weight: 600;
}
.topbar-tel i {
    color: var(--gold);
}

/* ===== 顶部导航 ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 18px rgba(43, 38, 34, 0.06);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    flex-shrink: 0;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 印章式品牌标 */
.logo-seal {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(150deg, #C0392B 0%, var(--brand) 55%, #7E2214 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 18px rgba(169, 49, 33, 0.26);
    transition: transform 0.3s, box-shadow 0.3s;
}
.logo-seal::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    border: 1px solid rgba(201, 160, 99, 0.62);
    pointer-events: none;
}
.logo a:hover .logo-seal {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(169, 49, 33, 0.32);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.14;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}
.logo-text strong {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: 3px;
    font-family: var(--serif);
}
.logo-text em {
    font-size: 12px;
    color: var(--text-3);
    font-style: normal;
    letter-spacing: 1.5px;
    margin-top: 2px;
}
.logo a:hover .logo-text strong {
    color: var(--brand-dark);
}

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

.nav a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.25s;
    color: var(--text-2);
    white-space: nowrap;
}
.nav a i {
    margin-right: 6px;
    font-size: 14px;
    color: var(--brand);
    opacity: 0.8;
}
.nav a:hover {
    color: var(--brand);
    background: var(--brand-soft);
}
.nav a:hover i {
    opacity: 1;
}
.nav a.active {
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    box-shadow: 0 6px 18px rgba(169, 49, 33, 0.28);
}
.nav a.active i {
    color: #fff;
    opacity: 1;
}

/* ===== 头部搜索 ===== */
.site-search {
    position: relative;
    flex: 0 0 250px;
}
.site-search input {
    width: 100%;
    height: 42px;
    padding: 0 46px 0 18px;
    border: 1px solid var(--line);
    background: #FBF8F5;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: all 0.25s;
    font-family: inherit;
}
.site-search input::placeholder {
    color: var(--text-3);
}
.site-search input:focus {
    background: #fff;
    border-color: var(--gold-line);
    box-shadow: 0 0 0 4px rgba(201, 160, 99, 0.13);
}
.site-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-light), var(--brand));
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s;
}
.site-search button:hover {
    background: var(--brand-dark);
}

.menu-toggle {
    display: none;
    background: linear-gradient(145deg, var(--brand-light), var(--brand));
    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(29, 20, 16, 0.55);
    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 var(--line-soft);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-3);
    padding: 5px;
}
.mobile-menu-close:hover {
    color: var(--brand);
}

.mobile-menu-body {
    padding: 10px 0;
}
.mobile-menu-body a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--text-2);
    font-size: 17px;
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
    transition: all 0.3s;
}
.mobile-menu-body a i {
    width: 24px;
    margin-right: 12px;
    color: var(--brand);
    font-size: 16px;
}
.mobile-menu-body a:hover,
.mobile-menu-body a.active {
    background: var(--brand-soft);
    color: var(--brand);
}
.mobile-menu-body a.active {
    font-weight: 600;
}

/* ===== 通用区块标题 ===== */
.section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 8px 0 30px;
}
.section-head h2 {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    font-family: var(--serif);
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 16px;
}
.section-head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 62px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head p {
    font-size: 14px;
    color: var(--text-3);
    letter-spacing: 2px;
    margin-top: 12px;
}

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

.hero-left {
    flex: 1.15;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px 42px 44px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.hero-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
}

.hero-left .form-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: var(--serif);
}
.hero-left .form-title i {
    margin-right: 10px;
}
.hero-left .form-sub {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 26px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group label .required {
    color: var(--brand);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 17px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    background: #FBF8F5;
    font-family: inherit;
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold-line);
    box-shadow: 0 0 0 5px rgba(201, 160, 99, 0.12);
    background: #fff;
}
.form-control::placeholder {
    color: var(--text-3);
}
.form-control[readonly] {
    background: #FBF8F5;
    cursor: pointer;
}
.form-control[readonly]:hover {
    border-color: var(--gold-line);
}

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

.gender-btn {
    padding: 12px 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FBF8F5;
    color: var(--text-2);
    font-size: 16px;
    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: var(--gold-line);
    color: var(--brand);
    background: var(--brand-soft);
}

.gender-btn.active {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    box-shadow: 0 6px 18px rgba(169, 49, 33, 0.25);
}

.gender-btn.active:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: var(--brand-dark);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 55%, var(--brand-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    letter-spacing: 6px;
    box-shadow: 0 10px 26px rgba(169, 49, 33, 0.26);
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(169, 49, 33, 0.36);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit i {
    margin-right: 12px;
}

.hero-right {
    flex: 1;
    background: linear-gradient(155deg, #FCF4ED 0%, #F7E8DC 52%, #F2DCCB 100%);
    border-radius: var(--radius-lg);
    padding: 46px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #F0DFD0;
    position: relative;
    overflow: hidden;
}
.hero-right::before {
    content: '祥';
    position: absolute;
    right: -34px;
    bottom: -56px;
    font-size: 230px;
    color: rgba(169, 49, 33, 0.05);
    font-family: var(--serif);
    line-height: 1;
}
.hero-right::after {
    content: '福';
    position: absolute;
    left: -26px;
    top: -26px;
    font-size: 150px;
    color: rgba(201, 160, 99, 0.13);
    font-family: var(--serif);
    line-height: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 26px;
    border-radius: 999px;
    border: 1px solid var(--gold-line);
    margin-bottom: 20px;
    align-self: flex-start;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 50px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.14;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-family: var(--serif);
    position: relative;
    z-index: 1;
}
.hero-title span {
    color: var(--brand);
    font-size: 54px;
}

.hero-sub {
    font-size: 22px;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 8px;
    position: relative;
    z-index: 1;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-2);
    line-height: 2;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--gold-line);
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--brand);
    display: block;
    line-height: 1.2;
    font-family: var(--serif);
}
.stat-label {
    font-size: 14px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gold-line);
}

/* ===== 服务入口宫格 ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 6px 0 50px;
}
.service-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-line);
}
.service-card .ico {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-light), var(--brand-dark));
    box-shadow: 0 8px 20px rgba(169, 49, 33, 0.22);
}
.service-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.service-card p {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.7;
}

/* ===== 平台优势条 ===== */
.adv-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0 0 50px;
}
.adv-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}
.adv-item i {
    font-size: 26px;
    color: var(--gold);
    margin-top: 2px;
}
.adv-item h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.adv-item p {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.7;
}

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

.article-section .section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 24px;
    padding-left: 18px;
    border-left: 5px solid var(--brand);
    font-family: var(--serif);
}
.article-section .section-title i {
    color: var(--brand);
    margin-right: 10px;
}

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

.article-col {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 26px 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 0;
    overflow: hidden;
}
.article-col:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.article-col .col-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.article-col .col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 52px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.article-col .col-title i {
    color: var(--brand);
    margin-right: 10px;
}
.article-col .col-title .more-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-3);
    transition: color 0.3s;
    flex-shrink: 0;
}
.article-col .col-title .more-link:hover {
    color: var(--brand);
}

.article-item {
    padding: 11px 0;
    border-bottom: 1px dashed var(--line-soft);
    overflow: hidden;
}
.article-item:last-child {
    border-bottom: none;
}
.article-item a {
    display: block;
    font-size: 16px;
    color: var(--text-2);
    transition: color 0.2s;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-item a:hover {
    color: var(--brand);
}
.article-item .meta {
    font-size: 13px;
    color: var(--text-3);
    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: var(--brand-soft);
    color: var(--brand);
}
.article-item .badge-recommend {
    background: #F7F1EA;
    color: var(--brand);
}

/* ===== 底部 ===== */
.footer {
    background: #2A2320;
    color: #B9AFA6;
    padding: 46px 0 0;
    margin-top: 40px;
    font-size: 14px;
    line-height: 2;
}
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-brand .logo-seal {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--brand-light), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.footer-brand strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    font-family: var(--serif);
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 9px;
    font-size: 14px;
}
.footer-col a {
    color: #B9AFA6;
    transition: color 0.25s;
}
.footer-col a:hover {
    color: var(--gold-light);
}
.footer-col i {
    color: var(--gold);
    margin-right: 8px;
    width: 14px;
}
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-tags a {
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 12.5px;
}
.footer-tags a:hover {
    border-color: var(--gold-line);
    background: rgba(201, 160, 99, 0.1);
}
.footer-bottom {
    text-align: center;
    padding: 18px 0 22px;
    font-size: 13px;
    color: #8B8178;
    line-height: 1.9;
}
.footer-bottom a {
    color: #8B8178;
}
.footer-bottom a:hover {
    color: var(--gold-light);
}

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

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

.qiming-search-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.qiming-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
}

.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: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

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

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

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

.btn-submit-small {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(169, 49, 33, 0.22);
}
.btn-submit-small:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(169, 49, 33, 0.3);
}

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

.gender-btn-small {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FBF8F5;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.gender-btn-small:hover {
    border-color: var(--gold-line);
    color: var(--brand);
    background: var(--brand-soft);
}
.gender-btn-small.active {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
}

.empty-state-result {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.empty-state-result i {
    font-size: 64px;
    color: #E5D9CE;
    display: block;
    margin-bottom: 16px;
}
.empty-state-result p {
    font-size: 17px;
    margin-bottom: 6px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
}
.alert-error {
    background: #FDF2F0;
    color: #B03227;
    border: 1px solid #F3D9D3;
}
.alert-warning {
    background: #FFF6EA;
    color: #C4620A;
    border: 1px solid #F2DCBE;
}

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

.bazi-analysis {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.bazi-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
}
.bazi-title i {
    color: var(--brand);
    margin-right: 8px;
}

.bazi-info-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.bazi-info-item {
    font-size: 15px;
    color: var(--text-2);
}
.bazi-info-item strong {
    color: var(--text);
}

.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: var(--text-3);
    font-weight: 500;
}
.bazi-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.bazi-advice {
    margin-top: 14px;
    padding: 14px 18px;
    background: #FBF6F1;
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
}
.bazi-advice i {
    color: var(--gold);
    margin-right: 8px;
}

.name-list-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid var(--brand);
    font-family: var(--serif);
}
.name-list-title i {
    color: var(--brand);
    margin-right: 8px;
}

.name-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 28px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.3s, box-shadow 0.3s;
}
.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.name-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.name-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.score-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    font-family: var(--serif);
}
.score-label {
    font-size: 15px;
    color: var(--text-3);
}

.name-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.name-full {
    font-size: 27px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
    font-family: var(--serif);
}
.name-match {
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #F4EFE9;
    color: var(--text-3);
}
.name-match.best {
    background: var(--brand-soft);
    color: var(--brand);
}

.name-gender {
    flex-shrink: 0;
}
.gender-tag {
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.gender-tag.male {
    background: #E9F1FB;
    color: #2E6CB5;
}
.gender-tag.female {
    background: #FBE9EE;
    color: #B5325A;
}
.gender-tag.unisex {
    background: #F4EFE9;
    color: var(--text-3);
}

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

.char-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FAF6F1;
    padding: 10px 16px;
    border-radius: 12px;
    min-width: 160px;
    border: 1px solid var(--line-soft);
}
.char-char {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
    width: 44px;
    text-align: center;
    font-family: var(--serif);
}
.char-detail p {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.6;
}
.char-detail p span:last-child {
    color: var(--text-2);
    font-weight: 500;
}
.char-label {
    font-size: 12px;
    color: #C3B7AC;
}

.char-analysis {
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.analysis-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
}
.analysis-label {
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
    min-width: 90px;
}
.analysis-text {
    flex: 1;
}
.analysis-text b {
    color: var(--brand);
}
.wuxing-tag {
    color: var(--brand);
    font-weight: 600;
}
.poetry-text {
    color: var(--text-2);
    line-height: 1.8;
}
.poetry-highlight {
    color: var(--brand);
    font-weight: 700;
}

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

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

.huangli-full-header {
    text-align: center;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}
.huangli-full-header h2 {
    font-size: 27px;
    color: var(--text);
    font-family: var(--serif);
}
.huangli-full-header p {
    font-size: 19px;
    color: var(--brand);
    font-weight: 600;
    margin-top: 4px;
}

.huangli-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    margin-bottom: 24px;
}
.hl-full-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
}
.hl-full-item:last-child {
    border-bottom: none;
}
.hl-full-label {
    font-size: 13px;
    color: var(--text-3);
    display: block;
}
.hl-full-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.hl-full-value.red {
    color: var(--brand);
}

.huangli-full-yiji {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.yiji-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.yiji-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
}
.yiji-title.yi {
    color: #27864A;
}
.yiji-title.ji {
    color: #C0392B;
}
.yiji-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.yiji-tag {
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}
.yiji-tag.yi {
    background: #EDF7F0;
    color: #27864A;
}
.yiji-tag.ji {
    background: #FDF1EF;
    color: #C0392B;
}

.huangli-full-shensha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.shensha-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.shensha-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}
.shensha-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.shensha-tag {
    padding: 3px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}
.shensha-tag.ji {
    background: #EDF7F0;
    color: #27864A;
}
.shensha-tag.xiong {
    background: #FDF1EF;
    color: #C0392B;
}

.huangli-full-shichen {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    margin-bottom: 24px;
}
.shichen-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}
.shichen-title i {
    color: var(--brand);
    margin-right: 8px;
}
.shichen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.shichen-item {
    background: #FAF6F1;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    border-left: 4px solid #E4D8CC;
    transition: transform 0.2s;
}
.shichen-item:hover {
    transform: scale(1.02);
}
.shichen-item.huangdao {
    border-left-color: #27864A;
}
.shichen-item.heidiao {
    border-left-color: #C0392B;
}
.shichen-item.ripo {
    background: #FDF1EF;
}
.shichen-time {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.shichen-range {
    font-size: 12px;
    color: var(--text-3);
}
.shichen-ganzhi {
    font-size: 13px;
    color: var(--text-2);
}
.shichen-type {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin: 4px 0;
}
.shichen-type.huang {
    background: #EDF7F0;
    color: #27864A;
}
.shichen-type.hei {
    background: #FDF1EF;
    color: #C0392B;
}
.shichen-ripo {
    font-size: 11px;
    color: #C0392B;
    font-weight: 600;
}
.shichen-chong {
    font-size: 12px;
    color: var(--text-3);
}

.huangli-full-nav {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}
.nav-btn {
    padding: 10px 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--text-2);
    border: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.nav-btn:hover {
    border-color: var(--gold-line);
    color: var(--brand);
    background: var(--brand-soft);
}
.nav-btn.today-btn {
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    border-color: transparent;
}
.nav-btn.today-btn:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
    .nav a {
        padding: 8px 14px;
        font-size: 15px;
    }
    .site-search {
        flex: 0 0 210px;
    }
}

@media (max-width: 992px) {
    .topbar-hide-sm {
        display: none;
    }
    .nav {
        display: none;
    }
    .site-search {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-section {
        flex-direction: column;
        gap: 18px;
        padding: 28px 0 8px;
    }
    .hero-right {
        padding: 32px 30px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-title span {
        font-size: 42px;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adv-band {
        grid-template-columns: 1fr;
    }
    .article-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .topbar-left span:nth-child(2) {
        display: none;
    }
    .topbar-inner {
        font-size: 12px;
    }
    .topbar-right a {
        display: none;
    }
    .header-content {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }
    .logo-seal {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 22px;
    }
    .logo-seal::after {
        border-radius: 9px;
    }
    .logo-text {
        padding-left: 11px;
    }
    .logo-text strong {
        font-size: 21px;
        letter-spacing: 2px;
    }
    .logo-text em {
        font-size: 11px;
    }
    .hero-left {
        padding: 26px 22px 30px;
    }
    .hero-left .form-title {
        font-size: 22px;
    }
    .form-control {
        font-size: 16px;
        padding: 13px 18px;
    }
    .gender-btn {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 120px;
    }
    .btn-submit {
        font-size: 19px;
        padding: 16px;
        letter-spacing: 4px;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-title span {
        font-size: 34px;
    }
    .hero-sub {
        font-size: 19px;
        letter-spacing: 5px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .stat-divider {
        display: none;
    }
    .stat-num {
        font-size: 25px;
    }
    .section-head h2 {
        font-size: 24px;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .service-card {
        padding: 22px 16px 20px;
    }
    .article-grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .article-col {
        padding: 18px 20px 20px;
    }
    .article-item a {
        font-size: 15.5px;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .container {
        padding: 0 16px;
    }

    /* 内页共用 */
    .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: 23px;
    }
    .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) {
    .container {
        padding: 0 12px;
    }
    .topbar-left span {
        font-size: 11.5px;
    }
    .hero-left {
        padding: 20px 16px 24px;
    }
    .hero-left .form-title {
        font-size: 19px;
    }
    .hero-left .form-sub {
        font-size: 13px;
    }
    .hero-right {
        padding: 24px 20px;
    }
    .hero-title {
        font-size: 25px;
    }
    .hero-title span {
        font-size: 29px;
    }
    .hero-sub {
        font-size: 17px;
        letter-spacing: 3px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .btn-submit {
        font-size: 17px;
        padding: 14px;
        letter-spacing: 3px;
    }
    .form-control {
        font-size: 15px;
        padding: 11px 16px;
    }
    .form-group label {
        font-size: 14px;
    }
    .gender-btn {
        padding: 10px 16px;
        font-size: 15px;
        max-width: 100%;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .article-col .col-title {
        font-size: 16px;
    }
    .article-item a {
        font-size: 14.5px;
    }
    .footer {
        font-size: 13px;
    }
    .huangli-full-grid {
        grid-template-columns: 1fr;
    }
    .shichen-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .shichen-item {
        padding: 8px 10px;
    }
}

/* ============================================================
   首页右侧：今日老黄历
   ============================================================ */
.hero-almanac {
    flex: 1;
    display: flex;
    min-width: 0;
}
.almanac-card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 26px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.almanac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
}
.almanac-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.almanac-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--serif);
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.almanac-title i {
    color: var(--brand);
    font-size: 16px;
}
.almanac-more {
    font-size: 13.5px;
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .25s;
}
.almanac-more:hover {
    color: var(--brand);
}


.almanac-date {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0 14px;
}
.almanac-day {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    font-family: var(--serif);
    line-height: 1;
    border-radius: 18px;
    background: linear-gradient(150deg, #C0392B, var(--brand) 55%, #7E2214);
    box-shadow: 0 10px 22px rgba(169, 49, 33, 0.24);
    position: relative;
}
.almanac-day::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 14px;
    border: 1px solid rgba(201, 160, 99, 0.55);
}
.almanac-date-info {
    flex: 1;
    min-width: 0;
}
.almanac-solar {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text);
}
.almanac-lunar {
    font-size: 14.5px;
    color: var(--brand);
    font-weight: 600;
    margin-top: 3px;
}
.almanac-gz {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 2px;
}

.almanac-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 14px;
    background: #FBF6F1;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    margin-bottom: 14px;
}
.almanac-meta span {
    font-size: 13.5px;
    color: var(--text-2);
}
.almanac-meta em {
    font-style: normal;
    color: var(--text-3);
    margin-right: 5px;
}

.almanac-yiji {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.ay-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.ay-label {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    font-family: var(--serif);
}
.ay-yi .ay-label { background: linear-gradient(140deg, #2E9E5B, #27864A); }
.ay-ji .ay-label { background: linear-gradient(140deg, #D6533F, #C0392B); }
.ay-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    padding-top: 3px;
}
.ay-tag {
    padding: 2px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.ay-yi .ay-tag { background: #EDF7F0; color: #27864A; }
.ay-ji .ay-tag { background: #FDF1EF; color: #C0392B; }
.ay-empty {
    font-size: 13px;
    color: var(--text-3);
    padding-top: 4px;
}

.almanac-shichen {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: auto;
}
.as-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 2px;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    background: #FAF6F1;
}
.as-item b {
    font-size: 12.5px;
    color: var(--text);
    font-weight: 700;
    font-family: var(--serif);
}
.as-item i {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
}
.as-item.good { background: #F2FAF4; border-color: #DAEDE1; }
.as-item.good i { color: #27864A; }
.as-item.bad { background: #FDF4F2; border-color: #F6DDD7; }
.as-item.bad i { color: #C0392B; }

.almanac-fallback {
    font-size: 13.5px;
    color: var(--text-3);
    padding-top: 10px;
}
.almanac-fallback a { color: var(--brand); }

@media (max-width: 480px) {
    .almanac-card { padding: 20px 16px 18px; }
    .almanac-shichen { grid-template-columns: repeat(4, 1fr); }
    .almanac-day { flex: 0 0 64px; width: 64px; height: 64px; font-size: 34px; border-radius: 15px; }
    .almanac-title { font-size: 17px; letter-spacing: 1px; }
}

/* ============================================================
   日期 / 时辰选择弹窗定位
   原组件是移动端「底部弹出」式（.gear-date160 全屏遮罩 + 面板贴底）
   桌面端改为居中弹窗；移动端保持底部弹出（符合触屏习惯）
   注：data.css 在本文件之后加载，故用 body 前缀提升优先级覆盖
   ============================================================ */
@media (min-width: 768px) {
    body .gear-date160 {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }
    body .gear-date160 .date-ctrl {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 620px;
        max-height: 92%;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    }
}

/* ============================================================
   内页标题（起名 / 姓名打分 / 老黄历）—— 补齐 H1 层级
   ============================================================ */
.page-title {
    margin: 30px 0 20px;
}
.page-title h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    font-family: var(--serif);
    letter-spacing: 3px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}
.page-title h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.page-title p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-3);
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .page-title { margin: 18px 0 14px; }
    .page-title h1 { font-size: 22px; letter-spacing: 2px; }
}

/* 首页区块（带 H2 区块标题）*/
.home-sec {
    margin: 0 0 8px;
}
.home-sec .service-grid {
    margin: 0 0 40px;
}
.home-sec .adv-band {
    margin: 0 0 34px;
}
.nav.mobile-open{display:flex}
@media(max-width:992px){.nav.mobile-open{position:absolute;top:78px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:14px 24px;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}.nav.mobile-open a{display:block}}
/* emlog inner-page compatibility */
.shell{max-width:1260px;margin:0 auto;padding:0 24px}.tool-page{padding:40px 24px}.tool-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.tool-tabs a{background:#fff;border:1px solid var(--line);padding:10px 18px;border-radius:10px}.tool-tabs a.active{background:var(--brand);color:#fff}.tool-card,.article-detail article,.widget,.quote{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}.tool-card{max-width:900px;margin:auto}.tool-form{display:grid;grid-template-columns:1fr 1fr auto;gap:15px;align-items:end;margin:24px 0}.tool-form.one-field{grid-template-columns:1fr auto}.tool-form input,.tool-form select{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbf8f5}.primary-btn{padding:12px 24px;border:0;border-radius:12px;background:var(--brand);color:#fff}.api-result{margin-top:24px;padding:24px;background:var(--brand-soft);border-left:4px solid var(--gold)}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.result-grid span{padding:12px;background:#fff}.result-grid strong{display:block;color:var(--brand)}.score-result{display:flex;align-items:center;gap:24px}.score-circle{width:100px;height:100px;border:5px solid var(--brand);border-radius:50%;display:grid;place-content:center;text-align:center;color:var(--brand)}.score-circle strong{font-size:32px}.article-detail{max-width:1260px;margin:auto;padding:46px 24px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.article-detail h1{font:700 36px var(--serif);color:var(--text)}.article-content{margin-top:25px;color:var(--text);line-height:2}.article-content img{max-width:100%;height:auto}.sidebar{display:flex;flex-direction:column;gap:16px}.pagination{text-align:center;padding:24px}.alert-error{margin-top:16px}.bazi-text{font:24px var(--serif);color:var(--brand);letter-spacing:5px;margin:10px 0}.name-results{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}.name-card{padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px}.name-card strong{font:24px var(--serif);color:var(--brand);margin-right:12px}.name-card span{color:var(--muted);font-size:13px}.name-card p{margin:8px 0 0;color:var(--muted);font-size:13px}.qiming-pages{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:24px 0}.qiming-pages a{min-width:30px;padding:5px 9px;text-align:center;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:#fff}.qiming-pages a.active,.qiming-pages a:hover{background:var(--brand);border-color:var(--brand);color:#fff}@media(max-width:768px){.name-results{grid-template-columns:1fr}}
@media(max-width:768px){.shell{padding:0 16px}.tool-form,.tool-form.one-field,.result-grid,.article-detail{grid-template-columns:1fr}.tool-card{padding:22px}.article-detail{padding:28px 16px}.score-result{display:block}.score-circle{margin-bottom:15px}}
.service-card .ico img{width:100%;height:100%;object-fit:cover;display:block}
.category-page{padding-top:34px;padding-bottom:50px}.category-article-list{display:grid;gap:18px}.category-article-item{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.category-cover img{width:100%;height:150px;object-fit:cover;border-radius:12px}.category-article-body h2{font-family:var(--serif);font-size:22px;margin:0 0 8px;color:var(--text)}.category-meta{font-size:13px;color:var(--text-3);margin-bottom:10px}.category-excerpt{color:var(--text-2);line-height:1.9}.category-excerpt img{max-width:100%;height:auto}.category-article-item .read-more{display:inline-block;margin-top:10px;color:var(--brand)}@media(max-width:768px){.category-article-item{grid-template-columns:1fr}.category-cover img{height:190px}}
.category-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}.category-main,.category-side-box{background:#fff}.category-main{padding:20px 30px}.category-breadcrumb{padding:8px 0 20px;border-bottom:1px solid var(--line);color:var(--text-3);font-size:14px}.category-breadcrumb span{margin:0 8px}.category-article-list{gap:0}.category-article-item{grid-template-columns:160px minmax(0,1fr);gap:20px;padding:24px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}.category-cover img{height:105px;border-radius:4px}.category-article-body h2{font-family:inherit;font-size:19px;font-weight:700;margin:0 0 10px}.category-badge{display:inline-block;margin-right:10px;padding:4px 10px;border-radius:4px;background:#f3f3f3;color:#888;font-size:13px;font-weight:400}.category-excerpt{font-size:14px;line-height:1.8;color:#666}.category-article-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;color:#aaa;font-size:13px}.category-article-foot a{padding:8px 25px;border:1px solid #eee;border-radius:5px;color:#999}.category-sidebar{display:flex;flex-direction:column;gap:16px}.category-side-box{padding:20px}.category-side-box h3{font-size:20px;font-weight:500;margin:0 0 16px;padding-bottom:14px;border-bottom:1px solid #eee;color:#333}.category-side-box h3 span{color:#ef4444}.category-chips{display:flex;flex-wrap:wrap;gap:10px}.category-chips a{padding:9px 16px;border:1px solid #eee;border-radius:4px;color:#888}.category-chips a.active,.category-chips a:hover{background:#4f91ff;color:#fff;border-color:#4f91ff}.category-rank{list-style:none;margin:0;padding:0}.category-rank li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #eee}.category-rank i{display:inline-grid;place-items:center;min-width:30px;height:20px;border-radius:5px;background:#ff2d2d;color:#fff;font-style:normal;font-size:12px}.category-rank a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#555}@media(max-width:900px){.category-layout{grid-template-columns:1fr}.category-sidebar{display:none}}@media(max-width:600px){.category-main{padding:15px}.category-article-item{grid-template-columns:110px minmax(0,1fr)}.category-cover img{height:85px}.category-excerpt{display:none}}
