/* ========== Components：按钮 / 卡片 / 表单 / Modal ========== */

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
  padding: 14px 32px; cursor: pointer; transition: all var(--t-fast) ease-out;
  white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--c-brass); color: var(--c-ink); border-color: var(--c-brass); }
.btn--primary:hover { background: var(--c-brass-deep); color: #fff; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-graphite); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--c-brass); color: var(--c-brass); }
.btn--outline-dark { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline-dark:hover { background: var(--c-ink); color: #fff; }
.btn--ghost { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 40px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ===== 卡片 ===== */
.card { background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t-med) ease-out; }
.card:hover { box-shadow: var(--shadow-md); }

/* 优势卡 */
.adv-card {
  background: #fff; border: 1px solid var(--border-stone); border-radius: var(--r-card); padding: var(--s-6) var(--s-5);
  text-align: center; position: relative; transition: all var(--t-med) ease-out;
}
.adv-card .adv-icon { width: 56px; height: 56px; margin: 0 auto var(--s-4); color: var(--c-brass); }
.adv-card h3 { font-size: 20px; margin-bottom: var(--s-2); }
.adv-card p { font-size: 14px; color: var(--c-mist); }
.adv-card .adv-num { position: absolute; top: var(--s-4); right: var(--s-4); font-family: var(--font-mono); font-size: 13px; color: var(--c-brass-soft); }
.adv-card:hover { transform: translateY(-4px); border-color: var(--c-brass); box-shadow: var(--shadow-md); }

/* 产品卡 */
.prod-card { position: relative; cursor: pointer; }
.prod-card .prod-img { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--c-bone); }
.prod-card .prod-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.prod-card:hover .prod-img .ph { transform: scale(1.05); }
.prod-card .prod-body { padding: var(--s-4) var(--s-2); }
.prod-card .prod-body h3 { font-size: 20px; margin-bottom: 2px; }
.prod-card .prod-body .prod-en { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--c-mist); margin-bottom: var(--s-2); }
.prod-card .prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-2); }
.prod-card .prod-meta .tag { font-size: 11px; padding: 3px 8px; background: var(--c-bone); color: var(--c-stone); border-radius: 2px; }
.prod-card .prod-price { font-family: var(--font-mono); font-size: 14px; color: var(--c-brass-deep); }
.prod-card .prod-cta { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-3); background: linear-gradient(transparent, rgba(14,14,16,0.85)); color: #fff; opacity: 0; transform: translateY(8px); transition: all var(--t-med) ease-out; font-size: 14px; text-align: center; }
.prod-card:hover .prod-cta { opacity: 1; transform: none; }
.prod-card .prod-cta .link-brass { color: var(--c-brass); border: 0; }

/* 产品类目入口卡 */
.cat-card { position: relative; overflow: hidden; aspect-ratio: 3/4; border-radius: var(--r-card); cursor: pointer; }
.cat-card .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 10s linear; }
.cat-card:hover .ph { transform: scale(1.1); }
.cat-card .cat-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(14,14,16,0.85)); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-5); transition: all var(--t-med); }
.cat-card .cat-overlay h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.cat-card .cat-overlay p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }
.cat-card .cat-overlay .cat-link { color: var(--c-brass); font-size: 14px; margin-top: var(--s-3); opacity: 0; transform: translateY(8px); transition: all var(--t-med); }
.cat-card:hover .cat-overlay .cat-link { opacity: 1; transform: none; }

/* 案例卡 */
.case-card { border-radius: var(--r-card); overflow: hidden; cursor: pointer; background: #fff; box-shadow: var(--shadow-sm); transition: all var(--t-med) ease-out; }
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case-card .case-img { aspect-ratio: 4/3; overflow: hidden; }
.case-card .case-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease-out); }
.case-card:hover .case-img .ph { transform: scale(1.05); }
.case-card .case-body { padding: var(--s-4); }
.case-card .case-body h3 { font-size: 19px; margin-bottom: 6px; }
.case-card .case-meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: 13px; color: var(--c-mist); }
.case-card .case-meta .tag { color: var(--c-brass); }

/* 文章卡 */
.news-card { display: flex; gap: var(--s-4); background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t-med); }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card .news-img { flex-shrink: 0; width: 200px; aspect-ratio: 4/3; overflow: hidden; }
.news-card .news-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.news-card:hover .news-img .ph { transform: scale(1.05); }
.news-card .news-body { padding: var(--s-3) var(--s-3) var(--s-3) 0; flex: 1; }
.news-card .news-body .news-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--c-brass); text-transform: uppercase; }
.news-card .news-body h3 { font-size: 18px; margin: 6px 0; }
.news-card .news-body p { font-size: 14px; color: var(--c-mist); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-body .news-date { font-size: 12px; color: var(--c-mist); }

/* 解决方案卡 */
.sol-card { position: relative; overflow: hidden; border-radius: var(--r-card); cursor: pointer; }
.sol-card .sol-img { aspect-ratio: 16/10; overflow: hidden; }
.sol-card .sol-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease-out); }
.sol-card:hover .sol-img .ph { transform: scale(1.06); }
.sol-card .sol-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(14,14,16,0.8)); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-5); color: #fff; }
.sol-card .sol-overlay h3 { color: #fff; font-size: 26px; margin-bottom: var(--s-2); }
.sol-card .sol-overlay p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: var(--s-3); }
.sol-card .sol-overlay .sol-link { color: var(--c-brass); font-size: 14px; }

