/* ============================================================
   成华区方便小东西信息服务中心 - 企业介绍页样式
   设计基调：东方雅致 · 现代专业
   主色：宣纸米白 / 松墨绿 / 朱砂红 / 古金
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
    --bg: #f6f1e7;          /* 宣纸米白底 */
    --bg-alt: #efe7d5;      /* 略深米色（交替区块） */
    --surface: #fbf8f1;     /* 卡片表面 */
    --ink: #1c1612;         /* 墨黑正文 */
    --ink-soft: #5a4f44;    /* 淡墨副文 */
    --ink-mute: #8a7d6e;    /* 更淡说明文字 */
    --green: #213d2e;       /* 松墨绿主色 */
    --green-deep: #15281e;  /* 深松绿 */
    --green-soft: #2f5340;  /* 亮松绿 */
    --seal: #9a2a1f;        /* 朱砂红（印章） */
    --seal-soft: #b23a2c;   /* 亮朱砂 */
    --gold: #a07d3f;        /* 古金点缀 */
    --line: #d9ccb4;        /* 米色分割线 */
    --line-soft: #e6dcc6;   /* 浅分割线 */
    --shadow: 0 18px 50px -20px rgba(28, 22, 18, 0.25);
    --shadow-soft: 0 10px 30px -16px rgba(28, 22, 18, 0.18);
    --radius: 14px;
    --maxw: 1180px;
    --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
    --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    /* 宣纸纹理底：细网格 + 微噪点感 */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(33, 61, 46, 0.04), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(154, 42, 31, 0.04), transparent 40%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 印章 Logo ---------- */
.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--seal);
    color: #fbf3ec;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -1px;
    box-shadow: inset 0 0 0 2px rgba(251, 243, 236, 0.35), 0 4px 14px -4px rgba(154, 42, 31, 0.5);
    flex: 0 0 auto;
}
.seal.small { width: 36px; height: 36px; font-size: 14px; }
.seal.big {
    width: 76px; height: 76px; font-size: 28px;
    border-radius: 12px;
    margin-bottom: 18px;
}

/* ---------- 顶部导航 ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: 0.5px;
}
.brand-sub {
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 15px;
    color: var(--ink-soft);
    position: relative;
    transition: color 0.25s;
}
.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--seal);
    transition: width 0.3s;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--green);
    color: #f6f1e7 !important;
    font-weight: 500;
    transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

/* 滚动后导航栏样式 */
.nav.scrolled {
    background: rgba(246, 241, 231, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -16px rgba(28, 22, 18, 0.2);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero 首屏 ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* 细网格底纹 */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    opacity: 0.5;
}
/* 柔光球营造氛围 */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}
.hero-orb-1 {
    width: 420px; height: 420px;
    top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(33, 61, 46, 0.35), transparent 70%);
}
.hero-orb-2 {
    width: 360px; height: 360px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(154, 42, 31, 0.28), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.7);
    font-size: 13px;
    color: var(--green);
    letter-spacing: 2px;
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--ink);
    letter-spacing: 2px;
}
.title-accent {
    color: var(--green);
    position: relative;
    /* 标题点缀：下划朱砂线 */
    background-image: linear-gradient(transparent 78%, rgba(154, 42, 31, 0.25) 0);
}
.hero-desc {
    max-width: 580px;
    font-size: 17px;
    color: var(--ink-soft);
    margin: 0 0 36px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary {
    background: var(--green);
    color: #f6f1e7;
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* 数据条 */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 0;
    border-top: 1px solid var(--line-soft);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}
.stat-label { font-size: 13px; color: var(--ink-mute); margin-top: 6px; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 36px; background: var(--line); }

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ink-mute);
    font-size: 12px;
    letter-spacing: 2px;
}
.mouse {
    width: 22px; height: 36px;
    border: 1.5px solid var(--ink-mute);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}
.wheel {
    width: 3px; height: 7px;
    background: var(--ink-mute);
    border-radius: 2px;
    animation: wheel 1.6s infinite;
}
@keyframes wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 56px; position: relative; }
.section-no {
    display: inline-block;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--seal);
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0;
    color: var(--ink);
    letter-spacing: 2px;
}
.section-kicker {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.section-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--ink-mute);
    font-style: italic;
}

/* ---------- 关于我们 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-text .lead {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.6;
    color: var(--green);
    font-weight: 500;
    margin: 0 0 24px;
}
.about-text p { color: var(--ink-soft); margin: 0 0 18px; }
.about-text strong { color: var(--ink); font-weight: 600; }

.about-aside { position: sticky; top: 100px; }
.creed {
    background: var(--green);
    color: #f6f1e7;
    padding: 36px 32px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.creed::before {
    /* 卡片装饰：右上角圆弧 */
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(160, 125, 63, 0.18);
}
.creed-mark {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    margin-bottom: 16px;
}
.creed h3 {
    font-family: var(--serif);
    font-size: 22px;
    margin: 0 0 12px;
    letter-spacing: 2px;
}
.creed p { margin: 0; opacity: 0.85; font-size: 15px; }

.creed-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.creed-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
}
.creed-list li:last-child { border-bottom: 0; }
.creed-list span {
    flex: 0 0 auto;
    width: 28px; height: 28px;
    background: var(--bg-alt);
    color: var(--seal);
    font-family: var(--serif);
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 14px;
}

