/* ============================================================
   上海柏多商贸有限公司 - 官方网站
   参考元家 yens.com.tw 风格
   深蓝主色调，简洁大气
   ============================================================ */

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

:root {
  --blue: #00478c;
  --blue-dark: #003366;
  --blue-light: #005fa3;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #dce0e6;
  --gray-300: #b0b8c1;
  --gray-600: #5f6b7a;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --radius: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.4;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover { background: #e8f0f8; color: var(--blue); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.btn-full { display: block; width: 100%; }

/* ========================================
   Header
   ======================================== */
.top-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 6px 0;
}
.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img { height: 42px; width: auto; }
.logo-text { line-height: 1.3; }
.logo-cn {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
}
.logo-en {
  font-size: 10px;
  color: var(--gray-300);
  letter-spacing: 0.5px;
}

.nav { display: flex; gap: 2px; }
.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-800);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
  background: var(--blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--gray-800);
  padding: 4px 8px;
}

/* ========================================
   Banner
   ======================================== */
.banner {
  background: linear-gradient(135deg, #001a3a 0%, #003366 40%, #00478c 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.banner-slide { padding: 90px 0 80px; position: relative; }
.banner-content { max-width: 640px; }
.banner-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
  line-height: 1.3;
}
.banner-content p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.8;
}
.banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========================================
   Page Title (inner pages)
   ======================================== */
.page-title {
  background: linear-gradient(135deg, #001a3a, #003d6b);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.page-title h1 { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.page-title p { font-size: 14px; opacity: 0.7; letter-spacing: 2px; text-transform: uppercase; }

/* ========================================
   Sections
   ======================================== */
.section { padding: 64px 0; }
.section-gray { background: var(--gray-50); }
.section-blue { background: var(--blue); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-header p {
  font-size: 15px;
  color: var(--gray-600);
}

/* ========================================
   Product Grid (首页)
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.prod-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}
.prod-item:hover { transform: translateY(-4px); }
.prod-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.prod-emoji { font-size: 44px; }
.prod-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.prod-desc {
  font-size: 13px;
  color: var(--gray-600);
}

/* ========================================
   About Row (首页)
   ======================================== */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-left h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}
.about-left p {
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.9;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  padding: 24px 12px;
  transition: box-shadow var(--transition);
}
.about-card:hover { box-shadow: var(--shadow-md); }
.about-card-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}
.about-card-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ========================================
   Advantages
   ======================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  text-align: center;
  padding: 28px 16px;
}
.adv-icon { margin-bottom: 14px; }
.adv-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.adv-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   Content Narrow (关于我们)
   ======================================== */
.content-narrow { max-width: 780px; margin: 0 auto; }
.content-narrow h2 {
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 20px;
  text-align: center;
}
.content-narrow p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.9;
  font-size: 15px;
}

/* ========================================
   Values Grid
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); }
.value-icon { font-size: 36px; margin-bottom: 12px; }
.value-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   Biz Grid
   ======================================== */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.biz-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow var(--transition);
}
.biz-card:hover { box-shadow: var(--shadow-md); }
.biz-icon { font-size: 36px; margin-bottom: 12px; }
.biz-card h3 {
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 10px;
}
.biz-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.7;
}
.biz-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--blue);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ========================================
   Supply Flow
   ======================================== */
.supply-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
}
.supply-node {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  flex: 1;
  max-width: 200px;
  transition: box-shadow var(--transition);
}
.supply-node:hover { box-shadow: var(--shadow-md); }
.supply-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}
.supply-node h4 {
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.supply-node p {
  font-size: 13px;
  color: var(--gray-600);
}
.supply-line {
  font-size: 28px;
  color: var(--gray-300);
  padding: 0 8px;
  font-weight: 300;
}

/* ========================================
   Product Page
   ======================================== */
.product-nav-sticky {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-bottom: 24px;
}
.pnav-item {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-decoration: none;
}
.pnav-item:hover,
.pnav-item.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.product-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.product-section-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  flex-shrink: 0;
}
.product-section-header h2 {
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 2px;
}
.product-section-header p {
  font-size: 13px;
  color: var(--gray-300);
  letter-spacing: 1px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition);
}
.product-detail-card:hover { box-shadow: var(--shadow-md); }
.product-detail-card h3 {
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 6px;
}
.product-origin {
  font-size: 13px;
  color: var(--gray-300);
  margin-bottom: 12px;
}
.product-detail-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ptag {
  font-size: 12px;
  background: var(--gray-100);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 24px;
}
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon-circle {
  font-size: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-label { font-size: 12px; color: var(--gray-300); margin-bottom: 2px; }
.contact-value { font-size: 16px; font-weight: 500; color: var(--gray-900); }

.region-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.region-item {
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  border-left: 3px solid var(--blue);
}
.region-item strong { color: var(--blue); }

/* Contact Form */
.contact-form-area {
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.contact-form-area h2 {
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 4px;
}

.cform-group { margin-bottom: 16px; }
.cform-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.cform-group input,
.cform-group select,
.cform-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
}
.cform-group input:focus,
.cform-group select:focus,
.cform-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,71,140,0.1);
}

.form-ok {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #001a3a;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col-wide p { font-size: 13px; margin-bottom: 4px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col p { font-size: 13px; margin-bottom: 4px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .supply-flow { flex-wrap: wrap; }
  .supply-node { max-width: 45%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .banner-content h1 { font-size: 28px; }
  .banner-content p { font-size: 15px; }
  .banner-slide { padding: 56px 0 48px; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px;
    border-bottom: 2px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    z-index: 100;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .supply-flow { flex-direction: column; }
  .supply-node { max-width: 100%; }
  .supply-line { transform: rotate(90deg); padding: 4px 0; }
  .section { padding: 48px 0; }

  .product-nav-sticky {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .pnav-item { white-space: nowrap; flex-shrink: 0; }
}

/* ========================================
   悬浮客服按钮
   ======================================== */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #00478c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,71,140,0.35);
  transition: all 0.2s;
  border: none;
}
.float-btn:hover {
  background: #003366;
  transform: scale(1.08);
}
.float-menu {
  position: absolute;
  bottom: 68px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 180px;
  display: none;
}
.float-menu.open { display: block; }
.float-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.float-menu-item:hover {
  background: #f5f7fa;
  color: #00478c;
}
.float-menu-item .icon { font-size: 20px; }
.float-menu-item.phone { color: #27ae60; }
.float-menu-item.phone:hover { color: #1e8449; }
.float-menu-item.wechat { color: #07c160; }
.float-menu-item.wechat:hover { color: #059b50; }
.float-divider {
  height: 1px;
  background: #eee;
  margin: 4px 12px;
}
