/* ============================================================
   尧图企业网站定制 - 全站共享样式
   风格：布艺配饰风 · 藕粉 + 浅绿 + 奶白
   技术：纯 CSS3，无框架依赖
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
    /* 主色：布艺三色调 */
    --lotus: #e2c4bc;          /* 藕粉 */
    --lotus-soft: #efded8;     /* 藕粉浅 */
    --lotus-deep: #c79c92;     /* 藕粉深 */
    --sage: #bdd3b0;           /* 浅绿 */
    --sage-soft: #d7e4cd;      /* 浅绿浅 */
    --sage-deep: #93ab84;      /* 浅绿深 */
    --cream: #faf5ee;          /* 奶白 */
    --cream-2: #f3ebdf;        /* 奶白米 */
    --cream-3: #ece1d2;        /* 奶白深 */

    /* 文字 */
    --ink: #4a4540;            /* 墨棕 */
    --ink-soft: #6b645c;       /* 柔棕 */
    --ink-mute: #948b80;       /* 灰棕 */

    /* 功能 */
    --line: #e4d9ca;           /* 分割线 */
    --white: #ffffff;
    --shadow: 0 18px 50px -24px rgba(74, 69, 64, .35);
    --shadow-sm: 0 8px 24px -14px rgba(74, 69, 64, .28);

    /* 字体 */
    --f-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
    --f-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

    /* 尺寸 */
    --wrap: 1240px;
    --radius: 14px;
    --radius-lg: 26px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--f-sans);
    color: var(--ink);
    background: var(--cream);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    /* 布艺纹理底：细密斜纹 + 柔光 */
    background-image:
        radial-gradient(circle at 12% 18%, rgba(226, 196, 188, .18), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(189, 211, 176, .18), transparent 42%),
        repeating-linear-gradient(45deg, rgba(74, 69, 64, .018) 0 2px, transparent 2px 6px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 600; line-height: 1.35; color: var(--ink); letter-spacing: .5px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }

/* ---------- 布局容器 ---------- */
.wrap { width: min(92%, var(--wrap)); margin: 0 auto; }
.wrap-narrow { width: min(88%, 880px); margin: 0 auto; }

.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }

/* 模块标签（布艺吊牌） */
.tag-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-sans); font-size: .8rem; letter-spacing: 3px;
    color: var(--lotus-deep); text-transform: uppercase;
    padding: 6px 16px 6px 8px;
    background: var(--cream-2);
    border-radius: 2px 20px 20px 2px;
    position: relative;
}
.tag-label::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--lotus-deep); box-shadow: 0 0 0 2px var(--cream-2);
}
.tag-label.sage { color: var(--sage-deep); }
.tag-label.sage::before { background: var(--sage-deep); }

/* 区块标题 */
.sec-title { margin: 18px 0 14px; }
.sec-desc { max-width: 620px; color: var(--ink-soft); }

