/*
Theme Name: yzx-theme-v3
Theme URI: https://www.nmxt.xyz/
Author: YZX
Author URI: https://www.nmxt.xyz/
Description: 愈正轩国学馆 WordPress 主题 v3（道家水墨古风视觉体系）。内容与线上完全一致：Hero、服务项目（6 项）、道长法师团队（4 位）、成功案例（3 个）、关于愈正轩、数据统计、在线预约、联系方式与页脚；含用户协议、隐私政策页面模板。
Version: 3.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yzx-theme-v3
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* 设计变量（道家水墨古风体系） */
:root {
    /* 瀹ｇ焊鑹查樁 */
    --paper: #f5f0e6;            /* 瀹ｇ焊搴?*/
    --paper-deep: #ece4d2;       /* 深底纸（交替区块） */
    --paper-card: #fbf8f0;       /* 鍗＄墖绾?*/
    --paper-input: #f1eadb;      /* 杈撳叆鍖虹焊鎰?*/

    /* 澧ㄨ壊闃?*/
    --ink: #332d26;              /* 主墨 */
    --ink-soft: #5a5042;         /* 次墨（正文） */
    --ink-dim: #8a7f6d;          /* 淡墨（辅助文字） */
    --ink-faint: #b5a992;        /* 浅墨（占位/弱化） */

    /* 朱砂（强调） */
    --cinnabar: #a63a2b;
    --cinnabar-deep: #832c1f;
    --cinnabar-soft: rgba(166, 58, 43, 0.08);
    --cinnabar-glow: rgba(166, 58, 43, 0.20);

    /* 鎏金（升华） */
    --gold: #b08d53;
    --gold-light: #cfb381;
    --gold-deep: #86692f;
    --gold-soft: rgba(176, 141, 83, 0.14);

    --jade: #5b6d62;             /* 青瓷（成功提示） */

    --line: rgba(51, 45, 38, 0.09);
    --line-strong: rgba(51, 45, 38, 0.17);

    --shadow-sm: 0 2px 10px rgba(51, 45, 38, 0.06);
    --shadow-md: 0 10px 28px rgba(51, 45, 38, 0.10);
    --shadow-lg: 0 20px 48px rgba(51, 45, 38, 0.14);

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', 'STSong', 'PingFang SC', 'Microsoft YaHei', serif;
    --font-kai: 'Kaiti SC', 'STKaiti', 'KaiTi', 'FZKai-Z03S', 'Kai', '妤蜂綋', serif;

    --transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);

    /* 装饰素材（SVG 内联） */
    --taiji: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='%23f5f0e6'/%3E%3Cpath d='M50 0 a50 50 0 0 1 0 100 a25 25 0 0 1 0 -50 a25 25 0 0 0 0 -50 z' fill='%23332d26'/%3E%3Ccircle cx='50' cy='25' r='8' fill='%23f5f0e6'/%3E%3Ccircle cx='50' cy='75' r='8' fill='%23332d26'/%3E%3C/svg%3E");
    --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 70'%3E%3Cpath fill='none' stroke='%23a63a2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M22 48 C10 48 5 35 15 27 C24 19 38 25 36 37 C35 43 29 48 22 48Z M47 50 C44 34 63 27 79 33 C93 39 90 51 74 53 C61 55 49 53 47 50Z M20 50 C20 36 38 32 52 38 C64 44 60 55 46 57 C33 58 21 55 20 50Z M46 57 C48 70 68 77 88 70 C102 63 106 48 90 40'/%3E%3C/svg%3E");
    --cloud-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56'%3E%3Cg fill='none' stroke='%23332d26' stroke-width='1.6' stroke-opacity='0.16'%3E%3Cpath d='M0 34 C20 22 40 46 60 34 C80 22 100 46 120 34 C140 22 160 46 180 34 C200 22 220 46 240 34'/%3E%3Cpath d='M0 46 C20 34 40 58 60 46 C80 34 100 58 120 46 C140 34 160 58 180 46 C200 34 220 58 240 46'/%3E%3C/g%3E%3C/svg%3E");
    --cloud-strip-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56'%3E%3Cg fill='none' stroke='%23cfb381' stroke-width='1.6' stroke-opacity='0.35'%3E%3Cpath d='M0 34 C20 22 40 46 60 34 C80 22 100 46 120 34 C140 22 160 46 180 34 C200 22 220 46 240 34'/%3E%3Cpath d='M0 46 C20 34 40 58 60 46 C80 34 100 58 120 46 C140 34 160 58 180 46 C200 34 220 58 240 46'/%3E%3C/g%3E%3C/svg%3E");
}