/* ---------- 业务范围 ---------- */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.biz-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 36px 34px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.biz-card::after {
    /* 卡片左侧朱砂色条 */
    content: "";
    position: absolute;
    left: 0; top: 36px; bottom: 36px;
    width: 3px;
    background: var(--seal);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s;
}
.biz-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--line);
}
.biz-card:hover::after { transform: scaleY(1); }
.biz-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.biz-no {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--gold);
    font-weight: 700;
}
.biz-head h3 {
    font-family: var(--serif);
    font-size: 24px;
    margin: 0;
    color: var(--ink);
    letter-spacing: 1px;
}
.biz-desc { color: var(--ink-soft); margin: 0 0 22px; }
.biz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0; padding: 0;
}
.biz-tags li {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-soft);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.biz-card:hover .biz-tags li {
    border-color: var(--line);
}
.biz-tags li:hover { background: var(--green); color: #f6f1e7; border-color: var(--green); }

/* ---------- 核心优势 ---------- */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.adv-item {
    padding: 32px 26px;
    border-top: 2px solid var(--green);
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: transform 0.35s, box-shadow 0.35s;
}
.adv-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.adv-icon {
    display: inline-flex;
    width: 48px; height: 48px;
    align-items: center; justify-content: center;
    background: var(--bg-alt);
    color: var(--green);
    border-radius: 12px;
    margin-bottom: 18px;
    transition: background 0.3s, color 0.3s;
}
.adv-icon svg { width: 24px; height: 24px; }
.adv-item:hover .adv-icon { background: var(--green); color: var(--gold); }
.adv-item h3 {
    font-family: var(--serif);
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--ink);
    letter-spacing: 1px;
}
.adv-item p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- 经营项目表 ---------- */
.scope-table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.scope-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
}
.scope-row:last-child { border-bottom: 0; }
.scope-row-head {
    background: var(--green);
    color: #f6f1e7;
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: 2px;
}
.scope-row-head span { font-size: 15px; }
.scope-cat {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--seal);
    font-size: 16px;
    letter-spacing: 1px;
}
.scope-row:not(.scope-row-head):hover { background: var(--bg); }

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: stretch;
}
.contact-info {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 36px 34px;
}
.contact-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--line-soft);
    align-items: baseline;
}
.contact-item:last-child { border-bottom: 0; }
.contact-label {
    color: var(--ink-mute);
    font-size: 14px;
    letter-spacing: 2px;
}
.contact-value {
    color: var(--ink);
    font-weight: 500;
}
.contact-value em {
    font-style: normal;
    color: var(--ink-mute);
    font-size: 12px;
    margin-left: 6px;
}

.contact-welcome {
    background: var(--green);
    color: #f6f1e7;
    border-radius: var(--radius);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contact-welcome::before {
    content: "";
    position: absolute;
    bottom: -80px; right: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(160, 125, 63, 0.15);
}
.contact-welcome .seal.big { background: var(--seal-soft); }
.contact-welcome h3 {
    font-family: var(--serif);
    font-size: 22px;
    margin: 0 0 14px;
    letter-spacing: 1px;
    position: relative;
}
.contact-welcome p {
    margin: 0 0 26px;
    opacity: 0.85;
    position: relative;
    font-size: 15px;
}
.contact-welcome .btn-ghost {
    color: #f6f1e7;
    border-color: rgba(246, 241, 231, 0.4);
    align-self: flex-start;
    position: relative;
}
.contact-welcome .btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--green-deep);
    color: #d8ccb6;
    padding: 56px 0 36px;
}
.footer-inner { text-align: center; }
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}
.footer-name {
    font-family: var(--serif);
    font-size: 18px;
    color: #f6f1e7;
    margin: 0;
    letter-spacing: 1px;
}
.footer-sub {
    font-size: 12px;
    color: var(--gold);
    margin: 4px 0 0;
    letter-spacing: 2px;
}
.footer-copy { font-size: 13px; margin: 0 0 6px; color: #b9ad97; }
.footer-icp { font-size: 12px; margin: 0; color: #8a7d6e; }

/* ---------- 返回顶部 ---------- */
.to-top {
    position: fixed;
    right: 28px; bottom: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--green);
    cursor: pointer;
    display: flex;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); color: #f6f1e7; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 滚动渐入动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* 错落出现：每张卡片递延 */
.biz-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.biz-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.biz-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.adv-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.adv-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.adv-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-aside { position: static; }
    .biz-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    /* 移动端导航折叠 */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        background: var(--surface);
        box-shadow: -20px 0 60px -20px rgba(28, 22, 18, 0.3);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 110;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a:not(.nav-cta)::after { display: none; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .section { padding: 80px 0; }
    .hero { padding: 120px 20px 70px; }
    .hero-stats { gap: 18px; flex-wrap: wrap; }
    .stat-divider { display: none; }
    .adv-grid { grid-template-columns: 1fr; }
    .scope-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
    .contact-item { grid-template-columns: 1fr; gap: 4px; }
    .brand-sub { display: none; }
}

/* 菜单打开时遮罩 */
.menu-mask {
    position: fixed; inset: 0;
    background: rgba(28, 22, 18, 0.4);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.menu-mask.show { opacity: 1; visibility: visible; }
