/* ============================================
   版石软件技术（成都）— 天府蜀韵风格
   漆红 + 竹青 + 鎏金 + 暖宣纸
   ============================================ */

:root {
    --c-bg: #f7f1e3;          /* 暖宣纸底 */
    --c-bg-alt: #efe8d5;      /* 略深宣纸 */
    --c-red: #a8322e;         /* 漆红/朱砂 */
    --c-red-dark: #7d1f1c;    /* 深漆红 */
    --c-bamboo: #4a6b3a;      /* 竹青 */
    --c-bamboo-light: #6b8e5a;
    --c-gold: #b8902e;        /* 鎏金 */
    --c-gold-light: #d4af37;
    --c-ink: #2a2018;         /* 墨褐 */
    --c-ink-soft: #5a4a3a;    /* 浅墨 */
    --c-text: #3d3225;       /* 正文色 */
    --c-text-mute: #8a7a6a;   /* 辅助文字 */
    --c-white: #fffdf8;       /* 暖白 */
    --c-border: rgba(168,50,46,.12);
    --c-shadow: 0 4px 24px rgba(90,40,20,.08);
    --c-shadow-hover: 0 12px 40px rgba(90,40,20,.14);
    --radius: 10px;
    --max-w: 1200px;
    --serif: 'Songti SC','Noto Serif SC','STSong','SimSun',serif;
    --sans: 'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
    font-family: var(--sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.75;
    overflow-x: hidden;
}

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

/* ========== 导航 ========== */
.nav {
    position: fixed; top:0; left:0; right:0; z-index:1000;
    background: rgba(247,241,227,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(90,40,20,.08); }
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo { text-decoration: none; }
.logo-seal {
    display: inline-block;
    font-family: var(--serif);
    font-size: 20px; font-weight: 700;
    color: var(--c-white);
    background: var(--c-red);
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(168,50,46,.3);
}
.nav-menu { list-style: none; display: flex; gap: 28px; }
.nav-menu a {
    text-decoration: none; color: var(--c-ink-soft);
    font-size: 14px; font-weight: 500;
    transition: color .2s; position: relative;
}
.nav-menu a::after {
    content:''; position:absolute; left:0; bottom:-4px;
    width:0; height:2px; background: var(--c-red);
    transition: width .25s;
}
.nav-menu a:hover { color: var(--c-red); }
.nav-menu a:hover::after { width: 100%; }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; flex-direction:column; gap:5px; padding:6px; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--c-ink); border-radius:2px; transition:.3s; }