/* 布艺缝线分割 */
.stitch {
    border: none; height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
    margin: 0;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 30px; border-radius: 40px;
    font-size: .95rem; font-weight: 500; letter-spacing: 1px;
    transition: transform .3s, box-shadow .3s, background .3s, color .3s;
    position: relative;
}
.btn-primary { background: var(--lotus-deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); background: var(--lotus); box-shadow: var(--shadow); }
.btn-sage { background: var(--sage-deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-sage:hover { transform: translateY(-3px); background: var(--sage); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px dashed var(--lotus-deep); }
.btn-ghost:hover { background: var(--lotus-soft); transform: translateY(-3px); }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    background: rgba(250, 245, 238, .55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: padding .35s, background .35s, box-shadow .35s;
}
.site-header.scrolled {
    padding: 10px 0;
    background: rgba(250, 245, 238, .92);
    box-shadow: 0 6px 30px -18px rgba(74, 69, 64, .4);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .bname { font-family: var(--f-serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: 2px; }
.brand-text .bslogan { font-size: .68rem; letter-spacing: 4px; color: var(--lotus-deep); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 16px; font-size: .92rem; color: var(--ink);
    border-radius: 30px; font-weight: 500;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--lotus-deep); background: var(--lotus-soft); }
.nav-menu .caret { font-size: .6rem; transition: transform .3s; }
.nav-menu li:hover .caret { transform: rotate(180deg); }

/* 下拉 */
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 200px; padding: 10px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transition: all .3s; border: 1px solid var(--line);
}
.nav-menu li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 8px; font-size: .9rem; color: var(--ink-soft); }
.dropdown a:hover { background: var(--cream-2); color: var(--lotus-deep); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .phone { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.nav-cta .phone strong { color: var(--lotus-deep); font-family: var(--f-serif); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; background: var(--cream-2); }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动抽屉 */
.drawer {
    position: fixed; inset: 0 0 0 auto; width: min(86%, 360px); z-index: 1100;
    background: var(--cream); padding: 80px 28px 40px;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px -30px rgba(74,69,64,.5); overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer .dclose { position: absolute; top: 22px; right: 22px; font-size: 1.6rem; color: var(--ink); }
.drawer-nav li { border-bottom: 1px dashed var(--line); }
.drawer-nav > li > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-size: 1rem; color: var(--ink); }
.drawer-nav > li > a:hover { color: var(--lotus-deep); }
.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .4s; }
.drawer-nav li.open .drawer-sub { max-height: 600px; }
.drawer-sub a { display: block; padding: 9px 18px; font-size: .9rem; color: var(--ink-soft); }
.drawer-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.overlay { position: fixed; inset: 0; background: rgba(74,69,64,.45); z-index: 1050; opacity: 0; visibility: hidden; transition: .35s; }
.overlay.show { opacity: 1; visibility: visible; }

/* ---------- 页脚 ---------- */
.site-footer { background: #3d3934; color: #cdbfae; padding: 70px 0 0; position: relative; }
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--lotus) 0 18px, var(--sage) 18px 36px);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer-brand img { height: 44px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { color: #b3a290; font-size: .92rem; line-height: 1.85; }
.footer-col h4 { color: #f3ebdf; font-size: 1.05rem; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: #b3a290; font-size: .92rem; }
.footer-col ul a:hover { color: var(--lotus); padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; color: #b3a290; font-size: .92rem; }
.footer-contact .ic { color: var(--lotus); flex-shrink: 0; margin-top: 3px; }
.footer-qrcodes { display: flex; gap: 14px; margin-top: 8px; }
.footer-qrcodes .qr { text-align: center; font-size: .76rem; color: #b3a290; }
.footer-qrcodes .qr img { width: 88px; height: 88px; border-radius: 10px; background: var(--cream); padding: 6px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #524d46; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #94887690; }
.footer-bottom a { color: #9a8d7b; }
.footer-bottom a:hover { color: var(--lotus); }
.faback { color: #9a8d7b; }
.faback a { color: var(--lotus-soft); }

/* ---------- 通用动画 ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 通用工具类 ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.flex { display: flex; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.hide-mobile { display: initial; }

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed; right: 28px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--lotus-deep); color: var(--white); display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .35s; z-index: 900; cursor: pointer; font-size: 1.2rem;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); background: var(--lotus); }

/* ---------- 内页通用 Banner ---------- */
.page-banner {
    position: relative; padding: 150px 0 70px; overflow: hidden;
    background: var(--cream-2);
}
.page-banner::before {
    content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    background: linear-gradient(135deg, transparent, rgba(226,196,188,.25));
    z-index: 0;
}
.pb-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.pb-copy .tag-label { margin-bottom: 22px; }
.pb-copy h1 { margin-bottom: 18px; }
.pb-copy p { max-width: 480px; font-size: 1.05rem; }
.pb-visual { position: relative; height: 360px; }
.pb-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.pb-visual .pb-tag {
    position: absolute; bottom: -16px; left: -10px; background: var(--white); padding: 10px 18px;
    border-radius: 8px; box-shadow: var(--shadow-sm); font-size: .85rem; color: var(--ink); font-weight: 500;
}
@media (max-width: 860px) {
    .pb-grid { grid-template-columns: 1fr; }
    .pb-visual { height: 240px; }
}

/* ---------- 面包屑 ---------- */
.crumb { padding: 24px 0; }
.crumb ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--ink-mute); }
.crumb a:hover { color: var(--lotus-deep); }
.crumb .sep { color: var(--line); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav-menu, .nav-cta .phone { display: none; }
    .nav-toggle { display: flex; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hide-mobile { display: none; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
