:root {
    --primary: #1b1e5b;
    --accent: #393fb4;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-gray: #f8f9fc;
    --border: #e8e8e8;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; transition: .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(27,30,91,.95); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 36px; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.main-nav { display: flex; gap: 4px; }
.nav-item-wrap { position: relative; }
.nav-link { display: flex; flex-direction: column; padding: 8px 14px; color: rgba(255,255,255,.85); font-size: 13px; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-cn { font-size: 14px; font-weight: 500; }
.nav-en { font-size: 10px; opacity: .6; letter-spacing: .5px; }
.sub-nav { display: none; position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 4px; overflow: hidden; }
.sub-nav a { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; }
.sub-nav a:hover { background: var(--bg-gray); color: var(--accent); }
.nav-item-wrap:hover .sub-nav { display: block; }

.site-main { margin-top: 70px; }

/* Hero */
.hero-slider { position: relative; height: 70vh; min-height: 400px; overflow: hidden; }
.hero-slide { height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,30,91,.7), rgba(57,63,180,.4)); }
.hero-default { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.hero-content { position: relative; z-index: 1; color: #fff; padding: 0 10%; max-width: 700px; }
.hero-content h2 { font-size: 42px; margin-bottom: 16px; font-weight: 700; }
.hero-content p { font-size: 18px; opacity: .9; margin-bottom: 24px; }

.page-banner { height: 280px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(27,30,91,.6); }
.page-banner-default { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.page-banner .container { position: relative; z-index: 1; color: #fff; }
.page-banner h1 { font-size: 36px; }
.page-banner p { opacity: .8; font-size: 14px; letter-spacing: 2px; }

/* Sections */
.section { padding: 80px 0; }
.section:nth-child(even) { background: var(--bg-gray); }
.section-title { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.section-title.center { text-align: center; margin-bottom: 48px; }
.section-subtitle { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 20px; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-image img { border-radius: 8px; box-shadow: 0 20px 60px rgba(27,30,91,.15); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.quick-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: .3s; color: var(--text); }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,30,91,.12); color: var(--text); }
.quick-card img { height: 180px; width: 100%; object-fit: cover; }
.quick-card h3 { padding: 16px 16px 4px; font-size: 16px; color: var(--primary); }
.quick-card p { padding: 0 16px 16px; font-size: 13px; color: var(--text-light); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: .3s; color: var(--text); }
.product-card:hover { transform: translateY(-4px); color: var(--text); }
.product-card img { height: 200px; width: 100%; object-fit: cover; }
.product-card h3 { padding: 16px 16px 4px; color: var(--primary); font-size: 16px; }
.product-card p { padding: 0 16px 8px; font-size: 12px; color: var(--accent); letter-spacing: 1px; }
.product-card .card-desc { display: block; padding: 0 16px 16px; font-size: 13px; color: var(--text-light); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); color: var(--text); transition: .3s; }
.news-card:hover { transform: translateY(-4px); color: var(--text); }
.news-card img { height: 180px; width: 100%; object-fit: cover; }
.news-info { padding: 16px; }
.news-info time { font-size: 12px; color: #999; }
.news-info h3 { font-size: 16px; margin: 8px 0; color: var(--primary); }
.news-info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; align-items: center; }
.partner-item { background: #fff; padding: 24px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.partner-item img { height: 60px; width: auto; margin: 0 auto; object-fit: contain; }

/* Page blocks */
.page-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.page-block.reverse { direction: rtl; }
.page-block.reverse > * { direction: ltr; }
.block-image img { border-radius: 8px; width: 100%; }
.block-text h2 { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.block-text .subtitle { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.block-text .desc { color: var(--text-light); margin-bottom: 16px; }

/* Color */
.color-search, .store-search { display: flex; gap: 12px; max-width: 500px; margin: 0 auto 32px; }
.color-search input, .store-search input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px; }
.color-search button, .store-search button { padding: 12px 24px; background: var(--primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.color-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.color-swatch { height: 80px; }
.color-info { padding: 10px; font-size: 13px; }
.color-info strong { display: block; color: var(--primary); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.case-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.case-card img { height: 200px; width: 100%; object-fit: cover; }
.case-card h3 { padding: 16px 16px 8px; color: var(--primary); }
.case-card p { padding: 0 16px 16px; font-size: 13px; color: var(--text-light); }

/* FAQ & Calc */
.calc-form { max-width: 400px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-row input, .form-row select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; }
.calc-result { margin-top: 20px; padding: 16px; background: var(--bg-gray); border-radius: 8px; text-align: center; font-size: 18px; color: var(--primary); }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 500; color: var(--primary); }
.faq-answer { padding: 0 20px 16px; color: var(--text-light); font-size: 14px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.contact-card { background: #fff; padding: 24px; border-radius: 8px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.contact-card h3 { color: var(--primary); margin-bottom: 8px; }
.store-list { display: grid; gap: 16px; max-width: 800px; margin: 0 auto; }
.store-item { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.store-item h3 { color: var(--primary); margin-bottom: 8px; }

/* Product detail */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.main-img { border-radius: 8px; width: 100%; }
.product-info h1 { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.product-info .model { color: var(--accent); margin-bottom: 12px; }
.features ul { list-style: none; padding: 0; }
.features li { padding: 6px 0; padding-left: 20px; position: relative; }
.features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.specs-table table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.specs-table th, .specs-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.specs-table th { background: var(--bg-gray); width: 30%; color: var(--primary); }

.product-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-list-item { display: flex; gap: 16px; background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); color: var(--text); transition: .3s; }
.product-list-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); color: var(--text); }
.product-list-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.product-list-item h3 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }

/* News */
.news-list { display: grid; gap: 20px; }
.news-list-item { display: flex; gap: 20px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); color: var(--text); transition: .3s; }
.news-list-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); color: var(--text); }
.news-list-item img { width: 200px; height: 140px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

.article h1 { font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.article .meta { color: #999; font-size: 13px; margin-bottom: 24px; display: flex; gap: 16px; }
.article-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.article-content { font-size: 16px; line-height: 1.8; }
.article-content p { margin-bottom: 16px; }
.article-back { margin-top: 40px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 500; transition: .2s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-light { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-light:hover { background: #fff; color: var(--primary); }

/* Side tools */
.side-tools { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 999; display: flex; flex-direction: column; gap: 4px; }
.side-tools a { width: 44px; height: 44px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 4px; transition: .2s; }
.side-tools a:hover { background: var(--accent); color: #fff; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 40px 0; font-size: 13px; }
.footer-info { margin-bottom: 16px; }
.footer-copy a { color: rgba(255,255,255,.6); }

.empty-tip { text-align: center; color: #999; padding: 40px; }
.pagination { margin-top: 32px; text-align: center; }

/* Responsive */
@media (max-width: 1020px) {
    .intro-grid, .page-block, .product-detail { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: var(--primary); flex-direction: column; padding: 20px; overflow-y: auto; }
    .main-nav.open { display: flex; }
    .nav-link { padding: 14px 16px; }
    .sub-nav { position: static; box-shadow: none; background: rgba(255,255,255,.05); }
    .sub-nav a { color: rgba(255,255,255,.7); }
    .quick-grid { grid-template-columns: 1fr; }
    .news-list-item { flex-direction: column; }
    .news-list-item img { width: 100%; height: 180px; }
    .side-tools { display: none; }
    .section { padding: 48px 0; }
    .hero-slider { height: 50vh; min-height: 300px; }
}