/* ========== Reset 与基础排版 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; color-scheme: light; }
body {
    font-family: var(--font-serif);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(176, 141, 83, 0.05), transparent 62%),
        var(--paper);
    color: var(--ink-soft);
    line-height: 1.8;
    overflow-x: hidden;
}
::selection { background: rgba(166, 58, 43, 0.16); color: var(--ink); }
::placeholder { color: var(--ink-faint); opacity: 1; }
a { color: var(--cinnabar-deep); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cinnabar); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ========== 瀵艰埅鏍?========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(251, 248, 240, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
}
.navbar::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.55;
}
.navbar.scrolled { box-shadow: var(--shadow-md); background: rgba(251, 248, 240, 0.96); }
.navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 66px; }
.navbar-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); font-family: var(--font-kai); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.12em; white-space: nowrap; flex-shrink: 0; }
.navbar-brand .brand-name { white-space: nowrap; }
.navbar-brand .brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, var(--paper-card), var(--paper-deep));
    border: 1.5px solid var(--gold);
    color: var(--cinnabar); font-size: 1.15rem;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}
.navbar-brand img { max-height: 44px; width: auto; }
.navbar-links { display: flex; align-items: center; gap: 0.15rem; }
.navbar-links ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.navbar-links a, .navbar-links li a {
    display: block; position: relative; padding: 0.5rem 0.95rem;
    color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.08em;
    border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap;
}
.navbar-links a::after {
    content: ''; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px;
    background: var(--cinnabar); opacity: 0; transition: var(--transition);
}
.navbar-links a:hover::after, .navbar-links a.active::after, .navbar-links li.current-menu-item a::after { left: 0.95rem; right: 0.95rem; opacity: 1; }
.navbar-links a:hover, .navbar-links li a:hover { color: var(--cinnabar); }
.navbar-links a.active, .navbar-links li.current-menu-item a { color: var(--cinnabar); background: var(--cinnabar-soft); }
.navbar-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); font-size: 1.2rem; cursor: pointer; padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); line-height: 1; }

/* Hero（水墨山水意象） */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 7rem 1.5rem 5rem; overflow: hidden;
    background-color: #efe8d6;
    background-image:
        radial-gradient(90% 70% at 82% 6%, var(--gold-soft), transparent 55%),
        radial-gradient(80% 60% at 10% 85%, rgba(91, 109, 98, 0.07), transparent 55%),
        linear-gradient(180deg, #f6f1e6 0%, #f1eadd 55%, #eae2d0 100%),
        var(--cloud-strip);
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
    background-position: center, center, center, left bottom;
    background-size: auto, auto, auto, auto;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
    background:
        radial-gradient(55% 42% at 16% 98%, rgba(51, 45, 38, 0.13) 0 58%, transparent 59%),
        radial-gradient(48% 36% at 50% 99%, rgba(51, 45, 38, 0.17) 0 60%, transparent 61%),
        radial-gradient(52% 40% at 84% 98%, rgba(51, 45, 38, 0.13) 0 60%, transparent 61%);
}
.hero::after {
    content: ''; position: absolute; top: 12%; right: -50px; width: 190px; height: 190px;
    background-image: var(--taiji); background-size: contain; background-repeat: no-repeat;
    opacity: 0.07; transform: rotate(40deg); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.35rem 1.1rem; background: rgba(251, 248, 240, 0.72);
    border: 1px solid var(--cinnabar); color: var(--cinnabar);
    border-radius: 2px; font-family: var(--font-kai); font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.18em; margin-bottom: 1.6rem;
    box-shadow: 2px 2px 0 rgba(166, 58, 43, 0.18);
}
.hero-eyebrow::before { content: ''; width: 16px; height: 16px; background-image: var(--taiji); background-size: contain; opacity: 0.85; }
.hero h1 { font-family: var(--font-kai); font-size: 3.4rem; font-weight: 800; color: var(--ink); letter-spacing: 0.1em; line-height: 1.25; margin-bottom: 0.6rem; }
.hero .hero-title-main {
    display: inline-block;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 72%, var(--gold-deep) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .hero-title-sub { display: inline-block; font-size: 1.7rem; font-weight: 600; color: var(--gold-deep); letter-spacing: 0.28em; margin-top: 0.5rem; }
.hero .subtitle { font-size: 1.06rem; color: var(--ink-dim); line-height: 2.05; margin-bottom: 2.4rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn {
    padding: 0.8rem 2rem; border-radius: var(--radius-sm); font-family: var(--font-kai);
    font-size: 0.98rem; font-weight: 700; letter-spacing: 0.12em; cursor: pointer;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 0.55rem;
    border: none; text-decoration: none; line-height: 1;
}
.btn-primary { background: linear-gradient(160deg, var(--cinnabar), var(--cinnabar-deep)); color: #fdf8ee; box-shadow: 0 6px 18px var(--cinnabar-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--cinnabar-glow); color: #fff; filter: brightness(1.05); }
.btn-outline { background: rgba(251, 248, 240, 0.75); border: 1.5px solid var(--ink-soft); color: var(--ink); }
.btn-outline:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: var(--cinnabar-soft); }
.btn-link { background: transparent; border: 1.5px solid var(--line-strong); color: var(--gold-deep); }
.btn-link:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); }
.hero-scroll { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); color: var(--ink-faint); font-size: 0.82rem; letter-spacing: 0.2em; font-family: var(--font-kai); animation: bounce 2.2s infinite; cursor: pointer; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(9px); } }

