/* Hangzhoubing - 杭州工业冰块 网站样式 */
:root {
  --primary: #1a7ab5;
  --primary-dark: #003366;
  --primary-light: #33aadd;
  --accent: #f5a623;
  --ice: #e8f4fc;
  --ice-deep: #d0ebfa;
  --text: #333;
  --text-light: #666;
  --border: #c5dff0;
  --white: #fff;
  --danger: #d32f2f;
  --shadow: 0 2px 16px rgba(0, 51, 102, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 51, 102, 0.15);
  --radius: 8px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #f7fafc;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部电话栏 */
.top-bar {
  background: linear-gradient(90deg, var(--primary-dark), #004080);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: #ffd54f; font-weight: bold; }

/* 导航 */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s, padding 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.12);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.logo:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 15px;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--ice);
  color: var(--primary-dark);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--accent);
  color: #333;
}

.btn-call {
  background: #e53935;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.92) 0%, rgba(26, 122, 181, 0.78) 50%, rgba(51, 170, 221, 0.55) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 56px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.hero-content { max-width: 620px; }

.hero-brand-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-brand-card img {
  width: 200px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.hero-brand-card p {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
  font-size: 1.15rem;
  margin-bottom: 24px;
  opacity: 0.95;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 警告条 */
.warning-bar {
  background: #fff3e0;
  border-left: 4px solid var(--danger);
  padding: 14px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}

.warning-bar strong { color: var(--danger); }

/* 区块 */
.section {
  padding: 50px 0;
}

.section-alt { background: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  font-size: 15px;
}

/* 特色卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow); }

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; color: var(--text-light); }

/* 产品规格 */
.spec-box {
  background: var(--ice);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.spec-list { list-style: none; }

.spec-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 16px;
}

.spec-list li:last-child { border-bottom: none; }

.spec-list strong { color: var(--primary-dark); min-width: 80px; display: inline-block; }

.price-highlight {
  font-size: 2rem;
  color: #e53935;
  font-weight: bold;
}

.price-note { font-size: 14px; color: var(--text-light); }

/* 应用场景 */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.use-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.use-card img { width: 100%; height: 200px; object-fit: cover; }

.use-card-body { padding: 20px; }

.use-card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 17px;
}

.use-card p { font-size: 14px; color: var(--text-light); }

/* 图库 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gallery img {
  border-radius: var(--radius);
  height: 180px;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover { transform: scale(1.03); }

/* 流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-item {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  margin: 0 auto 12px;
  font-weight: bold;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: bold;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after { content: "+"; font-size: 20px; color: var(--primary); }

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-light);
  font-size: 15px;
}

.faq-item.open .faq-a {
  padding: 0 20px 16px;
  max-height: 300px;
}

/* 联系 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card h3 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 18px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}

.contact-item .icon { font-size: 22px; flex-shrink: 0; }

.phone-big {
  font-size: 1.6rem;
  font-weight: bold;
  color: #e53935;
}

/* 面包屑 */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }

/* 页脚 */
.site-footer {
  background: linear-gradient(180deg, #0a1628 0%, #1a2332 100%);
  color: #b0bec5;
  padding: 48px 0 20px;
  margin-top: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-link {
  display: inline-block;
  transition: transform 0.2s;
}

.footer-logo-link:hover {
  transform: scale(1.03);
}

.footer-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 8px; font-size: 14px; }

.footer-grid a { color: #90caf9; }

.footer-bottom {
  border-top: 1px solid #37474f;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
}

/* 固定底部呼叫栏（手机） */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  z-index: 200;
  padding: 8px;
}

.mobile-call-bar a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 16px;
}

.mobile-call-bar .call-btn {
  background: #e53935;
  color: white;
}

/* 内容页 */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: white;
  padding: 44px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: url('/images/logo.png') no-repeat center;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}

.page-header h1 { font-size: 1.8rem; margin-bottom: 8px; }

.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.content-block h2 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ice);
}

.content-block p { margin-bottom: 12px; }

.content-block ul { margin: 12px 0 12px 24px; }

.content-block li { margin-bottom: 6px; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 50px 20px;
  border-radius: var(--radius);
  margin: 30px 0;
}

.cta-section h2 { margin-bottom: 12px; font-size: 1.5rem; }

.cta-section p { margin-bottom: 20px; opacity: 0.9; }

/* 响应式 */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .site-header { position: sticky; }

  .logo-img { height: 48px; }

  .header-inner {
    min-height: 60px;
    padding: 8px 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    border-top: 2px solid var(--ice);
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 16px;
    text-align: center;
  }

  .hero-brand-card {
    order: -1;
    padding: 20px;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-brand-card img { width: 160px; }

  .hero-tags { justify-content: center; }

  .hero-actions { justify-content: center; }

  .hero h1 { font-size: 1.6rem; }

  .spec-box { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-logo { height: 60px; }

  .mobile-call-bar { display: flex; gap: 8px; }

  body { padding-bottom: 70px; }
}
