/* EDISIN Website - Main Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1B5E3B;
  --primary-dark: #144a2e;
  --primary-light: #2a7a50;
  --accent: #C9A227;
  --bg-light: #F5F8F5;
  --bg-white: #FFFFFF;
  --text-dark: #222;
  --text-gray: #555;
  --text-light: #888;
  --border: #e0e5e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}
.lang-switch {
  margin-left: 20px;
  padding: 6px 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switch:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Hero Banner ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -150px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.hero-btns {
  margin-top: 36px;
  display: flex;
  gap: 16px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #b8931d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.3);
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
.hero-image {
  text-align: center;
}
.hero-product {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 120px;
}

/* ===== Stats ===== */
.stats {
  background: var(--bg-white);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.stat-item {
  background: #fff;
  padding: 32px 20px;
  text-align: center;
}
.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number small {
  font-size: 20px;
  margin-left: 2px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-gray);
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}
.section-bg {
  background: var(--bg-light);
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Products Section ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.product-img {
  height: 200px;
  background: linear-gradient(135deg, #e8f0ea 0%, #d5e4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.product-body {
  padding: 24px;
}
.product-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.product-code {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.product-body p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}
.product-specs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-gray);
}
.product-specs span {
  display: inline-block;
  margin-right: 12px;
}

/* ===== Brands Section ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.brand-item {
  background: #fff;
  padding: 28px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}
.brand-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* ===== Advantages Section ===== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.adv-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateX(4px);
}
.adv-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.adv-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.adv-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== Quality Section ===== */
.quality-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.quality-img {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.quality-list {
  margin-top: 24px;
}
.quality-list h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 20px;
}
.quality-list h3:first-child { margin-top: 0; }
.quality-list ul {
  list-style: none;
}
.quality-list li {
  font-size: 14px;
  color: var(--text-gray);
  padding: 6px 0 6px 20px;
  position: relative;
}
.quality-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.cert-badges {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}
.cert-badge {
  padding: 10px 20px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* ===== Contact CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.cta-section h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
  background: #1a2e22;
  color: #aaa;
  padding: 60px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}
.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  padding: 5px 0;
}
.footer-links a {
  color: #aaa;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact p {
  padding: 4px 0;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid #2a3e2e;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ===== Page Title ===== */
.page-title {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-title h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.page-title p {
  font-size: 15px;
  opacity: 0.85;
}

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.about-img {
  background: linear-gradient(135deg, #e8f0ea, #d5e4d8);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.about-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.about-text p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ===== Spec Table ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.spec-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-gray);
}
.spec-table tr:hover td {
  background: var(--bg-light);
}
.spec-table tr:nth-child(even) td {
  background: #fafcfb;
}
.spec-table tr:nth-child(even):hover td {
  background: var(--bg-light);
}

/* ===== Cross Reference ===== */
.ref-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ref-tab {
  padding: 10px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.ref-tab:hover, .ref-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ref-panel { display: none; }
.ref-panel.active { display: block; }

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.contact-item p {
  font-size: 14px;
  color: var(--text-gray);
}

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contact-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover {
  background: var(--primary-dark);
}

/* ===== Products Page ===== */
.product-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.product-tab {
  padding: 10px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.product-tab:hover, .product-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero-btns { justify-content: center; }
  .hero-product { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .quality-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