/* ========== 閫氱敤鍖哄潡 ========== */
.section { padding: 5.5rem 1.5rem; position: relative; }
.section-alt { background: var(--paper-deep); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.2rem; }
.section-header .section-tag {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.34rem 1rem; background: var(--cinnabar); color: #fdf8ee;
    border-radius: 2px; font-family: var(--font-kai); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 1.1rem;
    box-shadow: 2px 2px 0 rgba(51, 45, 38, 0.18);
}
.section-header .section-tag::after { content: ''; width: 12px; height: 12px; background-image: var(--taiji); background-size: contain; opacity: 0.9; }
.section-header h2 {
    position: relative; display: inline-block; font-family: var(--font-kai);
    font-size: 2.3rem; font-weight: 700; color: var(--ink); margin-bottom: 1.05rem; letter-spacing: 0.14em;
}
.section-header h2::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -0.7rem;
    width: 86px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-header h2::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1.05rem;
    width: 8px; height: 8px; border-radius: 50%; background: var(--cinnabar); box-shadow: 0 0 0 3px var(--cinnabar-soft);
}
.section-header p { font-size: 1rem; color: var(--ink-dim); max-width: 680px; margin: 1.4rem auto 0; }

/* ========== 鏈嶅姟椤圭洰 ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
    background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem 1.7rem 1.8rem; transition: var(--transition); position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cinnabar), var(--gold)); opacity: 0; transition: opacity 0.3s; }
.service-card::after {
    content: ''; position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 22px;
    background-image: var(--cloud); background-size: contain; background-repeat: no-repeat;
    opacity: 0; transform: translateY(-4px); transition: var(--transition);
}
.service-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 0.5; transform: translateY(0); }
.service-card .svc-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: 50%;
    background: var(--cinnabar-soft); border: 1px solid rgba(166, 58, 43, 0.18);
    font-size: 1.6rem; margin-bottom: 1.2rem;
}
.service-card h3 { font-family: var(--font-kai); font-size: 1.22rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: 0.08em; }
.service-card .svc-desc { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.75; margin-bottom: 1.1rem; }
.service-card .svc-items { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.service-card .svc-item {
    display: inline-block; font-size: 0.78rem; color: var(--cinnabar-deep); font-weight: 600;
    letter-spacing: 0.06em; padding: 0.24rem 0.7rem;
    background: var(--cinnabar-soft); border: 1px solid rgba(166, 58, 43, 0.16); border-radius: 2px;
}
.service-card .svc-more { margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 0.35rem; letter-spacing: 0.06em; }
.service-card .svc-more:hover { color: var(--cinnabar); }

/* ========== 閬撻暱娉曞笀鍥㈤槦 ========== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.team-card {
    background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.2rem 1.5rem 1.9rem; text-align: center; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden;
}
.team-card::before { content: ''; position: absolute; top: 0.8rem; left: 0.8rem; width: 26px; height: 26px; border-left: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold); opacity: 0.55; }
.team-card::after { content: ''; position: absolute; bottom: 0.8rem; right: 0.8rem; width: 26px; height: 26px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); opacity: 0.55; }
.team-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.team-card .avatar-photo {
    width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--paper-card), var(--paper-deep));
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-kai); font-size: 2.3rem; font-weight: 700; color: var(--cinnabar);
    margin-bottom: 1.1rem; overflow: hidden;
    box-shadow: 0 0 0 5px rgba(176, 141, 83, 0.14), 0 8px 20px rgba(51, 45, 38, 0.10);
}
.team-card .avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--font-kai); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; letter-spacing: 0.1em; }
.team-card .dao-name { font-size: 0.86rem; color: var(--gold-deep); font-weight: 600; letter-spacing: 0.14em; margin-bottom: 0.4rem; }
.team-card .role {
    display: inline-block; font-size: 0.76rem; color: #fdf8ee; font-weight: 600; letter-spacing: 0.1em;
    padding: 0.22rem 0.7rem; background: linear-gradient(160deg, var(--cinnabar), var(--cinnabar-deep));
    border-radius: 2px; margin-bottom: 0.8rem; box-shadow: 1.5px 1.5px 0 rgba(51, 45, 38, 0.2);
}
.team-card .bio { font-size: 0.86rem; color: var(--ink-dim); line-height: 1.75; }

/* ========== 鎴愬姛妗堜緥 ========== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.case-card {
    background: var(--paper-card); border: 1px solid var(--line); border-left: 3px solid transparent;
    border-radius: var(--radius-lg); padding: 1.9rem 1.7rem; transition: var(--transition); position: relative; overflow: hidden;
}
.case-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--cinnabar)); opacity: 0; transition: opacity 0.3s; }
.case-card:hover { border-color: var(--gold); border-left-color: var(--cinnabar); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.case-card:hover::before { opacity: 1; }
.case-card .case-cat {
    display: inline-block; font-size: 0.76rem; font-weight: 700; color: #fdf8ee;
    letter-spacing: 0.12em; padding: 0.22rem 0.75rem;
    background: linear-gradient(160deg, var(--cinnabar), var(--cinnabar-deep));
    border: none; border-radius: 2px; margin-bottom: 0.9rem;
    box-shadow: 1.5px 1.5px 0 rgba(51, 45, 38, 0.2);
}
.case-card h3 { font-family: var(--font-kai); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 0.7rem; letter-spacing: 0.06em; }
.case-card .case-desc { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.9; text-align: justify; word-break: break-word; overflow-wrap: break-word; }

/* 关于愈正轩 */
#about { background: var(--paper-deep); }
.about-block { max-width: 860px; margin: 0 auto; text-align: center; position: relative; padding: 1.2rem 1rem; }
.about-block::before { content: '❝'; position: absolute; top: -0.4rem; left: 0; color: var(--gold); font-family: var(--font-kai); font-size: 2.4rem; opacity: 0.7; line-height: 1; }
.about-block::after { content: '❞'; position: absolute; bottom: -0.6rem; right: 0; color: var(--gold); font-family: var(--font-kai); font-size: 2.4rem; opacity: 0.7; line-height: 1; }
.about-block p { font-size: 1.02rem; line-height: 2.1; color: var(--ink-soft); margin-bottom: 1.2rem; }
.about-block p:last-child { margin-bottom: 0; }

