/* ===== Matrix Sport Lab 官网样式 ===== */
:root {
  --accent: #2f6fed;
  --accent-hover: #3a7bf5;
  --accent-soft: #eaf1ff;
  --nav-bg: #1e2a3a;
  --window-bg: #f5f6fa;
  --panel-bg: #ffffff;
  --border: #d5dbe5;
  --text: #2b2f36;
  --secondary: #8a93a3;
  --green: #00b42a;
  --red: #e05a5a;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30, 42, 58, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--window-bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; opacity: .9; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #4f8ef7);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: #c8cdd6; font-size: 15px; padding: 6px 2px; transition: color .2s; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; font-weight: 600; border-bottom: 2px solid var(--accent); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; }
.lang-switch a { color: #c8cdd6; font-size: 13px; padding: 2px 6px; }
.lang-switch a:hover { color: #fff; }
.lang-switch .lang-current { color: var(--accent); font-weight: 600; font-size: 13px; padding: 2px 6px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: all .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #c94f4f; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; margin-top: 6px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e2a3a 0%, #22314a 55%, #2f6fed 130%);
  color: #fff; padding: 90px 0 100px; text-align: center;
}
.hero h1 { font-size: 44px; margin-bottom: 18px; letter-spacing: 2px; white-space: nowrap; }
.hero-slogan { font-size: 22px; color: #9db8ff; margin-bottom: 14px; font-weight: 600; }
.hero-desc { font-size: 16px; color: #b9c4d6; max-width: 700px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }
.hero-actions .btn-primary { background: var(--accent); }
.hero-actions .btn-outline { border-color: #fff; color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--panel-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; }
.section-sub { color: var(--secondary); margin-top: 6px; font-size: 14px; letter-spacing: 2px; }
.page-hero {
  background: linear-gradient(135deg, #1e2a3a, #2c3e63);
  color: #fff; padding: 56px 0; text-align: center;
}
.page-hero h1 { font-size: 34px; margin-bottom: 10px; }
.page-hero p { color: #b9c4d6; }

/* ===== 公司简介 ===== */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 16px; font-size: 15.5px; color: #3f4753; }
.about-text strong { color: var(--text); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-align: center;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--secondary); margin-top: 6px; font-size: 14px; }

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.product-card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; color: var(--text);
  transition: all .25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(30,42,58,.13); border-color: var(--accent); color: var(--text); }
.product-icon { font-size: 40px; margin-bottom: 14px; }
.product-card h3 { font-size: 18px; margin-bottom: 6px; }
.product-short { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.product-summary { color: var(--secondary); font-size: 13.5px; flex: 1; }
.product-tags { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
}
.price { font-size: 14px; font-weight: 700; color: var(--accent); }
.price.free { color: var(--green); }
.product-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.more { font-size: 13px; color: var(--accent); }

/* 图文价值卡片：单列上下排列，顶部实景图 */
.feature-stack {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: 1280px; margin: 0 auto;
}
.feature-card {
  flex-direction: column;
}
/* 其余三张：与大卡同宽，保持视觉对齐 */
.feature-card:not(.feature-card-lg) {
  width: 100%;
}
.feature-card .card-img {
  width: 100%; height: 170px; object-fit: cover;
  border-radius: 10px; margin-bottom: 14px; display: block;
  background: var(--accent-soft);
}
/* 第一张卡片：放大到约 2 倍宽，顶部多运动轮播大图 */
.feature-card-lg {
  width: 100%; max-width: 100%; padding: 34px;
}
.feature-card-lg .carousel {
  position: relative; width: 100%;
  border-radius: 10px; overflow: hidden; margin-bottom: 18px;
  background: var(--accent-soft);
}
.feature-card-lg .carousel img {
  width: 100%; height: auto; display: none;
}
.feature-card-lg .carousel img.active { display: block; }
.feature-card-lg h3 { font-size: 30px; margin-bottom: 12px; }
.feature-card-lg .product-summary { font-size: 16px; line-height: 1.85; }

/* ===== CTA ===== */
.cta-banner {
  background: var(--accent-soft); border: 1px solid #c9dcff;
  border-radius: var(--radius); padding: 34px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-banner h3 { font-size: 22px; color: var(--accent); margin-bottom: 6px; }
.cta-banner p { color: #4a5c7a; }

/* ===== 产品详情 ===== */
.breadcrumb { padding: 18px 0; font-size: 14px; color: var(--secondary); }
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { color: var(--text); }
.detail-head { display: flex; align-items: center; gap: 24px; padding: 26px 0; }
.detail-icon { font-size: 64px; }
.detail-head h1 { font-size: 30px; }
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; }
.detail-main h2 { font-size: 22px; margin: 26px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.lead { color: #3f4753; font-size: 16px; }
.feature-list { list-style: none; }
.feature-list li {
  position: relative; padding: 9px 0 9px 26px; border-bottom: 1px dashed var(--border);
}
.feature-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.side-card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--accent); }
.side-card ul { list-style: none; }
.side-card li { padding: 5px 0 5px 18px; position: relative; font-size: 14.5px; }
.side-card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.side-card p { font-size: 14.5px; color: #3f4753; }

/* ===== 下载中心 ===== */
.download-table-wrap { overflow-x: auto; background: var(--panel-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.download-table { width: 100%; border-collapse: collapse; }
.download-table th {
  background: var(--nav-bg); color: #fff; text-align: left;
  padding: 13px 16px; font-size: 14px; white-space: nowrap;
}
.download-table td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.download-table tbody tr:hover { background: var(--accent-soft); }
.download-table .ops { white-space: nowrap; }
.hint { color: var(--secondary); font-size: 13.5px; margin-top: 14px; }

/* ===== 文档卡片 ===== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.doc-card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow);
}
.doc-icon { font-size: 32px; }
.doc-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.doc-card p { color: var(--secondary); font-size: 13px; flex: 1; }
.doc-actions { display: flex; flex-direction: column; gap: 8px; }

/* ===== 认证（登录/注册） ===== */
.auth-wrap { display: flex; justify-content: center; padding: 60px 0; }
.auth-card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 6px 24px rgba(30,42,58,.1);
}
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--secondary); font-size: 14px; margin-bottom: 24px; }
.auth-form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.auth-form input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; background: #f7f8fa;
}
.auth-form input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.req { color: var(--red); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--secondary); }

/* ===== 个人中心 / 后台 ===== */
.profile-layout { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 22px; }
.stat-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stat-row .stat-card { flex: 1; min-width: 160px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.search-bar input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px;
}
.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.badge-ok { background: #e4f7ea; color: var(--green); }
.badge-off { background: #fdeaea; color: var(--red); }

/* ===== Flash 消息 ===== */
.flash-area { margin: 18px 0; }
.flash {
  padding: 12px 18px; border-radius: 8px; margin-bottom: 8px; font-size: 14.5px;
}
.flash-success { background: #e4f7ea; color: var(--green); border: 1px solid #bfe8cd; }
.flash-error { background: #fdeaea; color: var(--red); border: 1px solid #f6c8c8; }
.flash-warning { background: #fff6e0; color: #b7791f; border: 1px solid #f2ddb0; }

/* ===== 错误页 ===== */
.error-wrap { text-align: center; padding: 80px 0; }
.error-code { font-size: 90px; font-weight: 800; color: var(--accent); line-height: 1; }
.error-wrap h1 { font-size: 24px; margin: 16px 0 10px; }
.error-wrap p { color: var(--secondary); margin-bottom: 24px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--nav-bg); color: #9aa0aa; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 46px 0 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p { font-size: 14px; color: #9aa0aa; }
.footer-col a { display: block; color: #9aa0aa; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.copyright { border-top: 1px solid #333c4a; padding: 16px 20px; text-align: center; font-size: 13px; color: #7a8290; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about-grid, .detail-layout, .profile-layout { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cta-banner { flex-direction: column; text-align: center; }
}
