/* =========================================================
   佛山有诗意的文化传媒有限公司 · 网站样式
   风格：新中式文人美学 + 现代极简
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
    /* 颜色 */
    --c-paper:        #f7f4ee;   /* 宣纸暖白 */
    --c-paper-deep:   #efe9df;   /* 深宣纸 */
    --c-ink:          #2b2a28;   /* 水墨黑 */
    --c-ink-soft:     #4a4944;   /* 软墨 */
    --c-ink-mute:     #8a8780;   /* 灰墨 */
    --c-celadon:      #5d7f6e;   /* 青瓷绿 */
    --c-celadon-deep: #45614f;   /* 深青瓷 */
    --c-vermilion:    #a8483b;   /* 朱砂红 */
    --c-gold:         #b08a4f;   /* 古铜金 */
    --c-line:         rgba(43,42,40,.12);
    --c-line-strong:  rgba(43,42,40,.22);

    /* 字体 */
    --ff-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    --ff-latin: 'Cormorant Garamond', 'Times New Roman', serif;

    /* 尺寸 */
    --container: 1200px;
    --radius: 2px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-serif);
    font-weight: 300;
    color: var(--c-ink);
    background: var(--c-paper);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* 通用：选中文字配色 */
::selection { background: var(--c-celadon); color: #fff; }

/* =========================================================
   导航
   ========================================================= */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 22px 0;
    transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav--scrolled {
    padding: 14px 0;
    background: rgba(247,244,238,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--c-line);
}
.nav__inner {
    max-width: var(--container); margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--c-ink); color: var(--c-paper);
    font-size: 20px; font-weight: 500;
    border-radius: var(--radius);
    transition: background .4s var(--ease);
}
.nav__logo:hover .nav__logo-mark { background: var(--c-celadon-deep); }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-en {
    font-family: var(--ff-latin);
    font-size: 11px; font-style: italic;
    color: var(--c-ink-mute); letter-spacing: 1px;
    margin-top: 2px;
}
.nav__menu { display: flex; gap: 40px; }
.nav__link {
    position: relative;
    font-size: 15px; font-weight: 400; color: var(--c-ink-soft);
    padding: 6px 0;
    transition: color .3s var(--ease);
}
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px; background: var(--c-celadon-deep);
    transition: width .4s var(--ease);
}
.nav__link:hover { color: var(--c-ink); }
.nav__link:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--c-ink);
    transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.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); }

/* =========================================================
   首屏 Hero
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(93,127,110,.10), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(176,138,79,.08), transparent 50%),
        linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-deep) 100%);
    z-index: -2;
}
/* 装饰水墨笔触 */
.hero__bg::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image:
        radial-gradient(circle at 15% 80%, rgba(43,42,40,.04) 0 2px, transparent 3px),
        radial-gradient(circle at 85% 20%, rgba(43,42,40,.03) 0 2px, transparent 3px);
    background-size: 60px 60px;
    opacity: .6;
}
.hero__eyebrow {
    font-size: 14px; font-weight: 400;
    letter-spacing: 4px;
    color: var(--c-celadon-deep);
    margin-bottom: 36px;
}
.hero__title {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 4px;
    color: var(--c-ink);
}
.hero__title-dim { color: var(--c-celadon); }
.hero__subtitle {
    margin-top: 36px;
    font-family: var(--ff-latin);
    font-size: clamp(15px, 1.6vw, 19px);
    font-style: italic;
    color: var(--c-ink-mute);
    line-height: 1.9;
    letter-spacing: 1px;
}
.hero__actions {
    margin-top: 52px;
    display: flex; gap: 20px;
    flex-wrap: wrap; justify-content: center;
}

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 38px;
    font-size: 15px; font-weight: 400; letter-spacing: 2px;
    border-radius: var(--radius);
    transition: all .4s var(--ease);
    border: 1px solid transparent;
}
.btn--primary {
    background: var(--c-ink); color: var(--c-paper);
}
.btn--primary:hover {
    background: var(--c-celadon-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43,42,40,.18);
}
.btn--ghost {
    border-color: var(--c-line-strong);
    color: var(--c-ink-soft);
}
.btn--ghost:hover {
    border-color: var(--c-celadon);
    color: var(--c-celadon-deep);
    transform: translateY(-2px);
}

/* 滚动提示 */
.hero__scroll {
    position: absolute; bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--c-ink-mute);
    font-size: 11px; letter-spacing: 3px;
}
.hero__scroll span {
    display: block; width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--c-ink-mute), transparent);
    animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   通用 Section
   ========================================================= */
.section { padding: 130px 0; position: relative; }
.section__head {
    display: flex; flex-direction: column;
    margin-bottom: 70px;
}
.section__index {
    font-family: var(--ff-latin);
    font-size: 14px; font-style: italic;
    color: var(--c-celadon);
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.section__title {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 500; letter-spacing: 3px;
    color: var(--c-ink);
}
.section__en {
    font-family: var(--ff-latin);
    font-style: italic;
    font-size: 15px;
    color: var(--c-ink-mute);
    margin-top: 8px;
    letter-spacing: 2px;
}

/* =========================================================
   关于我们
   ========================================================= */
.about__body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: start;
    margin-bottom: 90px;
}
.about__lead {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 2px;
    color: var(--c-ink);
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--c-celadon);
}
.about__text { font-size: 15px; color: var(--c-ink-soft); }
.about__text p + p { margin-top: 20px; }