/* ========== 数据统计 ========== */
.stats-wrap { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.stat-item { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1rem 1.8rem; text-align: center; position: relative; transition: var(--transition); }
.stat-item::before { content: ''; position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.stat-item:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-number {
    font-family: var(--font-kai); font-size: 2.6rem; font-weight: 800; line-height: 1.2;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--ink-dim); margin-top: 0.5rem; letter-spacing: 0.2em; }

/* ========== 鍦ㄧ嚎棰勭害 ========== */
.booking-wrapper {
    max-width: 660px; margin: 0 auto; background: var(--paper-card);
    border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2.8rem 2.6rem;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.booking-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--cinnabar)); }
.booking-wrapper::after { content: ''; position: absolute; bottom: 0.9rem; left: 0.9rem; width: 44px; height: 28px; background-image: var(--cloud); background-size: contain; background-repeat: no-repeat; opacity: 0.28; }
.booking-wrapper h3 { font-family: var(--font-kai); font-size: 1.3rem; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 0.3rem; letter-spacing: 0.1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem; background: var(--paper-input);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    color: var(--ink); font-family: var(--font-serif); font-size: 0.92rem;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--cinnabar); box-shadow: 0 0 0 3px var(--cinnabar-soft); background: var(--paper-card);
}
.form-group textarea { resize: vertical; min-height: 104px; }
.form-group select {
    cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7f6d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.6rem;
}
.form-group.form-textarea textarea { margin-bottom: 0.2rem; }
.form-group input::placeholder, .form-group select::placeholder, .form-group textarea::placeholder {
    color: var(--ink-dim); font-size: 0.95rem; opacity: 1;
}
.booking-submit { width: 100%; padding: 0.95rem; margin-top: 0.6rem; justify-content: center; text-align: center; font-size: 1.05rem; }
.booking-success { display: none; text-align: center; padding: 2rem; }
.booking-success.show { display: block; }
.booking-success .success-icon {
    width: 72px; height: 72px; margin: 0 auto 0.9rem; border-radius: 50%;
    background: var(--gold-soft); border: 1.5px solid var(--gold);
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--gold-deep);
}
.booking-success h3 { font-family: var(--font-kai); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; letter-spacing: 0.1em; }
.booking-success p { color: var(--ink-dim); font-size: 0.92rem; }

