/* 现代商务通用模板 —— 浅色轻盈、留白、圆角卡片 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg-soft: #f8fafc;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 12px 32px rgba(15, 23, 42, .07);
    --shadow-lg: 0 24px 56px -24px rgba(15, 23, 42, .28);
}

body {
    font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--primary) 20%, #fff); }

/* ---- 顶栏 ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.logo img { height: 34px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--primary); }
.header-cta {
    padding: 9px 20px; border-radius: 999px; background: var(--primary); color: #fff;
    font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent);
    transition: transform .15s, filter .15s;
}
.header-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---- 按钮 ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 999px; font-weight: 600; transition: all .18s; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--line); color: var(--text); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---- Hero ---- */
.hero { background: radial-gradient(120% 100% at 80% 0%, color-mix(in srgb, var(--primary) 8%, #fff), var(--bg-soft) 55%, #fff); padding: 100px 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero--centered .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 780px; margin: 0 auto; }
.hero--centered .hero-art { display: none; }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); margin-bottom: 36px; }

.hero-art {
    aspect-ratio: 4/3; border-radius: 24px; position: relative; overflow: hidden;
    background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 42%, #93c5fd));
    box-shadow: 0 40px 80px -34px color-mix(in srgb, var(--primary) 60%, transparent);
}
.hero-art::before {
    content: ""; position: absolute; inset: 0; opacity: .28;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .6) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-art::after {
    content: ""; position: absolute; left: 13%; top: 20%; width: 48%; height: 30%;
    background: rgba(255, 255, 255, .92); border-radius: 14px;
    box-shadow: 0 24px 44px -18px rgba(2, 6, 23, .4);
}
.hero-art span {
    position: absolute; inset: auto 12% 16% auto; width: 42%; height: 36%;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 14px; backdrop-filter: blur(2px); transform: none;
}

/* ---- 区块通用 ---- */
.section { padding: 88px 0; }
.section-title {
    font-size: clamp(26px, 2.6vw, 34px); text-align: center; margin-bottom: 48px;
    letter-spacing: -.015em; position: relative; padding-bottom: 18px;
}
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 3px; border-radius: 3px; background: var(--primary); }
.section-more { text-align: center; margin-top: 48px; }

/* ---- 关于 ---- */
.about--highlight { background: var(--bg-soft); }
.about-body { max-width: 820px; margin: 0 auto; color: #374151; font-size: 17px; }
.about-body p { margin-bottom: 16px; }

/* ---- 产品 / 案例网格 ---- */
.product-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 28px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card img, .product-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card-body { padding: 20px 22px; }
.product-card h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.product-card p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- 新闻 ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news--list .news-grid { grid-template-columns: 1fr; }
.news-card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }
.news-card time { color: var(--primary); font-size: 13px; font-weight: 600; }
.news-card h3 { font-size: 17px; margin: 8px 0; letter-spacing: -.01em; }
.news-card p { color: var(--muted); font-size: 14px; }

/* ---- 联系表单 ---- */
.contact-section { background: var(--bg-soft); }
.contact-subtitle { text-align: center; color: var(--muted); margin: -32px 0 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; max-width: 1000px; margin: 0 auto; align-items: start; }
.contact--simple .contact-grid { grid-template-columns: 1fr; max-width: 640px; }
.contact--simple .contact-intro { display: none; }
.contact-info { list-style: none; }
.contact-info li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-info li span { display: inline-block; width: 48px; color: var(--muted); }
.contact-hint { color: var(--muted); }
.contact-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
    font: inherit; font-size: 14px; color: var(--text); background: #fff; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form .btn { justify-self: start; border: none; cursor: pointer; }
.contact-form button:disabled { opacity: .6; cursor: not-allowed; }
.contact-feedback { font-size: 14px; margin: 0; }
.contact-feedback.is-ok { color: #15803d; }
.contact-feedback.is-err { color: #dc2626; }
@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-row { grid-template-columns: 1fr; }
}

/* ---- 页面 banner ---- */
.page-banner { background: radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--primary) 9%, #fff), var(--bg-soft)); padding: 64px 0; border-bottom: 1px solid var(--line); }
.page-banner h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.015em; }
.list-category { font-size: 22px; margin: 44px 0 24px; }

/* ---- 详情 ---- */
.detail-images { display: grid; gap: 16px; margin-bottom: 28px; }
.detail-images img { border-radius: var(--radius); }
.detail-summary { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.detail-body { font-size: 16px; color: #374151; }
.detail-body p { margin-bottom: 16px; }
.detail-body img { border-radius: var(--radius); margin: 16px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { background: var(--bg-soft); width: 200px; font-weight: 600; }
.article-detail { max-width: 800px; margin: 0 auto; }
.article-meta { color: var(--muted); margin-bottom: 20px; }
.article-cover { border-radius: var(--radius); margin-bottom: 24px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---- 页脚 ---- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 60px 24px 44px; max-width: var(--container); margin: 0 auto; }
.footer-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-intro { color: #94a3b8; font-size: 14px; max-width: 420px; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-bar p { font-size: 13px; color: #94a3b8; text-align: center; }
.footer-beian { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 8px; }
.footer-beian a { color: #94a3b8; font-size: 13px; }
.footer-beian a:hover { color: #cbd5e1; }

/* ---- 响应式 ---- */
@media (max-width: 880px) {
    .hero { padding: 72px 0; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .product-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nav { display: none; }
    .product-grid, .news-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}

/* 语言切换 */
.lang-switch { display: inline-flex; gap: 4px; margin-left: 12px; font-size: 13px; }
.lang-switch a { color: var(--muted, #6b7280); padding: 2px 6px; border-radius: 6px; }
.lang-switch a.current { color: var(--primary); font-weight: 600; }
.lang-switch a:hover { color: var(--primary); }
