/* =====================================================
   独山中臣矿业有限公司 官网样式
   设计基调：简约 / 明亮 / 圆角卡片（参考高染网络版式语言）
   ===================================================== */

:root {
    --ink: #0f172b;            /* 深墨标题 */
    --ink-deep: #06101f;
    --text: #45556c;           /* 正文 */
    --muted: #64748b;          /* 次要文字 */
    --line: #e2e8f0;           /* 分隔线 */
    --bg: #f8fafc;             /* 页面底色 */
    --card: #ffffff;
    --brand: #2563eb;          /* 品牌蓝 */
    --brand-deep: #1d4ed8;
    --brand-soft: #e9f0ff;     /* 浅蓝底 */
    --brand-softer: #f3f7ff;
    --accent: #f43f5e;         /* 强调玫红（标签） */
    --shadow-sm: 0 1px 2px rgba(15, 23, 43, .05), 0 4px 12px rgba(15, 23, 43, .05);
    --shadow-md: 0 4px 16px rgba(15, 23, 43, .08), 0 12px 32px rgba(15, 23, 43, .06);
    --radius: 14px;
    --radius-lg: 20px;
    --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 10px; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 2px 16px rgba(15, 23, 43, .05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: var(--ink); font-size: 18px; letter-spacing: .5px; }
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
.brand--light .brand-text strong { color: #fff; }
.brand--light .brand-text small { color: #94a3b8; }
.brand--light .brand-mark svg rect { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.35); stroke-width: 1; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--brand-softer); }
.nav-link.is-active { color: var(--brand); font-weight: 600; }
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #e9f0ff 0%, #f3f7ff 45%, #f8fafc 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-mountains {
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 62%;
    opacity: .8;
}
.hero-inner {
    position: relative;
    padding: 96px 24px 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #d6e3fb;
    color: var(--brand);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .5px;
}
.hero-title {
    margin-top: 24px;
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.22;
    color: var(--ink-deep);
    font-weight: 700;
    letter-spacing: 1px;
}
.hero-title .dot { color: var(--brand); }
.hero-sub {
    margin-top: 20px;
    max-width: 640px;
    font-size: 17px;
    color: var(--muted);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    margin-top: 64px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #dbe6f8;
    border: 1px solid #dbe6f8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.stat {
    background: rgba(255, 255, 255, .92);
    padding: 22px 16px 18px;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: clamp(24px, 2.6vw, 34px);
    color: var(--ink-deep);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 5px 14px;
    border-radius: 999px;
}
.section-title {
    margin-top: 16px;
    font-size: clamp(26px, 3.4vw, 36px);
    color: var(--ink-deep);
    font-weight: 700;
    letter-spacing: 1px;
}
.section-sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* ---------- 关于我们 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}
.about-text p { margin-bottom: 16px; font-size: 16px; }
.about-text strong { color: var(--ink); }
.about-points { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.about-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 500;
}
.about-points svg { flex-shrink: 0; margin-top: 5px; color: var(--brand); }

.about-card {
    background: linear-gradient(165deg, var(--brand-softer), #fff 70%);
    border: 1px solid #dfe9fa;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.about-card h3 {
    font-size: 17px;
    color: var(--ink-deep);
    padding-bottom: 14px;
    border-bottom: 1px solid #e3ecfb;
}
.info-list { margin-top: 8px; }
.info-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed #e3ecfb;
}
.info-list dt { color: var(--muted); font-size: 13.5px; flex-shrink: 0; }
.info-list dd { color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: right; }
.info-note { margin-top: 14px; font-size: 12px; color: #94a3b8; }

.feature-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cdd9f5;
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
}
.feature-card h3 { margin-top: 18px; font-size: 17px; color: var(--ink-deep); }
.feature-card p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 产品与服务 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.product-card:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cdd9f5;
}
.product-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 1px;
}
.product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #dbe6f8;
    color: var(--brand);
}
.product-card h3 { margin-top: 18px; font-size: 18px; color: var(--ink-deep); }
.product-card p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- 项目与优势 ---------- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.project-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-cover { position: relative; height: 190px; overflow: hidden; }
.project-cover--mine { background: linear-gradient(150deg, #e9f0ff, #f4f8ff); }
.project-cover--park { background: linear-gradient(150deg, #f4f8ff, #e9f0ff); }
.project-cover svg { width: 100%; height: 100%; }
.project-cover-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 43, .78);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.project-body { padding: 26px 28px 30px; }
.project-body h3 { font-size: 19px; color: var(--ink-deep); }
.project-body > p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.project-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f8;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}
.project-meta li { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.project-meta li span {
    color: var(--muted);
    font-weight: 400;
    margin-right: 6px;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
    align-items: stretch;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-card:hover { border-color: #cdd9f5; box-shadow: var(--shadow-sm); }
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
}
.contact-card h3 { font-size: 15px; color: var(--ink-deep); }
.contact-card p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.contact-card a:hover { color: var(--brand); }

.map-wrap {
    position: relative;
    min-height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    background: var(--brand-softer);
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    transition: opacity .4s ease;
}
.map-loading.is-hidden { opacity: 0; }

.map-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border: 1px solid #e0e8f6;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
}
.map-overlay-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-overlay-info strong { color: var(--ink-deep); font-size: 15px; }
.map-overlay-info span {
    color: var(--muted);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink-deep); color: #94a3b8; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 64px 24px 48px;
}
.footer-brand p { margin-top: 18px; font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer-col h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { font-size: 13.5px; }
.footer-col a { color: #94a3b8; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-addr { line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 24px;
    font-size: 12.5px;
    color: #64748b;
}
.footer-bottom-inner a { color: #94a3b8; }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    box-shadow: var(--shadow-md);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brand); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-wrap { min-height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero-inner { padding: 72px 24px 80px; }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 18px;
        box-shadow: 0 16px 32px rgba(15, 23, 43, .08);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease;
    }
    .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { padding: 12px 16px; font-size: 16px; }
    .nav-link.is-active::after { display: none; }
    .nav-toggle { display: flex; }
    .header-phone { display: none; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: 1fr; }
    .map-overlay { flex-direction: column; align-items: stretch; text-align: center; }
    .map-overlay-info span { white-space: normal; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 36px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
}
