/* ============================================
   Sharewin Material - Corporate B2B Style
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1a5276;
  --color-primary-light: #2980b9;
  --color-accent: #e67e22;
  --color-accent-hover: #d35400;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-text: #2c3e50;
  --color-text-light: #5d6d7e;
  --color-border: #e0e6ed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: #d6eaf8;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar i {
  margin-right: 5px;
}

/* --- Header / Nav --- */
.header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--color-primary);
}

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

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

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 38px;
  }
}
.logo-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.nav a {
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-primary);
  cursor: pointer;
  padding: 5px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c3e50 100%);
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><polygon fill="%23ffffff08" points="0,400 400,0 400,400"/><circle cx="300" cy="100" r="80" fill="%23ffffff05"/><circle cx="100" cy="300" r="60" fill="%23ffffff05"/></svg>') no-repeat center;
  background-size: cover;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.hero h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #d6eaf8;
  margin-bottom: 30px;
  line-height: 1.8;
}

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

.hero-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #ecf0f1;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-header h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto;
  border-radius: 2px;
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-accent);
}

.stat-card .number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-card .label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-images .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
  transition: var(--transition);
}

.about-images .img-placeholder:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.about-images .img-placeholder .icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.about-images .img-placeholder.tall {
  grid-row: span 2;
  aspect-ratio: 3/4;
}

/* Real image wrappers (replacing placeholders) */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.about-img-wrap.tall {
  aspect-ratio: 3/4;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about-img-wrap:hover img {
  transform: scale(1.04);
}

.about-img-wrap .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* --- Products Page --- */
.product-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  border-radius: 30px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn:hover,
.cat-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.product-card-header h3 {
  font-size: 22px;
  font-weight: 600;
}

.product-card-header .toggle-icon {
  font-size: 24px;
  transition: transform 0.3s;
}

.product-card.open .product-card-header .toggle-icon {
  transform: rotate(180deg);
}

.product-card-body {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.product-card.open .product-card-body {
  padding: 30px;
  max-height: 2000px;
}

.product-description {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.product-specs th,
.product-specs td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.product-specs th {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-weight: 600;
  width: 40%;
}

.product-specs td {
  color: var(--color-text);
}

.product-specs tr:last-child th,
.product-specs tr:last-child td {
  border-bottom: none;
}

.product-image-area {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--color-text-light);
  margin-top: 16px;
  overflow: hidden;
}

.product-image-area img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.product-image-area .icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.4;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info {
  background: var(--color-primary);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aed6f1;
  margin-bottom: 2px;
}

.contact-item .value {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}

.contact-item a.value {
  color: #d6eaf8;
}

.contact-item a.value:hover {
  color: var(--color-accent);
}

/* --- Quote Form --- */
.quote-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.quote-form h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.quote-form .form-subtitle {
  color: var(--color-text-light);
  margin-bottom: 28px;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235d6d7e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin-top: 10px;
}

.form-success {
  display: none;
  background: #d4efdf;
  color: #1e8449;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  border: 1px solid #a9dfbf;
}

/* --- Features Bar --- */
.features-bar {
  background: var(--color-bg-alt);
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
}

.feature-item .icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* --- Footer --- */
.footer {
  background: #1a252f;
  color: #bdc3c7;
  padding: 50px 0 20px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer p,
.footer a {
  font-size: 14px;
  color: #bdc3c7;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer .footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #34495e;
  font-size: 13px;
}

/* --- SEO / Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero h2 {
    font-size: 32px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 50px 0;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h2 {
    font-size: 26px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    grid-template-columns: 1fr;
  }

  .top-bar .container {
    font-size: 12px;
  }
}
/* ===== 移动端产品页精准修复 ===== */
@media (max-width: 768px) {
  /* 产品卡片在小屏取消固定最大宽度，改为自适应 */
  .product-card[style*="max-width"] {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 产品卡片头部的标题和箭头在一行，不换行 */
  .product-card-header {
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 16px 18px;
  }

  .product-card-header h3 {
    font-size: 17px !important;
    white-space: normal;
    word-break: break-word;
    flex: 1;
  }

  .product-card-header .toggle-icon {
    flex-shrink: 0;
  }

  /* 产品卡片内部内容区域 */
  .product-card-body {
    padding: 0 18px 18px !important;
  }

  /* 规格表格在小屏不溢出 */
  .product-specs {
    font-size: 13px;
    width: 100%;
    display: table;
  }

  .product-specs th,
  .product-specs td {
    padding: 8px 10px;
    word-break: break-word;
  }

  /* 产品图片区域不溢出 */
  .product-image-area {
    padding: 10px;
    margin-top: 12px;
  }

  .product-image-area img {
    max-width: 100%;
    height: auto;
  }

  /* 请求报价按钮全宽 */
  .product-card-body .btn {
    width: 100%;
    text-align: center;
  }

  /* 分类导航按钮紧凑排列 */
  .product-categories {
    gap: 8px;
  }

  .cat-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* 页面标题缩小 */
  .hero h2[style*="font-size"] {
    font-size: 26px !important;
  }

  .hero p[style*="font-size"] {
    font-size: 15px !important;
  }
}