/* ========== 通用按钮 ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .3s; letter-spacing: 1px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
    color: var(--c-white);
    box-shadow: 0 4px 16px rgba(168,50,46,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(168,50,46,.45);
}
.btn-ghost {
    background: transparent; color: var(--c-ink);
    border: 2px solid var(--c-ink-soft);
}
.btn-ghost:hover { border-color: var(--c-red); color: var(--c-red); }
.btn-block { width: 100%; padding: 16px; }

/* ========== 首屏 Hero ========== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(184,144,46,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(74,107,58,.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
    overflow: hidden;
    padding: 80px 24px 60px;
}
.sanxing-mask {
    position: absolute; top: 12%; right: 6%;
    width: 200px; opacity: .6; animation: floatSlow 8s ease-in-out infinite;
    pointer-events: none;
}
.panda-silhouette {
    position: absolute; bottom: 8%; left: 5%;
    width: 120px; opacity: .5; animation: floatSlow 6s ease-in-out infinite reverse;
    pointer-events: none;
}
@keyframes floatSlow {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.bamboo-leaves { position: absolute; inset: 0; pointer-events: none; }
.bamboo-leaves .leaf {
    position: absolute; top: -30px;
    font-family: var(--serif); font-size: 22px;
    color: var(--c-bamboo); opacity: 0;
    animation: leafFall 18s linear infinite;
}
@keyframes leafFall {
    0% { top: -30px; opacity: 0; transform: rotate(0deg); }
    10% { opacity: .4; }
    90% { opacity: .3; }
    100% { top: 110%; opacity: 0; transform: rotate(360deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
    display: inline-block; margin-bottom: 24px;
    padding: 8px 20px; border-radius: 30px;
    background: rgba(168,50,46,.08); color: var(--c-red);
    font-size: 13px; letter-spacing: 3px;
    border: 1px solid rgba(168,50,46,.2);
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800; color: var(--c-ink);
    line-height: 1.3; margin-bottom: 16px;
}
.hero-subtitle {
    display: block; margin-top: 12px;
    font-size: clamp(16px, 2.2vw, 22px);
    color: var(--c-red); font-weight: 600;
}
.hero-desc {
    font-size: 16px; color: var(--c-text-mute);
    margin: 24px auto 36px; line-height: 2;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; margin-top: 48px;
    padding: 24px 36px;
    background: rgba(255,253,248,.6); backdrop-filter: blur(8px);
    border-radius: 16px; border: 1px solid var(--c-border);
}
.stat-mini { text-align: center; }
.stat-mini .num {
    display: block; font-family: var(--serif);
    font-size: 32px; font-weight: 800; color: var(--c-red);
}
.stat-mini .unit { font-size: 12px; color: var(--c-text-mute); }
.stat-divider { width: 1px; height: 40px; background: var(--c-border); }

.scroll-hint {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12px; color: var(--c-text-mute);
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--c-gold), transparent);
    animation: scrollLine 2s ease-in-out 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: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-block; padding: 4px 16px;
    background: rgba(168,50,46,.08); color: var(--c-red);
    font-size: 13px; letter-spacing: 2px; border-radius: 20px;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
    color: var(--c-ink); margin-bottom: 12px;
}
.section-sub { font-size: 15px; color: var(--c-text-mute); }

/* ========== 六大难题 ========== */
.problems { background: var(--c-bg); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
    background: var(--c-white); border-radius: var(--radius);
    padding: 32px; border: 1px solid var(--c-border);
    transition: all .3s; position: relative; overflow: hidden;
}
.problem-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--c-red), var(--c-gold));
    transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--c-shadow-hover); }
.problem-card:hover::before { transform: scaleX(1); }
.problem-num {
    font-family: var(--serif); font-size: 36px; font-weight: 800;
    color: var(--c-gold); opacity: .5; margin-bottom: 12px;
}
.problem-card h3 { font-size: 18px; color: var(--c-ink); margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--c-text-mute); line-height: 1.8; }

/* ========== 核心优势 ========== */
.advantages { background: var(--c-bg-alt); }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adv-card {
    background: var(--c-white); border-radius: var(--radius);
    padding: 36px 28px; border: 1px solid var(--c-border);
    transition: all .3s; text-align: center;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--c-shadow-hover); }
.adv-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--c-red); }
.adv-icon svg { width: 100%; height: 100%; }
.adv-card h3 { font-size: 22px; color: var(--c-ink); margin-bottom: 8px; }
.adv-keyword {
    font-family: var(--serif); font-size: 48px; font-weight: 800;
    color: var(--c-gold); opacity: .25; line-height: 1; margin: 8px 0 16px;
}
.adv-card > p { font-size: 14px; color: var(--c-text-mute); margin-bottom: 20px; }
.adv-list { list-style: none; text-align: left; }
.adv-list li {
    font-size: 13px; color: var(--c-text-mute);
    padding: 6px 0; padding-left: 20px; position: relative;
}
.adv-list li::before { content: '◆'; position: absolute; left: 0; color: var(--c-bamboo); font-size: 10px; }

