/* KRMSP Commercial Ice Cream Equipment Platform - Localized Stylesheet */
:root {
  --brand-blue: #0E6BB7;
  --brand-blue-dark: #094D86;
  --brand-cyan: #2CA6E0;
  --brand-orange: #E66F00;
  --brand-orange-hover: #CC6200;
  --brand-green: #0D9468;
  --ink-primary: #0F1E2E;
  --ink-secondary: #4A5C6E;
  --ink-muted: #6E8092;
  --surface-page: #F6F9FC;
  --surface-card: #FFFFFF;
  --surface-tint: #EDF5FC;
  --surface-warm: #FFF7EE;
  --border-light: #DCE7F2;
  --border-strong: #C2D4E6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 30, 46, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 52, 90, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 52, 90, 0.12);
  --container: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
  color: var(--ink-primary);
  background-color: var(--surface-page);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(15, 30, 46, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-tagline {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--border-light);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-secondary);
}

.brand-tagline strong {
  display: block;
  color: var(--ink-primary);
  font-size: 13px;
}

@media (min-width: 1080px) {
  .brand-tagline {
    display: block;
  }
}

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

.main-nav a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-blue);
  background: var(--surface-tint);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--ink-primary);
  cursor: pointer;
  padding: 0;
}

/* Announcement Banner (Required directly below nav on homepage) */
.announce-bar {
  background: linear-gradient(90deg, #0E6BB7 0%, #1481C9 55%, #0E6BB7 100%);
  color: #FFFFFF;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.announce-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.announce-text {
  margin: 0;
  color: #F4F9FF;
  word-break: break-word;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  color: #FFFFFF;
}

.btn-blue {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.btn-blue:hover {
  background: var(--brand-blue-dark);
  color: #FFFFFF;
}

.btn-outline {
  background: #FFFFFF;
  color: var(--brand-blue);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background: var(--surface-tint);
  color: var(--brand-blue-dark);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13.5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF6FD 100%);
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid #C6E2F7;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.hero h1 span {
  color: var(--brand-blue);
}

.hero-desc {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}

.metric-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.2;
}

.metric-val.orange {
  color: var(--brand-orange);
}

.metric-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #C5D9EC;
  background: #0F2135;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-white {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background: #0F1E2E;
  color: #EAF2FA;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.3;
  color: var(--ink-primary);
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
}

.section-dark .section-sub {
  color: #A8C0D8;
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-cyan);
}

.card-media {
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border-light);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-tint);
  color: var(--brand-blue);
}

.tag-orange {
  background: var(--surface-warm);
  color: var(--brand-orange);
}

.tag-green {
  background: #E6F8F1;
  color: var(--brand-green);
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-primary);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--brand-blue);
}

.card-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-secondary);
  flex: 1;
}

.spec-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  background: var(--surface-page);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.spec-pills span {
  color: var(--ink-muted);
  display: block;
}

.spec-pills strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.price-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-orange);
}

/* Scenario Banner Cards */
.scenario-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.scenario-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.scenario-card p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.scenario-rec {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-orange);
}

/* Calculator & Tool Panels */
.calc-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-primary);
  background: #FFFFFF;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(14, 107, 183, 0.14);
}

.field-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

.result-board {
  background: linear-gradient(135deg, #0F1E2E 0%, #173859 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px;
}

.result-board h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #93D2F6;
}

.result-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.kpi-item span {
  display: block;
  font-size: 12px;
  color: #B9D4EC;
}

.kpi-item strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #FFFFFF;
}

.kpi-item strong.accent {
  color: #FFB347;
}

.result-note {
  margin: 0;
  font-size: 13px;
  color: #CBE0F4;
  line-height: 1.6;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
}

/* Tables (Mobile safe scroll) */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--surface-tint);
  color: var(--ink-primary);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #F9FCFF;
}

/* Page Header / Breadcrumb */
.page-banner {
  background: linear-gradient(135deg, #0F2135 0%, #154471 100%);
  color: #FFFFFF;
  padding: 36px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #A9C8E4;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #CBE2F7;
}

.breadcrumb a:hover {
  color: #FFFFFF;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  max-width: 780px;
  color: #D4E6F7;
  font-size: 15px;
}

/* Detail Pages & Article Typography */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-box,
.side-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.side-box {
  padding: 20px;
  margin-bottom: 20px;
}

.side-box h3 {
  margin: 0 0 14px;
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--surface-tint);
}

.prose {
  font-size: 15.5px;
  line-height: 1.85;
  color: #1F3142;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 21px;
  color: var(--ink-primary);
  padding-left: 12px;
  border-left: 4px solid var(--brand-blue);
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  color: var(--brand-blue-dark);
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose .callout {
  background: var(--surface-tint);
  border-left: 4px solid var(--brand-orange);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 14.5px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.prose th {
  background: var(--surface-tint);
}

/* Support 4-in-1 Banner */
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.support-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.support-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #FFB347;
  background: rgba(230, 111, 0, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #FFFFFF;
}

.support-card p {
  margin: 0;
  font-size: 13.5px;
  color: #BDD3E8;
  line-height: 1.65;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
  text-align: left;
  cursor: pointer;
}

.faq-q .faq-plus {
  flex-shrink: 0;
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1;
}

.faq-a {
  padding: 0 20px 18px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-item.collapsed .faq-a {
  display: none;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 14px;
  color: var(--ink-primary);
}

.pagination .current {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #0B1724;
  color: #B8CBE0;
  padding: 48px 0 26px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 44px;
  background: #FFFFFF;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-size: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-col a {
  color: #B8CBE0;
}

.footer-col a:hover {
  color: #FFB347;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: #8BA3BC;
}

.footer-bottom a {
  color: #CBE2F7;
}

.footer-bottom a:hover {
  color: #FFB347;
}

/* Quote Brief Output */
.brief-output {
  width: 100%;
  min-height: 130px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.65;
  resize: vertical;
}

/* Responsive Breakpoints (Tested down to 360px/375px) */
@media (max-width: 1024px) {
  .hero-grid,
  .calc-grid,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid > *,
  .calc-grid > *,
  .detail-layout > *,
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > * {
    min-width: 0;
  }
  .grid-4,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 18px;
    gap: 4px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 11px 12px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo img {
    height: 40px;
  }
  .hero {
    padding: 28px 0 36px;
  }
  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-4,
  .support-grid,
  .footer-grid,
  .form-grid,
  .result-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-panel,
  .article-box {
    padding: 18px 16px;
  }
  .section {
    padding: 40px 0;
  }
  .announce-inner {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
  }
}
