/* ============================================================
   古都长安汉服妆造体验馆
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
:root {
    --main: #a64b4b;
    --light: #f8efef;
    --dark: #333;
    --gray: #666;
}
body {
    background-color: #fff;
    color: var(--dark);
    line-height: 1.7;
    padding-bottom: 70px;
}
/* ===== 顶部导航（全站统一） ===== */
header {
    background: #fff;
    box-shadow: 0 2px 8px #00000015;
    position: sticky;
    top: 0;
    z-index: 99;
}
.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative; /* 给下拉菜单做定位父级 */
}
.logo {
    font-size: 22px;
    color: var(--main);
    font-weight: bold;
}
.logo a {
    color: var(--main);
    text-decoration: none;
}
.nav-list {
    display: flex;
    gap: 30px;
}
.nav-list a {
    text-decoration: none;
    color: var(--dark);
    transition: 0.3s;
}
.nav-list a:hover {
    color: var(--main);
}
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    user-select: none;
}
/* ===== Banner（首页用） ===== */
.banner {
    height: 80vh;
    min-height: 420px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("images/banner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
.banner-text h1 {
    font-size: 38px;
    margin-bottom: 14px;
}
.banner-text p {
    font-size: 18px;
    margin-bottom: 26px;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn:hover {
    background: #8c3c3c;
}
/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--main);
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: "";
    width: 70px;
    height: 3px;
    background: var(--main);
    display: block;
    margin: 10px auto 0;
}
/* ===== 门店优势 ===== */
.advantage-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}
.adv-item {
    text-align: center;
    padding: 25px;
    background: var(--light);
    border-radius: 10px;
}
.adv-item h3 {
    margin:12px 0;
    color: var(--main);
}
/* ===== 套餐表格 ===== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top:20px;
}
.price-table th,.price-table td {
    border:1px solid #eee;
    padding:14px;
    text-align:center;
}
.price-table th {
    background: var(--light);
    color: var(--main);
}
/* ===== 客片区域 ===== */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:16px;
}
.gallery-item img {
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:8px;
    cursor: pointer;
    transition: 0.3s;
}
.gallery-item img:hover{
    transform: scale(1.03);
}
/* 图片弹窗 */
.img-modal{
    position: fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.img-modal.show{
    display:flex;
}
.img-modal img{
    max-width:90%;
    max-height:90vh;
    border:3px solid #fff;
}
.img-close{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:36px;
    cursor:pointer;
}
/* ===== FAQ ===== */
.faq-item {
    border:1px solid #eee;
    border-radius:8px;
    margin-bottom:12px;
}
.faq-q {
    padding:16px 20px;
    background: var(--light);
    cursor:pointer;
    font-weight:bold;
}
.faq-a {
    padding:0 20px;
    max-height:0;
    overflow:hidden;
    transition:0.3s;
}
.faq-a.show {
    padding:16px 20px;
    max-height:600px;
}
/* ===== 地址模块 ===== */
.info-box {
    background: var(--light);
    padding:30px;
    border-radius:10px;
}
/* ===== 首页预约广告位 ===== */
#ad {
    background: url(http://www.hanhuihui.com/style/tpp.png) no-repeat center;
    height: 250px;
    width: 100%;
}
/* ===== 预约表单 ===== */
.form-wrap{
    max-width:600px;
    margin:0 auto;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 0 12px rgba(166,75,75,0.12);
}
.form-item{
    margin-bottom:18px;
}
.form-item label{
    display:block;
    margin-bottom:6px;
}
.form-item input,.form-item select,.form-item textarea{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:16px;
}
textarea{
    min-height:100px;
    resize:vertical;
}
/* ===== 底部悬浮按钮 ===== */
.float-bar {
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#fff;
    display:flex;
    z-index:98;
    box-shadow:0 -2px 10px #00000018;
}
.float-bar a {
    flex:1;
    text-align:center;
    padding:12px 0;
    text-decoration:none;
    color:#fff;
}
.float-bar a:nth-child(1){
    background:#a64b4b;
}
.float-bar a:nth-child(2){
    background:#6b4242;
}
footer {
    text-align:center;
    color:#888;
    font-size:14px;
}
/* ===== 底部热门文章 ===== */
.footer-hot {
    max-width: 820px;
    margin: 14px auto 0;
    line-height: 2.1;
}
.footer-hot strong {
    color: #999;
}
.footer-hot a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin: 0 8px;
    display: inline-block;
    transition: 0.3s;
}
.footer-hot a:hover {
    color: var(--main);
    text-decoration: underline;
}
/* ============================================================
   以下为分类页 / 文章页 / 搜索 / 标签 / 404 / 分页 通用样式（首页风格）
   ============================================================ */