/* ========== 天府蜀韵 ========== */
.chengdu-zone { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%); }
.chengdu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.cd-card {
    background: var(--c-white); border-radius: var(--radius);
    padding: 32px 24px; border: 1px solid var(--c-border);
    transition: all .3s; text-align: center; position: relative; overflow: hidden;
}
.cd-card::after {
    content:''; position:absolute; bottom:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--c-bamboo), var(--c-gold));
    transform: scaleX(0); transform-origin: right; transition: transform .4s;
}
.cd-card:hover { transform: translateY(-6px); box-shadow: var(--c-shadow-hover); }
.cd-card:hover::after { transform: scaleX(1); transform-origin: left; }
.cd-emoji { font-size: 36px; margin-bottom: 12px; }
.cd-card h3 { font-size: 18px; color: var(--c-ink); margin-bottom: 10px; }
.cd-card p { font-size: 14px; color: var(--c-text-mute); line-height: 1.8; }

.landmark-strip {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    padding: 24px; background: rgba(255,253,248,.5);
    border-radius: 16px; border: 1px solid var(--c-border);
}
.landmark-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: var(--c-white);
    border-radius: 30px; border: 1px solid var(--c-border);
    transition: all .3s;
}
.landmark-item:hover { border-color: var(--c-red); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(168,50,46,.12); }
.lm-icon { font-size: 20px; }
.lm-name { font-size: 14px; color: var(--c-ink-soft); }

/* ========== 数据实力 ========== */
.data-power { background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-red-dark) 100%); color: var(--c-white); }
.data-power .section-title { color: var(--c-white); }
.data-power .section-sub { color: rgba(255,253,248,.7); }
.data-power .section-label { background: rgba(212,175,55,.15); color: var(--c-gold-light); }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.data-card {
    text-align: center; padding: 36px 16px;
    background: rgba(255,253,248,.06); border-radius: var(--radius);
    border: 1px solid rgba(212,175,55,.15); transition: all .3s;
}
.data-card:hover { background: rgba(255,253,248,.1); transform: translateY(-4px); border-color: rgba(212,175,55,.4); }
.data-num { font-family: var(--serif); font-size: 42px; font-weight: 800; color: var(--c-gold-light); margin-bottom: 8px; }
.data-label { font-size: 14px; color: rgba(255,253,248,.7); }

/* ========== 交付体系 ========== */
.process { background: var(--c-bg); }
.process-flow { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; position: relative; }
.process-step { flex: 1; min-width: 180px; max-width: 240px; padding: 32px 20px; text-align: center; position: relative; }
.process-step::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--c-gold); opacity: .5; }
.process-step:last-child::after { display: none; }
.ps-num { font-family: var(--serif); font-size: 32px; font-weight: 800; color: var(--c-red); opacity: .3; margin-bottom: 12px; }
.process-step h3 { font-size: 17px; color: var(--c-ink); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--c-text-mute); }

/* ========== 行业 ========== */
.industries { background: var(--c-bg-alt); }
.industry-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.ind-tag {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 28px; background: var(--c-white);
    border-radius: 12px; border: 1px solid var(--c-border);
    transition: all .3s; cursor: default;
}
.ind-tag:hover { border-color: var(--c-red); transform: translateY(-3px) scale(1.03); box-shadow: 0 6px 20px rgba(168,50,46,.12); }
.ind-icon { font-size: 24px; }
.ind-tag span:last-child { font-size: 16px; color: var(--c-ink); font-weight: 500; }

/* ========== 关于 ========== */
.about { background: var(--c-bg); }
.about-intro {
    max-width: 860px; margin: 0 auto 56px;
    padding: 48px 40px; background: var(--c-white);
    border-radius: 16px; border: 1px solid var(--c-border);
    box-shadow: var(--c-shadow); position: relative;
}
.about-intro::before {
    content: '蜀'; position: absolute; top: 16px; right: 24px;
    font-family: var(--serif); font-size: 120px;
    color: var(--c-red); opacity: .04; line-height: 1;
}
.about-intro p { font-size: 16px; color: var(--c-text); line-height: 2.2; margin-bottom: 16px; text-indent: 2em; }
.about-intro p:last-child { margin-bottom: 0; }
.about-intro strong { color: var(--c-red-dark); }