/* 数字指标 */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.metric-item { text-align: center; }
.metric-item .metric-num { font-family: var(--font-serif); font-size: clamp(36px, 4vw, 56px); font-weight: 700; color: var(--c-brass); line-height: 1; }
.metric-item .metric-label { font-size: 14px; color: var(--c-mist); margin-top: 8px; letter-spacing: 0.05em; }
.metric-item.dark .metric-num { color: var(--c-brass); }
.metric-item.dark .metric-label { color: #a8a5a0; }

/* 时间线（服务流程） */
.timeline { display: flex; gap: 0; overflow-x: auto; padding-bottom: var(--s-4); }
.timeline-step { flex: 1; min-width: 140px; text-align: center; position: relative; padding: 0 var(--s-2); }
.timeline-step::before { content: ''; position: absolute; top: 28px; left: 50%; right: -50%; height: 2px; background: var(--c-brass-soft); z-index: 0; }
.timeline-step:last-child::before { display: none; }
.timeline-step .step-icon { width: 56px; height: 56px; margin: 0 auto var(--s-3); border-radius: 50%; background: #fff; border: 2px solid var(--c-brass); display: flex; align-items: center; justify-content: center; color: var(--c-brass); position: relative; z-index: 1; }
.timeline-step .step-num { font-family: var(--font-mono); font-size: 11px; color: var(--c-brass); margin-bottom: 4px; }
.timeline-step h4 { font-size: 16px; margin-bottom: 4px; }
.timeline-step p { font-size: 13px; color: var(--c-mist); }

/* FAQ 折叠 */
.faq-item { border-bottom: 1px solid var(--border-stone); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) 0; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--c-ink); }
.faq-q .faq-toggle { width: 24px; height: 24px; flex-shrink: 0; color: var(--c-brass); transition: transform var(--t-fast); }
.faq-item.is-open .faq-q .faq-toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) ease-out; }
.faq-item.is-open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: var(--s-4); color: var(--c-stone); }

/* Tab 切换 */
.tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-7); justify-content: center; }
.tab-btn { padding: 10px 24px; font-size: 15px; color: var(--c-stone); border: 1px solid var(--border-stone); border-radius: var(--r-pill); cursor: pointer; transition: all var(--t-fast); }
.tab-btn:hover { color: var(--c-brass); border-color: var(--c-brass); }
.tab-btn.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* 筛选侧栏 */
.filter-bar { display: flex; flex-direction: column; gap: var(--s-5); }
.filter-group h4 { font-size: 14px; margin-bottom: var(--s-3); letter-spacing: 0.05em; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 6px 14px; background: var(--c-bone); color: var(--c-stone); border-radius: var(--r-pill); cursor: pointer; transition: all var(--t-fast); }
.chip:hover { color: var(--c-brass); }
.chip.is-active { background: var(--c-brass); color: #fff; }

/* ===== 表单 ===== */
.form-row { margin-bottom: var(--s-4); }
.form-label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--c-ink); }
.form-label .req { color: var(--c-danger); }
.field { width: 100%; padding: 12px 16px; background: #fff; border: 1px solid var(--border-stone); border-radius: var(--r-input); font-size: 15px; color: var(--c-ink); transition: border-color var(--t-fast); }
.field:focus { outline: none; border-color: var(--c-brass); }
.field.error { border-color: var(--c-danger); }
textarea.field { resize: vertical; min-height: 96px; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238C8A85' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field-error { color: var(--c-danger); font-size: 13px; margin-top: 6px; display: none; }
.field-error.is-show { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(14,14,16,0.8); backdrop-filter: blur(4px); z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--s-5); opacity: 0; visibility: hidden; transition: all var(--t-med); }
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal { background: var(--c-ink); color: #c9c6c1; border-radius: var(--r-card); width: 100%; max-width: 560px; padding: var(--s-7); transform: translateY(20px); transition: transform var(--t-med) var(--ease-out); position: relative; border: 1px solid rgba(255,255,255,0.1); }
.modal-overlay.is-open .modal { transform: none; }
.modal h3 { color: #fff; font-size: 28px; margin-bottom: var(--s-2); }
.modal .modal-sub { color: var(--c-mist); font-size: 14px; margin-bottom: var(--s-5); }
.modal .modal-close { position: absolute; top: var(--s-4); right: var(--s-4); width: 36px; height: 36px; color: var(--c-mist); display: flex; align-items: center; justify-content: center; }
.modal .modal-close:hover { color: #fff; }
.modal .field { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); color: #fff; }
.modal .field:focus { border-color: var(--c-brass); }
.modal .form-label { color: #c9c6c1; }

/* ===== Toast ===== */
.toast { position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--c-ink); color: #fff; padding: 14px 28px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg); z-index: var(--z-toast); opacity: 0; visibility: hidden; transition: all var(--t-med); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { border: 1px solid var(--c-success); }
.toast.error { border: 1px solid var(--c-danger); }
.toast svg { width: 20px; height: 20px; }
.toast.success svg { color: var(--c-success); }
.toast.error svg { color: var(--c-danger); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: var(--z-toast); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--t-med); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; color: #fff; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav:hover { color: #fff; }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }

/* SVG 占位图通用 */
.ph { width: 100%; height: 100%; display: block; }

/* Logo 墙 */
.logo-wall { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; align-items: center; }
.logo-wall .logo-item { width: 140px; height: 64px; background: #fff; border: 1px solid var(--border-stone); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--c-mist); font-family: var(--font-serif); font-size: 15px; transition: all var(--t-fast); }
.logo-wall .logo-item:hover { border-color: var(--c-brass); color: var(--c-ink); }

/* 二维码占位 */
.qr-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-ph .qr-box { width: 140px; height: 140px; background: #fff; padding: 8px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.qr-ph .qr-label { font-size: 13px; color: var(--c-mist); }