.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--c-line);
    padding-top: 50px;
}
.stat {
    text-align: center;
    padding: 0 12px;
    position: relative;
}
.stat + .stat::before {
    content: ''; position: absolute; left: 0; top: 15%;
    width: 1px; height: 70%;
    background: var(--c-line);
}
.stat__num {
    font-family: var(--ff-latin);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--c-celadon-deep);
    line-height: 1;
}
.stat__suffix {
    font-family: var(--ff-latin);
    font-size: 1.2rem;
    color: var(--c-celadon);
    margin-left: 2px;
}
.stat__label {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--c-ink-mute);
    letter-spacing: 2px;
}

/* =========================================================
   业务领域
   ========================================================= */
.services {
    background:
        linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-deep) 100%);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--c-line);
    border: 1px solid var(--c-line);
}
.service {
    background: var(--c-paper);
    padding: 56px 48px;
    transition: background .5s var(--ease);
    position: relative;
}
.service:hover { background: #fff; }
.service__icon {
    width: 52px; height: 52px;
    color: var(--c-celadon-deep);
    margin-bottom: 30px;
    transition: transform .5s var(--ease), color .5s var(--ease);
}
.service:hover .service__icon {
    transform: translateY(-4px);
    color: var(--c-vermilion);
}
.service__icon svg { width: 100%; height: 100%; }
.service__title {
    font-size: 1.35rem; font-weight: 500;
    letter-spacing: 2px;
    color: var(--c-ink);
    margin-bottom: 6px;
}
.service__en {
    font-family: var(--ff-latin); font-style: italic;
    font-size: 13px; color: var(--c-ink-mute);
    margin-bottom: 20px; letter-spacing: 1px;
}
.service__desc {
    font-size: 15px; color: var(--c-ink-soft);
    line-height: 1.9;
}
/* 服务卡序号装饰 */
.service::after {
    content: attr(data-num);
    position: absolute; top: 40px; right: 44px;
    font-family: var(--ff-latin); font-style: italic;
    font-size: 13px; color: var(--c-line-strong);
    letter-spacing: 1px;
}

/* =========================================================
   理念
   ========================================================= */
.philosophy__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.quote {
    position: relative;
    padding: 50px 40px;
    background: var(--c-ink);
    color: var(--c-paper);
    border-radius: var(--radius);
}
.quote::before {
    content: '“';
    position: absolute; top: 10px; left: 28px;
    font-family: var(--ff-latin);
    font-size: 90px; line-height: 1;
    color: var(--c-celadon);
    opacity: .5;
}
.quote p {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 400; line-height: 2;
    letter-spacing: 3px;
    position: relative; z-index: 1;
}
.philosophy__items { display: flex; flex-direction: column; gap: 36px; }
.phi {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-line);
}
.phi:last-child { border-bottom: none; padding-bottom: 0; }
.phi__num {
    font-size: 1.6rem; font-weight: 500;
    color: var(--c-celadon);
    line-height: 1.4;
}
.phi h3 {
    font-size: 1.2rem; font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--c-ink);
}
.phi p { font-size: 14.5px; color: var(--c-ink-soft); line-height: 1.85; }

/* =========================================================
   联系我们
   ========================================================= */
.contact { background: var(--c-paper-deep); }
.contact__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.contact__lead {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 2px;
    color: var(--c-ink);
    margin-bottom: 18px;
}
.contact__note {
    font-size: 14px;
    color: var(--c-ink-mute);
    letter-spacing: 1px;
}
.contact__list { display: flex; flex-direction: column; }
.contact__item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--c-line);
    align-items: center;
}
.contact__item:last-child { border-bottom: none; }
.contact__label {
    font-size: 13px;
    color: var(--c-ink-mute);
    letter-spacing: 2px;
}
.contact__value {
    font-size: 16px;
    color: var(--c-ink);
    transition: color .3s var(--ease);
}
a.contact__value:hover { color: var(--c-celadon-deep); }

/* =========================================================
   页脚
   ========================================================= */
.footer {
    background: var(--c-ink);
    color: var(--c-paper);
    padding: 60px 0 40px;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(247,244,238,.4);
    color: var(--c-paper);
    font-size: 18px; font-weight: 500;
}
.footer__name { font-size: 15px; letter-spacing: 1px; }
.footer__en {
    font-family: var(--ff-latin); font-style: italic;
    font-size: 12px; color: rgba(247,244,238,.6);
    margin-top: 4px;
}
.footer__copy {
    font-size: 12px;
    color: rgba(247,244,238,.5);
    letter-spacing: 1px;
}

/* =========================================================
   滚动渐显动画
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 960px) {
    .about__body,
    .philosophy__grid,
    .contact__body { grid-template-columns: 1fr; gap: 50px; }

    .about__stats { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
    .stat:nth-child(3)::before { display: none; }

    .services__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .section { padding: 90px 0; }
    .container { padding: 0 22px; }
    .nav__inner { padding: 0 22px; }

    .nav__menu {
        position: fixed; top: 0; right: 0;
        width: 75%; max-width: 320px; height: 100vh;
        background: var(--c-paper);
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        padding: 80px 40px;
        transform: translateX(100%);
        transition: transform .5s var(--ease);
        box-shadow: -10px 0 40px rgba(0,0,0,.08);
    }
    .nav__menu--open { transform: translateX(0); }
    .nav__link { font-size: 18px; }
    .nav__toggle { display: flex; z-index: 101; }

    .hero { padding: 110px 22px 70px; }
    .hero__actions { gap: 14px; }
    .btn { padding: 13px 30px; }

    .section__head { margin-bottom: 50px; }

    .service { padding: 40px 28px; }
    .service::after { display: none; }

    .quote { padding: 40px 28px; }
    .quote::before { left: 18px; }

    .contact__item { grid-template-columns: 90px 1fr; gap: 16px; }

    .footer__inner { flex-direction: column; text-align: center; }
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