.about-pillars { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.pillar { text-align: center; }
.pillar-num { font-family: var(--serif); font-size: 42px; font-weight: 800; color: var(--c-red); }
.pillar-label { font-size: 14px; color: var(--c-text-mute); margin-top: 4px; }

.motto-card {
    max-width: 700px; margin: 0 auto;
    padding: 36px 40px;
    background: linear-gradient(135deg, var(--c-red-dark), var(--c-red));
    border-radius: 16px; text-align: center;
    box-shadow: 0 8px 32px rgba(168,50,46,.25);
    position: relative; overflow: hidden;
}
.motto-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(212,175,55,.15), transparent 70%); }
.motto-text { position: relative; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--c-gold-light); letter-spacing: 2px; }

/* ========== 新闻 ========== */
.news { background: var(--c-bg-alt); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--c-white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--c-border); transition: all .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--c-shadow-hover); }
.news-date { display: inline-block; font-size: 13px; color: var(--c-red); font-weight: 600; margin-bottom: 12px; padding: 2px 12px; background: rgba(168,50,46,.08); border-radius: 20px; }
.news-card h3 { font-size: 16px; color: var(--c-ink); margin-bottom: 8px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--c-text-mute); line-height: 1.8; }

/* ========== 联系 ========== */
.contact { background: var(--c-bg); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-info { background: linear-gradient(135deg, var(--c-red-dark), var(--c-red)); border-radius: 16px; padding: 40px 32px; color: var(--c-white); }
.contact-info h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 28px; }
.ci-item { margin-bottom: 20px; }
.ci-label { display: block; font-size: 12px; color: rgba(255,253,248,.6); margin-bottom: 4px; letter-spacing: 1px; }
.ci-value { font-size: 16px; font-weight: 500; }

.contact-form { background: var(--c-white); border-radius: 16px; padding: 40px 32px; border: 1px solid var(--c-border); box-shadow: var(--c-shadow); }
.contact-form h3 { font-family: var(--serif); font-size: 24px; color: var(--c-ink); margin-bottom: 24px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row input { flex: 1; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px; font-size: 14px;
    border: 1px solid var(--c-border); border-radius: 8px;
    background: var(--c-bg); color: var(--c-text);
    font-family: var(--sans); transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-red); }
.contact-form textarea { min-height: 100px; resize: vertical; margin-bottom: 20px; }
.form-tip { font-size: 12px; color: var(--c-text-mute); margin-top: 12px; text-align: center; }

.form-toast {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: var(--c-red); color: var(--c-white);
    padding: 14px 28px; border-radius: 30px; font-size: 14px; z-index: 9999;
    box-shadow: 0 4px 20px rgba(168,50,46,.4);
    opacity: 0; transition: all .4s;
}
.form-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ========== 页脚 ========== */
.footer { background: var(--c-ink); color: rgba(255,253,248,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,253,248,.08); }
.footer-logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--c-gold-light); margin-bottom: 12px; }
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 6px; }
.footer-col h4 { font-size: 15px; color: var(--c-white); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,253,248,.6); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--c-gold-light); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: 12px; color: rgba(255,253,248,.4); }
.footer-bottom p { line-height: 1.8; }

/* ========== 滚动渐显 ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 0.1s); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(247,241,227,.98); padding: 20px; gap: 16px; border-bottom: 1px solid var(--c-border); }
    .problem-grid, .advantage-grid, .chengdu-grid, .news-grid { grid-template-columns: 1fr; }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-intro { padding: 32px 20px; }
    .about-intro::before { font-size: 80px; }
    .process-step { min-width: 140px; padding: 24px 12px; }
    .hero-stats { gap: 16px; padding: 20px; }
    .stat-mini .num { font-size: 26px; }
    .motto-text { font-size: 18px; }
}
@media (max-width: 500px) {
    .data-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-pillars { gap: 24px; }
    .pillar-num { font-size: 34px; }
    .form-row { flex-direction: column; gap: 0; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
}
