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

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
        "Microsoft YaHei", system-ui, sans-serif;
    background: #f3f4f6;
    color: #0f172a;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

section {
    position: relative;
}

/* 头部导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* background: rgba(255, 255, 255, 0.96); */
    background: #fff;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: radial-gradient(circle at 0 0, #4ad0ff, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 0 14px rgba(90, 145, 255, 0.7);
}

.logo-mark.small {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 9px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 15px;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.9);
}

.main-nav {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 6px;
    color: #0f172a;
    padding: 5px 9px;
    font-size: 18px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.nav-list a {
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    color: #0f172a;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover {
    color: #2563eb;
    border-color: #2563eb;
}

/* Hero 区域 */
.hero {
    padding: 90px 0 80px;
    background: #fff;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 36px;
}

.hero-content {
    flex: 1 1 320px;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 16px;
}

.hero-content p {
    margin: 0 0 18px;
    color: rgba(55, 65, 81, 0.96);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.btn-primary {
    /* background: linear-gradient(135deg, #4f46e5, #06b6d4); */
    background-color: #0052d9;
    color: #ffffff;
    /* box-shadow: 0 8px 20px rgba(88, 80, 236, 0.6); */
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(88, 80, 236, 0.7);
}

.btn-outline {
    background: transparent;
    color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
    background: rgba(239, 246, 255, 0.9);
}

.btn-full {
    width: 100%;
}

.hero-meta {
    font-size: 12px;
    color: rgba(99, 115, 148, 0.95);
}

.hero-side {
    flex: 0 1 520px;
}

.hero-card {
    background: radial-gradient(
            circle at 0 0,
            rgba(96, 165, 250, 0.25),
            transparent 60%
        ),
        #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.hero-card h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 13px;
}

.hero-card li::before {
    content: "•";
    color: #38bdf8;
    margin-right: 6px;
}

.hero-note {
    font-size: 12px;
    color: rgba(100, 116, 139, 0.95);
}

/* 通用区块 */
.section {
    padding: 72px 0;
}

.section-alt {
    background: #eef2f7;
}

/* 主要区块纯色背景区分 */
#products.section {
    background: #f9fafb;
}

#solutions.section {
    background: #ffffff;
}

#about.section-alt {
    background: #f3f4f6;
}

#cases.section {
    background: #ffffff;
}

#faq.section-alt {
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 26px;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 30px;
    margin: 0 0 8px;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(100, 116, 139, 0.98);
}

/* 产品区 */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn.active,
.filter-btn:hover {
    /* background: linear-gradient(135deg, #3b82f6, #22c55e); */
    background-color: #0052d9;
    border-color: transparent;
    color: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    gap: 24px;
    justify-content: flex-start;
    max-width: calc(500px * 4 + 24px * 3);
    margin: 0 auto;
}

.product-card {
    max-width: 254px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.product-card .pic-box {
    display: flex;
    justify-content: center;
    height: 180px;
    text-align: center;
}

.product-card .pic-box img {
    height: 100%;
    object-fit: cover;
    text-emphasis: center;
}

.price-box {
    color: red;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(30, 64, 175, 0.18);
    border-color: rgba(96, 165, 250, 0.9);
}

.product-card h3 {
    font-size: 16px;
    margin: 10px 0 6px;
}

.product-tag {
    font-size: 12px;
    color: #2563eb;
    margin: 0 0 8px;
}

.product-desc {
    font-size: 13px;
    margin: 0 0 8px;
    color: rgba(55, 65, 81, 0.98);
}

.product-spec {
    font-size: 12px;
    margin: 0;
    padding-left: 18px;
    color: rgba(75, 85, 99, 0.98);
}

.product-tip {
    font-size: 12px;
    color: rgba(100, 116, 139, 0.98);
    margin-top: 14px;
}

/* 方案区 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.solution-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.solution-card h3 {
    margin: 8px 0 0px;
    font-size: 16px;
    padding: 4px 14px;
    text-align: center;
}

.solution-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: rgba(55, 65, 81, 0.98);
    padding: 4px 14px;
}

.solution-card ul {
    font-size: 12px;
    margin: 0;
    padding-left: 18px;
    color: rgba(75, 85, 99, 0.98);
    margin-left: 14px;
    margin-bottom: 10px;
}

/* 关于我们 */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: start;
}

.about-text p {
    font-size: 15px;
    color: rgba(55, 65, 81, 0.98);
}

.about-text p + p {
    margin-top: 8px;
}

.about-list {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: rgba(100, 116, 139, 0.98);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.highlight-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 13px 12px;
    border: 1px solid rgba(219, 234, 254, 0.9);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-number {
    font-size: 20px;
    font-weight: 700;
}

.highlight-label {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.98);
}

/* 案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.case-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.case-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.case-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: rgba(55, 65, 81, 0.98);
}

.case-card ul {
    font-size: 12px;
    margin: 0;
    padding-left: 18px;
    color: rgba(75, 85, 99, 0.98);
}

/* FAQ */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

summary {
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 550;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(55, 65, 81, 0.98);
}

/* 联系方式 */
.contact-section {
    background: #fbfbfb;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 40px;
    align-items: start;
}

.contact-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    font-size: 14px;
}

.contact-list li {
    margin-bottom: 4px;
}

.contact-list span {
    color: rgba(100, 116, 139, 0.98);
    margin-right: 4px;
}

.contact-note {
    font-size: 12px;
    color: rgba(100, 116, 139, 0.98);
}

.contact-extra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.wechat-box,
.contact-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.wechat-box h3,
.contact-form h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.wechat-box p,
.contact-form p {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(100, 116, 139, 0.98);
}

.wechat-placeholder {
    border-radius: 12px;
    /* border: 1px dashed rgba(148, 163, 184, 0.9); */
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.9);
    position: relative;
    overflow: hidden;
}

.wechat-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.wechat-placeholder span {
    position: absolute;
    z-index: 1;
}

.form-row {
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 7px 9px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

input:focus,
textarea:focus {
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* 页脚 */
.site-footer {
    border-top: 1px solid rgba(203, 213, 225, 0.9);
    background: #fff;
    padding: 14px 0;
    font-size: 12px;
    color: rgba(100, 116, 139, 0.98);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-sub {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.98);
}

.footer-icp {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.98);
    margin-top: 4px;
}

.footer-icp #icp-number {
    color: rgba(100, 116, 139, 0.98);
}

.footer-right a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 响应式布局 */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 780px) {
    .header-inner {
        padding-inline: 10px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-list {
        position: absolute;
        right: 0;
        top: 110%;
        flex-direction: column;
        align-items: flex-start;
        background: #ffffff;
        border-radius: 12px;
        padding: 8px 12px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        min-width: 160px;
        display: none;
    }

    .nav-list.open {
        display: flex;
    }

    .hero {
        padding-top: 52px;
    }
}

@media (max-width: 600px) {
    .hero-inner {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section {
        padding: 40px 0;
    }

    .contact-extra {
        grid-template-columns: minmax(0, 1fr);
    }
}
