*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1d1d1f; background: #fff; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 52px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(55,55,58,.94);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.nav-inner {
  width: 100%; max-width: 1024px; padding: 0 22px;
  display: flex; align-items: center;
}
.nav-logo img { height: 36px; opacity: .95; transition: opacity .3s; }
.nav-logo img:hover { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin-left: 28px; flex: 1; }
.nav-primary a {
  font-size: 14px; color: #8DC63F; font-weight: 500;
  letter-spacing: .02em; transition: color .3s;
}
.nav-primary a:hover { color: #a8e04a; }
.nav-spacer { flex: 1; }
.nav-secondary a {
  font-size: 13px; color: rgba(141,198,63,.7); letter-spacing: .02em;
  transition: color .3s;
}
.nav-secondary a:hover { color: #8DC63F; }
.nav-menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-menu-btn span {
  display: block; width: 18px; height: 1.5px; background: #fff;
  margin: 4px 0; transition: transform .3s, opacity .3s;
}
.nav-back {
  margin-left: 20px; font-size: 14px; color: #8DC63F; font-weight: 500;
  transition: opacity .3s;
}
.nav-back:hover { opacity: .7; }
.nav-title { flex: 1; text-align: center; font-size: 15px; color: rgba(255,255,255,.85); font-weight: 500; }

/* Hero */
.hero {
  position: relative; width: 100%;
  height: 640px;
  background: url('../img/home.jpg') center/cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  padding-bottom: 48px;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 40%, rgba(0,0,0,.50) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 0 24px; max-width: 720px;
}
.hero-content h1 {
  font-size: 52px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15; margin-bottom: 16px; color: #8DC63F;
}
.hero-content p {
  font-size: 19px; font-weight: 400; color: rgba(255,255,255,.85);
  line-height: 1.6; margin-bottom: 32px;
}

/* Section Common */
.section {
  padding: 88px 24px;
  max-width: 1024px; margin: 0 auto;
}
.section-full {
  padding: 88px 0; width: 100%;
}
.section-gray { background: #f5f5f7; }
.section-dark { background: #1d1d1f; color: #f5f5f7; }
.section-title {
  font-size: 44px; font-weight: 700; text-align: center;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 18px; color: #86868b; text-align: center;
  max-width: 600px; margin: 0 auto 56px;
}

/* Download */
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; max-width: 800px; margin: 0 auto;
}
.dl-card {
  background: #fff; border-radius: 18px; padding: 32px 20px;
  text-align: center; transition: transform .3s, box-shadow .3s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.10); }
.dl-icon { font-size: 36px; margin-bottom: 12px; }
.dl-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.dl-sub { font-size: 13px; color: #86868b; margin-bottom: 16px; }
.dl-platforms { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dl-tag {
  font-size: 12px; padding: 4px 12px; border-radius: 12px;
  background: #f0f7e6; color: #5a9a1e; font-weight: 500;
}

/* About */
.about-wrap {
  max-width: 980px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-img { border-radius: 20px; overflow: hidden; }
.about-img img { width: 100%; height: auto; }
.about-text h3 {
  font-size: 15px; font-weight: 600; color: #8DC63F;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.about-text h2 {
  font-size: 32px; font-weight: 700; line-height: 1.25; margin-bottom: 20px;
}
.about-text p {
  font-size: 15px; color: #515154; line-height: 1.8; margin-bottom: 14px;
}
.about-stats {
  display: flex; justify-content: space-around; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}
.about-stats > div { flex: 1; text-align: center; }
.about-stat-num { font-size: 56px; font-weight: 700; color: #8DC63F; }
.about-stat-label { font-size: 22px; color: #86868b; margin-top: 4px; }

/* Footer */
.footer {
  background: #3a3a3c; color: #d2d2d7; padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: #86868b; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: #8DC63F;
  margin-bottom: 16px; letter-spacing: .04em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px; color: #ccc; transition: color .3s;
}
.footer-col a:hover { color: #8DC63F; }
.footer-col .contact-item {
  font-size: 13px; color: #a1a1a6; margin-bottom: 10px; line-height: 1.6;
}
.footer-col .contact-item strong { color: #8DC63F; font-weight: 500; }
.footer-bottom {
  max-width: 980px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: #999; }

/* Animations */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Product Catalog (shared between index and product pages) */
.product-catalog {
  --pc: #5a9a1e; --pc-light: #f0f7e6; --pc-text: #1e293b;
  --pc-muted: #64748b; --pc-border: #e2e8f0; --pc-card: #fff;
  --pc-radius: 12px; --pc-shadow: 0 2px 12px rgba(0,0,0,.08);
  max-width: 1024px; margin: 0 auto; padding: 0 24px;
}
.catalog-title {
  font-size: 22px; font-weight: 700; margin: 48px 0 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--pc-border); color: var(--pc-text);
}
.catalog-title::before {
  content: ""; display: inline-block; width: 4px; height: 18px;
  background: var(--pc); border-radius: 2px; margin-right: 10px;
  vertical-align: middle; margin-top: -2px;
}
.catalog-title:first-child { margin-top: 0; }
.brand-rule {
  background: var(--pc-card); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius); padding: 20px 24px; margin-bottom: 36px;
  box-shadow: var(--pc-shadow);
}
.brand-rule p { color: var(--pc-muted); line-height: 1.7; }
.brand-rule strong { color: var(--pc); }
.product-catalog .table-wrap {
  background: var(--pc-card); border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow); overflow: hidden; margin-bottom: 48px;
  border: 1px solid var(--pc-border);
}
.product-catalog table { width: 100%; border-collapse: collapse; }
.product-catalog thead th {
  background: var(--pc); color: #fff; padding: 12px 16px;
  text-align: left; font-weight: 600; font-size: 14px;
}
.product-catalog thead th:first-child { text-align: center; width: 52px; }
.product-catalog thead th:nth-child(4) { text-align: center; width: 100px; }
.product-catalog tbody tr {
  border-bottom: 1px solid var(--pc-border); cursor: pointer; transition: background .15s;
}
.product-catalog tbody tr:last-child { border-bottom: none; }
.product-catalog tbody tr:hover { background: var(--pc-light); }
.product-catalog tbody td { padding: 12px 16px; vertical-align: middle; }
.product-catalog tbody td:first-child { text-align: center; font-weight: 700; color: var(--pc); }
.product-catalog tbody td:nth-child(4) { text-align: center; }
.product-catalog tbody td img { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto; }
.tag-badge { display: inline-block; background: #f1f5f9; color: var(--pc-muted); font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.product-label { font-weight: 700; font-size: 15px; }
.product-en { display: inline-block; font-family: Georgia, serif; font-weight: 700; color: var(--pc); }
.design-rules {
  background: var(--pc-card); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius); padding: 20px 24px; margin-bottom: 48px;
  box-shadow: var(--pc-shadow);
}
.design-rules ul { padding-left: 0; list-style: none; }
.design-rules li { padding: 6px 0 6px 20px; position: relative; color: var(--pc-muted); }
.design-rules li::before { content: "\00B7"; position: absolute; left: 6px; color: var(--pc); font-size: 18px; line-height: 1.3; }
.design-rules strong { color: var(--pc-text); }
.product-section {
  background: var(--pc-card); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius); box-shadow: var(--pc-shadow);
  margin-bottom: 48px; overflow: hidden;
}
.product-header {
  background: linear-gradient(135deg, #6a9f2c 0%, #4a7a1a 100%);
  color: #fff; padding: 24px 28px;
}
.product-header .seq { font-size: 22px; opacity: .85; margin-bottom: 6px; font-weight: 600; }
.product-header h2 { font-size: 24px; font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; }
.product-header .en-name { font-family: Georgia, serif; font-size: 16px; opacity: .85; }
.product-body { padding: 28px; }
.intro-quote {
  background: var(--pc-light); border-left: 4px solid var(--pc);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin-bottom: 24px;
  font-size: 15px; color: var(--pc-text);
}
.intro-quote strong { color: var(--pc); }
.positioning { margin-bottom: 24px; color: var(--pc-muted); line-height: 1.8; }
.positioning strong { color: var(--pc-text); font-size: 15px; display: block; margin-bottom: 6px; }
.features-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--pc-text); }
.features-list { list-style: none; padding: 0; margin-bottom: 24px; }
.features-list li {
  padding: 8px 0 8px 28px; position: relative;
  border-bottom: 1px solid var(--pc-border); color: var(--pc-muted); line-height: 1.6;
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before { content: "\2726"; position: absolute; left: 6px; top: 8px; color: var(--pc); font-size: 11px; }
.features-list li strong { color: var(--pc-text); }
.spec-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--pc-text); }
.spec-table-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--pc-border); margin-bottom: 24px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table thead th { background: #f1f5f9; color: var(--pc-text); padding: 9px 14px; text-align: left; font-weight: 600; }
.spec-table tbody tr { border-top: 1px solid var(--pc-border); }
.spec-table tbody tr:hover { background: var(--pc-light); }
.spec-table td { padding: 9px 14px; color: var(--pc-muted); }
.spec-table td:first-child { color: var(--pc-text); font-weight: 500; width: 38%; }
.install-block {
  background: #f8fafc; border-radius: 8px; padding: 14px 18px;
  margin-bottom: 24px; font-size: 14px; color: var(--pc-muted);
  border: 1px solid var(--pc-border);
}
.install-block strong { color: var(--pc-text); display: block; margin-bottom: 4px; }
.media-section { margin-bottom: 8px; }
.media-section h4 { font-weight: 700; font-size: 15px; margin-bottom: 14px; color: var(--pc-text); }
.img-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.img-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--pc-border); background: #fafafa; }
.img-card img { width: 100%; height: auto; display: block; }
.img-card.sm { max-width: 280px; }
.img-spec-row { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.img-spec-row .img-card.sm { flex-shrink: 0; margin-bottom: 0; }
.img-spec-row .spec-side { flex: 1; min-width: 0; }
.img-spec-row .spec-side .spec-title { margin-top: 0; }
.img-spec-row .spec-side .spec-table-wrap { margin-bottom: 0; }
.img-caption {
  padding: 10px 14px; font-size: 13px; color: var(--pc-muted);
  background: #f8fafc; border-top: 1px solid var(--pc-border);
}

/* Product-specific page styles */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2563eb;
}
header h1 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: .5px;
}
header h1 span { color: #2563eb; }

.page { max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px; }

.back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px; height: 44px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  z-index: 200;
}
.back-top.visible { opacity: 1; }

/* News page */
.content { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.section-header {
  margin: 48px 0 24px; padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.section-header h2 {
  font-size: 22px; font-weight: 700; color: #1e293b;
  display: flex; align-items: center; gap: 10px;
}
.section-header h2::before {
  content: ""; display: inline-block; width: 4px; height: 20px;
  background: #8DC63F; border-radius: 2px; flex-shrink: 0;
}
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 99px; background: #f0f7e6; color: #5a9a1e; margin-top: 8px;
}
.news-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 20px;
  transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.10); }
.news-inner { display: flex; gap: 20px; padding: 20px; align-items: flex-start; }
.news-body { flex: 1; min-width: 0; }
.news-card { background: #fff; border-radius: 14px; overflow: hidden; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.10); }
.news-title {
  font-size: 16px; font-weight: 700; color: #1e293b;
  margin-bottom: 8px; line-height: 1.4;
}
.news-date { font-size: 12px; color: #94a3b8; margin-bottom: 10px; }
.news-link {
  display: block; padding: 12px 16px; border-radius: 8px;
  background: #f8faf4; border: 1px solid #e8f0d8;
  transition: background .2s, border-color .2s;
  color: #2d5016; font-size: 14px; line-height: 1.7;
}
.news-link:hover { background: #f0f7e6; border-color: #8DC63F; }
.news-link .source {
  display: inline-block; font-weight: 600; color: #5a9a1e;
  margin-right: 6px;
}
.news-link .arrow {
  float: right; color: #8DC63F; font-size: 16px; margin-top: 2px;
}
.summary-wrap {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); margin: 32px 0;
}
.summary-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary-wrap thead th {
  background: #5a9a1e; color: #fff; padding: 12px 16px;
  text-align: left; font-weight: 600;
}
.summary-wrap tbody tr { border-top: 1px solid #e2e8f0; }
.summary-wrap tbody tr:hover { background: #f8faf4; }
.summary-wrap td { padding: 12px 16px; color: #475569; vertical-align: top; }
.summary-wrap td:first-child { font-weight: 600; color: #1e293b; white-space: nowrap; }
.trend-box {
  background: linear-gradient(135deg, #f0f7e6, #e8f5d0);
  border-left: 4px solid #8DC63F; border-radius: 0 14px 14px 0;
  padding: 24px 28px; margin: 32px 0 48px; font-size: 15px; color: #2d5016; line-height: 1.8;
}
.trend-box strong { color: #3a7a10; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 52px; left: 0; right: 0;
    background: rgba(55,55,58,.98); padding: 8px 0;
  }
  .nav-links.open a {
    display: block; padding: 14px 32px; font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open .nav-spacer { display: none; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
  .section { padding: 56px 20px; }
  .section-full { padding: 56px 0; }
  .section-title { font-size: 30px; }
  .section-subtitle { font-size: 16px; margin-bottom: 36px; }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { flex-wrap: wrap; }
  .about-stat-label { font-size: 18px; }
  .download-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dl-card { padding: 24px 14px; border-radius: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .product-catalog { padding: 0 12px; }
  .catalog-title { font-size: 18px; }
  .product-header .seq { font-size: 18px; }
  .product-header h2 { font-size: 20px; }
  .product-header .en-name { font-size: 14px; }
  .product-body { padding: 18px 14px; }
  .intro-quote { font-size: 14px; padding: 12px 14px; }
  .positioning { font-size: 14px; }
  .features-list li { font-size: 14px; }
  .spec-table { font-size: 13px; }
  .spec-table td:first-child { width: 35%; }
  .img-grid { grid-template-columns: 1fr; }
  .img-spec-row { flex-direction: column; }
  .img-spec-row .img-card.sm { max-width: 100%; align-self: center; }
  .img-card.sm { max-width: 100%; margin: 0 auto; }
  .product-catalog .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-catalog thead th:nth-child(4),
  .product-catalog tbody td:nth-child(4) { display: none; }
  .product-catalog thead th:nth-child(5),
  .product-catalog tbody td:nth-child(5) { display: none; }
  .product-catalog thead th:nth-child(6),
  .product-catalog tbody td:nth-child(6) { display: none; }
  .page { padding: 20px 12px 60px; }
  .section-title { font-size: 18px; }
  .product-header h2 { font-size: 20px; }
  .product-body { padding: 18px 14px; }
  .img-grid { grid-template-columns: 1fr; }
  .img-spec-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { height: 400px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .section { padding: 40px 16px; }
  .section-full { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; margin-bottom: 28px; }
  .about-text h2 { font-size: 24px; }
  .about-text p { font-size: 14px; }
  .about-stats { gap: 16px; }
  .about-stats > div { flex: 1; }
  .about-stat-num { font-size: 44px; }
  .about-stat-label { font-size: 16px; }
  .download-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dl-card { padding: 20px 10px; border-radius: 12px; }
  .dl-icon { font-size: 28px; margin-bottom: 8px; }
  .dl-title { font-size: 15px; }
  .dl-sub { font-size: 12px; margin-bottom: 12px; }
  .dl-tag { font-size: 11px; padding: 3px 8px; }
  .product-catalog { padding: 0 8px; }
  .product-header { padding: 18px 16px; }
  .product-header .seq { font-size: 16px; }
  .product-header h2 { font-size: 18px; }
  .product-header .en-name { font-size: 13px; }
  .product-body { padding: 14px 12px; }
  .intro-quote { font-size: 13px; padding: 10px 12px; }
  .positioning { font-size: 13px; }
  .features-title, .spec-title { font-size: 14px; }
  .features-list li { font-size: 13px; padding: 6px 0 6px 22px; }
  .features-list li::before { left: 4px; }
  .spec-table { font-size: 12px; }
  .spec-table thead th { padding: 8px 10px; }
  .spec-table td { padding: 8px 10px; }
  .img-caption { font-size: 12px; padding: 8px 10px; }
  .media-section h4 { font-size: 14px; }
  .brand-rule { padding: 14px 16px; }
  .brand-rule p { font-size: 13px; }
  .design-rules li { font-size: 13px; }
  .product-catalog thead th:nth-child(3),
  .product-catalog tbody td:nth-child(3) { display: none; }
  .footer { padding: 48px 16px 24px; }
  .footer-col h4 { font-size: 12px; }
  .footer-col a, .footer-col .contact-item { font-size: 12px; }
  .footer-bottom p { font-size: 11px; }
  .page { padding: 16px 8px 40px; }
  .product-body { padding: 14px 12px; }
}