/* ========== 鑱旂郴鏂瑰紡 ========== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.4rem; text-align: center; transition: var(--transition); }
.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-card .contact-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold-soft); border: 1px solid rgba(176, 141, 83, 0.28); font-size: 1.4rem; margin-bottom: 0.9rem;
}
.contact-card h4 { font-family: var(--font-kai); font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.contact-card p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.7; white-space: pre-line; }
.contact-card a.contact-tel { color: inherit; font-weight: inherit; text-decoration: none; }
.contact-card a { color: var(--cinnabar-deep); font-weight: 600; }

/* ========== 椤佃剼 ========== */
.footer {
    background: linear-gradient(180deg, #241f1a, #1b1713);
    color: rgba(253, 248, 238, 0.72);
    padding: 3.4rem 1.5rem 2.2rem; position: relative; overflow: hidden;
}
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
    background-image: var(--cloud-strip-dark); background-repeat: repeat-x; background-position: left bottom;
    opacity: 0.5; pointer-events: none;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.footer-brand { font-family: var(--font-kai); font-size: 1.45rem; font-weight: 700; color: #f3e6c8; margin-bottom: 0.6rem; letter-spacing: 0.16em; }
.footer-tags { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.footer-tags span {
    padding: 0.26rem 0.8rem; background: rgba(207, 179, 129, 0.08);
    border: 1px solid rgba(207, 179, 129, 0.22); border-radius: 2px;
    font-size: 0.78rem; color: rgba(243, 230, 200, 0.72); letter-spacing: 0.1em;
}
.footer-info { font-size: 0.84rem; line-height: 2; }
.footer-info a { color: rgba(243, 230, 200, 0.85); }
.footer-info a:hover { color: #f3e6c8; }
.footer-info .icp-link { color: rgba(243, 230, 200, 0.6); }
.footer-copyright { font-size: 0.78rem; color: rgba(243, 230, 200, 0.38); margin-top: 0.6rem; letter-spacing: 0.06em; }

/* ========== Toast 鎻愮ず ========== */
.toast {
    position: fixed; top: 1.5rem; right: 1.5rem; z-index: 2000;
    background: var(--paper-card); border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 0.85rem 1.25rem; color: var(--ink); font-size: 0.88rem;
    box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; max-width: 380px; letter-spacing: 0.04em;
}
.toast.error { border-left: 3px solid var(--cinnabar); }
.toast.success { border-left: 3px solid var(--jade); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* 协议 / 隐私页面（wp-page） */
.wp-page { padding: 7.5rem 1.5rem 4.5rem; min-height: 70vh; position: relative; }
.wp-page::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 140px; background: linear-gradient(180deg, #efe7d6, transparent); pointer-events: none; }
.wp-page-inner {
    max-width: 860px; margin: 0 auto; background: var(--paper-card);
    border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 3rem 3.2rem;
    box-shadow: var(--shadow-md); position: relative;
}
.wp-page-inner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--cinnabar)); }
.wp-page-title { text-align: center; margin-bottom: 2.4rem; position: relative; }
.wp-page-title::after { content: ''; position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%); width: 120px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.wp-page-title h1 { font-family: var(--font-kai); font-size: 2.1rem; font-weight: 700; color: var(--ink); letter-spacing: 0.12em; }
.wp-page-title p { color: var(--ink-faint); font-size: 0.86rem; margin-top: 0.5rem; letter-spacing: 0.08em; }
.wp-page-inner h2 {
    font-family: var(--font-kai); font-size: 1.08rem; font-weight: 700; color: var(--ink);
    margin: 1.9rem 0 0.7rem; padding-left: 0.8rem; border-left: 3px solid var(--cinnabar); letter-spacing: 0.05em;
}
.wp-page-inner p, .wp-page-inner li { font-size: 0.93rem; line-height: 2; margin-bottom: 0.55rem; color: var(--ink-soft); text-align: justify; }
.wp-page-inner ul { padding-left: 1.5rem; margin-bottom: 0.9rem; }
.wp-page-inner li { list-style: disc; margin-bottom: 0.35rem; }
.wp-page-inner li::marker { color: var(--cinnabar); }
.wp-page-inner strong { color: var(--cinnabar-deep); }
.wp-page-inner a { color: var(--cinnabar-deep); border-bottom: 1px solid rgba(166, 58, 43, 0.3); }

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-wrap { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.9rem; }
}

@media (max-width: 768px) {
    .navbar-inner { height: 58px; padding: 0 1rem; }
    .navbar-toggle { display: inline-flex; }
    .navbar-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(251, 248, 240, 0.98); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md); display: none; padding: 0.6rem 1rem 1rem;
    }
    .navbar-links.open { display: block; }
    .navbar-links ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
    .navbar-links a, .navbar-links li a { padding: 0.7rem 0.9rem; }
    .navbar-links a::after { display: none; }
    .hero { min-height: 92vh; padding: 6rem 1.2rem 4.5rem; }
    .hero h1 { font-size: 2.35rem; }
    .hero .hero-title-sub { font-size: 1.35rem; letter-spacing: 0.2em; }
    .hero .subtitle { font-size: 0.98rem; }
    .section { padding: 4rem 1.2rem; }
    .section-header h2 { font-size: 1.9rem; }
    .section-header .section-tag { letter-spacing: 0.16em; }
    .booking-wrapper { padding: 2.2rem 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .wp-page { padding: 6rem 1.2rem 3rem; }
    .wp-page-inner { padding: 2rem 1.5rem; }
    .wp-page-title h1 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .services-grid, .team-grid, .cases-grid, .stats-wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.95rem; }
    .hero .hero-title-sub { font-size: 1.15rem; }
    .btn { width: 100%; justify-content: center; }
    .hero-actions { gap: 0.7rem; }
    .navbar-brand { font-size: 1.15rem; }
    .navbar-brand .brand-icon { width: 34px; height: 34px; font-size: 1rem; }
    .section-header h2 { font-size: 1.6rem; }
    .footer { padding: 3rem 1.2rem 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   手机端 UI — yzx-theme-v3 手机版适配
   触发条件：viewport ≤ 768px / 移动端访问
   原则：保持道家水墨古风视觉体系不变，针对手机屏幕全面优化
   ============================================================ */

/* ========== 全局触摸优化 ========== */
@media (max-width: 768px) {
    /* 禁止橡皮筋回弹 */
    html, body { overscroll-behavior: none; }

    /* 触摸高亮去除 */
    * { -webkit-tap-highlight-color: transparent; }

    /* 触摸反馈动画 */
    .btn, .navbar-links a, .service-card, .team-card, .case-card, .contact-card, .stat-item {
        -webkit-touch-callout: none;
    }
}

/* ========== 导航栏 — 手机版 ========== */
@media (max-width: 768px) {
    .navbar {
        position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
        background: rgba(251, 248, 240, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line-strong);
        box-shadow: 0 1px 8px rgba(51, 45, 38, 0.08);
    }
    .navbar-inner {
        max-width: 100%; padding: 0 0.9rem; height: 56px;
    }
    .navbar-brand { font-size: 1.1rem; gap: 0.4rem; white-space: nowrap; flex-shrink: 0; min-width: 0; }
    .navbar-brand .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
    .navbar-brand img { max-height: 38px; max-width: 170px; }

    /* 汉堡菜单按钮 */
    .navbar-toggle {
        display: inline-flex !important; align-items: center; justify-content: center;
        width: 44px; height: 44px; border-radius: var(--radius-sm);
        background: rgba(251, 248, 240, 0.8); border: 1px solid var(--line-strong);
        color: var(--ink); font-size: 1.3rem; cursor: pointer;
        transition: var(--transition); position: relative; z-index: 10;
    }
    .navbar-toggle::before { content: '☰'; }
    .navbar-toggle.active::before { content: '✕'; }
    .navbar-toggle:hover { background: rgba(166, 58, 43, 0.08); border-color: var(--cinnabar); }

    /* 移动端菜单面板 */
    .navbar-links {
        position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
        background: rgba(251, 248, 240, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex; flex-direction: column; justify-content: center;
        align-items: stretch; gap: 0; padding: 1rem 0;
        transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9; overflow-y: auto; visibility: hidden;
    }
    .navbar-links.open { transform: translateX(0); visibility: visible; }
    .navbar-links ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; list-style: none; }
    .navbar-links a, .navbar-links li a {
        display: block; padding: 1rem 1.5rem; color: var(--ink-soft);
        font-family: var(--font-kai); font-size: 1.05rem; font-weight: 600;
        letter-spacing: 0.1em; text-align: left; border-bottom: 1px solid var(--line);
        transition: all 0.2s ease; min-height: 52px; line-height: 1.4;
    }
    .navbar-links a:last-child { border-bottom: none; }
    .navbar-links a:hover, .navbar-links a.active,
    .navbar-links li.current-menu-item a {
        color: var(--cinnabar); background: var(--cinnabar-soft);
        border-bottom-color: transparent;
    }
    .navbar-links a::after { display: none; }

    /* 遮罩层 */
    .navbar-overlay {
        position: fixed; inset: 0; top: 56px; bottom: 0;
        background: rgba(51, 45, 38, 0.3); z-index: 8;
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
    .navbar-overlay.open { opacity: 1; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
}

/* ========== Hero — 手机版 ========== */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh; padding: 5.5rem 1rem 3.5rem;
        background-position: center top;
    }
    .hero-content { padding-top: 0.5rem; }
    .hero h1 { font-size: 2.1rem; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
    .hero .hero-title-main { font-size: 2.1rem; }
    .hero .hero-title-sub { font-size: 1.2rem; letter-spacing: 0.18em; margin-top: 0.35rem; }
    .hero .subtitle { font-size: 0.92rem; line-height: 1.9; margin-bottom: 1.8rem; }
    .hero-eyebrow { font-size: 0.78rem; padding: 0.3rem 0.9rem; margin-bottom: 1.2rem; }
    .hero-actions { flex-direction: column; gap: 0.7rem; align-items: stretch; }
    .btn { width: 100%; justify-content: center; padding: 0.9rem 1.5rem; font-size: 1rem; min-height: 48px; }
    .hero-scroll { display: none; }
}

@media (max-width: 480px) {
    .hero { min-height: 85vh; padding: 5rem 0.8rem 3rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero .hero-title-main { font-size: 1.75rem; }
    .hero .hero-title-sub { font-size: 1rem; }
    .hero .subtitle { font-size: 0.86rem; }
    .hero-eyebrow { font-size: 0.72rem; padding: 0.25rem 0.7rem; }
}

/* ========== 通用区块 — 手机版 ========== */
@media (max-width: 768px) {
    .section { padding: 3.5rem 1rem; }
    .section-alt { padding: 3.5rem 1rem; }
    .section-header { margin-bottom: 2.2rem; }
    .section-header h2 { font-size: 1.7rem; letter-spacing: 0.08em; }
    .section-header h2::after { width: 60px; bottom: -0.5rem; }
    .section-header h2::before { width: 6px; height: 6px; bottom: -0.8rem; }
    .section-header p { font-size: 0.9rem; margin-top: 1rem; }
    .section-header .section-tag { font-size: 0.72rem; padding: 0.28rem 0.8rem; }
}

@media (max-width: 480px) {
    .section { padding: 2.8rem 0.8rem; }
    .section-alt { padding: 2.8rem 0.8rem; }
    .section-header h2 { font-size: 1.45rem; }
    .section-header p { font-size: 0.84rem; }
}

/* ========== 服务项目 — 手机版 ========== */
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .service-card {
        padding: 1.6rem 1.3rem 1.5rem; min-height: auto;
        touch-action: manipulation;
    }
    .service-card .svc-icon {
        width: 54px; height: 54px; font-size: 1.4rem; margin-bottom: 1rem;
    }
    .service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .service-card .svc-desc { font-size: 0.88rem; margin-bottom: 0.9rem; }
    .service-card .svc-items { gap: 0.4rem; margin-bottom: 1rem; }
    .service-card .svc-item { font-size: 0.74rem; padding: 0.2rem 0.6rem; }
    .service-card .svc-more { font-size: 0.86rem; }
}

@media (max-width: 480px) {
    .services-grid { gap: 1rem; }
    .service-card { padding: 1.4rem 1.1rem 1.3rem; }
    .service-card .svc-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .service-card h3 { font-size: 1rem; }
    .service-card .svc-desc { font-size: 0.84rem; }
}

/* ========== 道长法师团队 — 手机版 ========== */
@media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .team-card {
        padding: 1.6rem 1.2rem 1.5rem; min-height: auto;
        touch-action: manipulation;
    }
    .team-card .avatar-photo {
        width: 72px; height: 72px; font-size: 1.8rem; margin-bottom: 0.8rem;
    }
    .team-card h3 { font-size: 1.05rem; }
    .team-card .dao-name { font-size: 0.8rem; }
    .team-card .role { font-size: 0.72rem; padding: 0.2rem 0.6rem; }
    .team-card .bio { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; gap: 1rem; }
    .team-card { padding: 1.4rem 1.1rem 1.3rem; }
    .team-card .avatar-photo { width: 64px; height: 64px; font-size: 1.6rem; }
    .team-card h3 { font-size: 1rem; }
    .team-card .bio { font-size: 0.8rem; }
}

/* ========== 成功案例 — 手机版 ========== */
@media (max-width: 768px) {
    .cases-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .case-card {
        padding: 1.5rem 1.3rem; min-height: auto;
        touch-action: manipulation;
    }
    .case-card .case-cat { font-size: 0.72rem; padding: 0.2rem 0.6rem; margin-bottom: 0.7rem; }
    .case-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
    .case-card .case-desc { font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .cases-grid { gap: 1rem; }
    .case-card { padding: 1.3rem 1.1rem; }
    .case-card h3 { font-size: 1rem; }
    .case-card .case-desc { font-size: 0.84rem; }
}

/* ========== 关于愈正轩 — 手机版 ========== */
@media (max-width: 768px) {
    #about { padding: 3.5rem 1rem; }
    .about-block { padding: 1rem 0.8rem; }
.about-block::before { content: '❝'; position: absolute; top: -0.4rem; left: 0; color: var(--gold); font-family: var(--font-kai); font-size: 2.4rem; opacity: 0.7; line-height: 1; }
.about-block::after { content: '❞'; position: absolute; bottom: -0.6rem; right: 0; color: var(--gold); font-family: var(--font-kai); font-size: 2.4rem; opacity: 0.7; line-height: 1; }
    .about-block p { font-size: 0.94rem; line-height: 2; }
}

@media (max-width: 480px) {
    #about { padding: 2.8rem 0.8rem; }
    .about-block p { font-size: 0.88rem; }
}

/* ========== 数据统计 — 手机版 ========== */
@media (max-width: 768px) {
    .stats-wrap { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item { padding: 1.6rem 0.8rem 1.4rem; }
    .stat-number { font-size: 2.1rem; }
    .stat-label { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .stats-wrap { grid-template-columns: 1fr; gap: 0.8rem; }
    .stat-item { padding: 1.4rem 0.8rem 1.2rem; }
    .stat-number { font-size: 1.9rem; }
}

/* ========== 在线预约 — 手机版 ========== */
@media (max-width: 768px) {
    .booking-wrapper {
        padding: 2rem 1.4rem; margin: 0 0.5rem;
        box-shadow: var(--shadow-md);
    }
    .booking-wrapper::after { display: none; }
    .booking-wrapper h3 { font-size: 1.15rem; }
    .form-row { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
    .form-group label { font-size: 0.82rem; }
    .form-group input, .form-group select, .form-group textarea {
        padding: 0.8rem 1rem; font-size: 1rem; min-height: 44px;
    }
    .form-group input::placeholder, .form-group select::placeholder, .form-group textarea::placeholder {
        color: var(--ink-dim); font-size: 1rem; opacity: 1;
    }
    .form-group textarea { min-height: 100px; }
    .booking-submit { padding: 0.9rem; font-size: 1rem; min-height: 48px; }
    .booking-success { padding: 1.5rem; }
    .booking-success .success-icon { width: 60px; height: 60px; font-size: 1.6rem; }
    .booking-success h3 { font-size: 1.1rem; }
    .booking-success p { font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .booking-wrapper { padding: 1.6rem 1.1rem; margin: 0 0.3rem; }
    .booking-wrapper h3 { font-size: 1.05rem; }
    .form-group input, .form-group select, .form-group textarea { padding: 0.75rem 0.9rem; font-size: 1rem; }
}

/* ========== 联系方式 — 手机版 ========== */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-card { padding: 1.4rem 1.2rem; text-align: center; }
    .contact-card .contact-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 0.7rem; }
    .contact-card h4 { font-size: 0.92rem; }
    .contact-card p { font-size: 0.84rem; }
}

@media (max-width: 480px) {
    .contact-card { padding: 1.2rem 1rem; }
    .contact-card .contact-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .contact-card h4 { font-size: 0.88rem; }
    .contact-card p { font-size: 0.82rem; }
}

/* ========== 页脚 — 手机版 ========== */
@media (max-width: 768px) {
    .footer { padding: 2.5rem 1rem 1.6rem; }
    .footer-brand { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .footer-tags { gap: 0.4rem; margin-bottom: 1.4rem; }
    .footer-tags span { font-size: 0.72rem; padding: 0.22rem 0.6rem; }
    .footer-info { font-size: 0.78rem; }
    .footer-copyright { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .footer { padding: 2rem 0.8rem 1.2rem; }
    .footer-brand { font-size: 1.05rem; }
    .footer-tags span { font-size: 0.68rem; padding: 0.18rem 0.5rem; }
    .footer-info { font-size: 0.74rem; }
}

/* ========== Toast — 手机版 ========== */
@media (max-width: 768px) {
    .toast {
        top: 0.8rem; right: 0.8rem; left: 0.8rem;
        max-width: none; padding: 0.75rem 1rem;
        font-size: 0.86rem; border-radius: var(--radius-sm);
    }
}

/* ========== 协议 / 隐私页面 — 手机版 ========== */
@media (max-width: 768px) {
    .wp-page { padding: 5.5rem 0.8rem 2.5rem; }
    .wp-page-inner { padding: 1.8rem 1.2rem; }
    .wp-page-title h1 { font-size: 1.5rem; }
    .wp-page-title p { font-size: 0.8rem; }
    .wp-page-inner h2 { font-size: 1rem; margin: 1.4rem 0 0.5rem; }
    .wp-page-inner p, .wp-page-inner li { font-size: 0.88rem; line-height: 1.9; }
    .wp-page-inner ul { padding-left: 1.2rem; }
}

@media (max-width: 480px) {
    .wp-page { padding: 5rem 0.6rem 2rem; }
    .wp-page-inner { padding: 1.4rem 1rem; }
    .wp-page-title h1 { font-size: 1.3rem; }
    .wp-page-inner h2 { font-size: 0.94rem; }
    .wp-page-inner p, .wp-page-inner li { font-size: 0.84rem; }
}

/* ========== 通用卡片触摸增强 ========== */
@media (hover: none) and (pointer: coarse) {
    /* 仅触屏设备生效 */
    .service-card, .team-card, .case-card, .contact-card, .stat-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .service-card:hover, .team-card:hover, .case-card:hover,
    .contact-card:hover, .stat-item:hover {
        transform: translateY(-2px);
    }
    .service-card:active, .team-card:active, .case-card:active,
    .contact-card:active, .stat-item:active {
        transform: scale(0.98);
    }
}

/* ========== 横屏模式适配 ========== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { min-height: 100vh; padding: 5rem 1rem 2rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero .hero-title-sub { font-size: 1rem; }
    .hero .subtitle { font-size: 0.86rem; }
    .section { padding: 2.5rem 1rem; }
    .section-header h2 { font-size: 1.5rem; }
    .stats-wrap { grid-template-columns: repeat(4, 1fr); }
    .booking-wrapper { padding: 1.5rem 1.2rem; }
}

/* ========== 安全区域适配（iPhone 刘海屏等） ========== */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .navbar-inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
        .hero { padding-top: calc(5.5rem + env(safe-area-inset-top)); }
        .footer { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
    }
}
