/* ============================================================
   Magic Zebra Marine - 品牌样式表
   专业、干净、大气
   ============================================================ */

/* ----- 全局重置 & 变量 ----- */
:root {
  --color-primary: #0b1a33;      /* 深海蓝 - 主色 */
  --color-secondary: #c9a84c;    /* 金色 - 点缀 */
  --color-accent: #1a3a5c;       /* 深蓝灰 - 辅助 */
  --color-text: #1e293b;         /* 深灰 - 正文 */
  --color-text-light: #64748b;   /* 浅灰 - 辅助文字 */
  --color-bg: #f8fafc;           /* 极浅灰 - 背景 */
  --color-white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ----- 容器 ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- 链接 ----- */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color-secondary);
}

/* ----- 按钮 ----- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.btn:hover {
  background: #b8963a;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}
.btn-primary {
  background: var(--color-primary);
}
.btn-primary:hover {
  background: #122a4a;
  box-shadow: 0 8px 25px rgba(11, 26, 51, 0.3);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.8rem;
  border-radius: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}
.btn-small:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================================
   导航栏
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.site-header .logo span {
  color: var(--color-secondary);
}

.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.site-header nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
.site-header nav a:hover {
  color: var(--color-secondary);
}
.site-header nav .btn-nav {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
}
.site-header nav .btn-nav:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   首页 - 英雄区 (Hero)
   ============================================================ */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(160deg, var(--color-primary) 0%, #0d2847 60%, #1a3a5c 100%);
  border-radius: var(--radius);
  margin: 30px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.hero h1 span {
  color: var(--color-secondary);
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}
.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================================
   首页 - 材质分类
   ============================================================ */
.materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}
.material {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  text-align: center;
}
.material:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.material .icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.material h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.material p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.material a {
  font-weight: 600;
  color: var(--color-secondary);
}
.material a:hover {
  color: var(--color-primary);
}

/* ============================================================
   产品列表页
   ============================================================ */
.page-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 30px 0 8px;
}
.page-subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px 0;
}
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #f1f5f9;
}
.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.product-card h3 a {
  color: var(--color-primary);
}
.product-card h3 a:hover {
  color: var(--color-secondary);
}
.product-card .brief {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 8px 0 16px;
}

/* ============================================================
   产品详情页
   ============================================================ */
.product-detail {
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin: 30px 0;
}
.product-detail h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.product-detail .product-meta {
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.product-detail .product-image {
  text-align: center;
  margin: 24px 0 32px;
}
.product-detail .product-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.product-detail .product-description {
  font-size: 1.05rem;
}
.product-detail .product-description ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.product-detail .product-description li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-detail .product-description li::before {
  content: '✦';
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.product-downloads {
  background: #f8fafc;
  padding: 24px 32px;
  border-radius: var(--radius);
  margin: 30px 0;
  border-left: 4px solid var(--color-secondary);
}
.product-downloads h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.product-downloads ul {
  list-style: none;
  padding: 0;
}
.product-downloads li {
  padding: 4px 0;
}
.product-downloads a {
  color: var(--color-primary);
  font-weight: 500;
}
.product-downloads a:hover {
  color: var(--color-secondary);
}

/* ============================================================
   询盘表单
   ============================================================ */
.inquiry-form {
  background: var(--color-white);
  padding: 40px 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin: 50px 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.inquiry-form h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.inquiry-form .form-desc {
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin: 6px 0 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--color-bg);
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
  background: var(--color-white);
}
.inquiry-form textarea {
  min-height: 130px;
  resize: vertical;
}
.inquiry-form .btn-submit {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.inquiry-form .btn-submit:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 26, 51, 0.2);
}
.inquiry-form .form-note {
  margin-top: 14px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ============================================================
   底部
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 30px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 60px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.site-footer .footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
}
.site-footer .footer-brand span {
  color: var(--color-secondary);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}
.site-footer a:hover {
  color: var(--color-secondary);
}
.site-footer .footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  width: 100%;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 50px 16px 40px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }
  .site-header nav {
    gap: 16px;
    justify-content: center;
  }
  .site-header nav a {
    font-size: 0.8rem;
  }
  .product-detail {
    padding: 24px;
  }
  .inquiry-form {
    padding: 24px;
  }
  .materials {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}