/* 页面统一卡片容器 */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}
.th_top { margin-top: 30px; }
/* 首页词库内链胶囊 */
.word-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.word-chip {
    display: inline-block;
    background: var(--light);
    color: var(--main);
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #f0e0e0;
}
.word-chip:hover {
    background: var(--main);
    color: #fff;
    border-color: var(--main);
}
/* 面包屑 */
.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: var(--light);
    border-radius: 8px;
}
.breadcrumb a { color: var(--main); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
/* 页面大标题 */
.page-title {
    text-align: center;
    font-size: 26px;
    color: var(--main);
    margin: 30px 0 30px;
    position: relative;
}
.page-title::after {
    content: "";
    width: 70px;
    height: 3px;
    background: var(--main);
    display: block;
    margin: 10px auto 0;
}
/* 文章卡片（分类/搜索列表） */
.article-card {
    background: #fff;
    border: 1px solid #f0e6e6;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: 0.3s;
}
.article-card:hover {
    border-color: #a64b4b55;
    box-shadow: 0 4px 14px rgba(166,75,75,0.08);
}
.article-card h2 {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.5;
}
.article-card h2 a {
    color: var(--dark);
    text-decoration: none;
}
.article-card h2 a:hover { color: var(--main); }
.article-card .post-meta {
    color: #999;
    font-size: 13px;
}
/* 文章正文 */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--dark);
    word-break: break-word;
}
.article-content h2 {
    font-size: 20px;
    color: var(--main);
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--main);
}
.article-content h3 {
    font-size: 18px;
    margin: 22px 0 10px;
}
.article-content h4 {
    font-size: 16px;
    margin: 18px 0 8px;
}
.article-content p { margin: 12px 0; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-content a { color: #a64b4b; }
.article-content ul, .article-content ol { margin: 12px 0 12px 24px; }
.article-content table { max-width: 100%; border-collapse: collapse; }
.article-content table td, .article-content table th { border: 1px solid #eee; padding: 8px 12px; }
/* 上一篇 / 下一篇 */
.prev-next {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--light);
    border-radius: 8px;
    font-size: 14px;
    line-height: 2;
}
.prev-next a { color: var(--main); text-decoration: none; }
.prev-next a:hover { text-decoration: underline; }
/* 分词解释 / 词语信息块 */
.info {
    background: var(--light);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.info b { color: var(--main); }
.info .bm { color: #888; font-size: 13px; margin: 6px 0; }
.info p { color: #666; font-size: 14px; margin: 6px 0; }
/* 相关词标签 */
.hot-tags { padding: 6px 0; }
.hot-tags ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.litags a {
    display: inline-block;
    background: var(--light);
    color: var(--main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}
.litags a:hover { background: var(--main); color: #fff; }
/* 分页 */
.pagebar { text-align: center; margin: 30px 0; }
.pagebar a, .pagebar span {
    display: inline-block;
    min-width: 36px;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    background: #fff;
    font-size: 14px;
}
.pagebar a:hover { background: var(--main); color: #fff; border-color: var(--main); }
.pagebar .now-page { background: var(--main); color: #fff; border-color: var(--main); }
/* 搜索框 */
.search-box {
    max-width: 640px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
}
.search-box input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}
.search-box button {
    padding: 12px 28px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.search-box button:hover { background: #8c3c3c; }
/* 404 */
.page404 { text-align: center; padding: 50px 20px; }
.page404 h1 { font-size: 72px; color: var(--main); }
.page404 h3 { color: var(--dark); margin: 16px 0 30px; font-size: 20px; }
.page404 .goindex404 { margin-top: 20px; }
.page404 .goindex404 a { color: var(--main); font-size: 16px; }
/* 通用小节卡片（相关词 / 分词解释区标题） */
.block-title {
    font-size: 20px;
    color: var(--main);
    margin: 34px 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--main);
}
/* 移动端适配 */
@media(max-width:768px){
    .hamburger {
        display:block;
    }
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .nav-list a {
        display:block;
        padding:14px 24px;
        border-bottom:1px solid #f1f1f1;
    }
    .nav-list.active {
        max-height: 420px;
    }
    .banner-text h1 {
        font-size:28px;
    }
    .advantage-row,.gallery-row {
        grid-template-columns:1fr;
    }
    .gallery-item img {
        height:220px;
    }
    .page-title { font-size: 22px; }
    .article-card { padding: 16px 18px; }
    .search-box { flex-direction: column; }
    .search-box button { width: 100%; }
}
