/* ========================================
   贵州福瑞雪冷库 — 官网主样式 v3
   白底 · logo蓝强调 · 专业 · 动效
   ======================================== */

/* 主色与 logo 一致：logo 蓝带（天蓝→深蓝）、红字福瑞雪、内底米白 */
:root {
  --white:     #ffffff;
  --bg:        #ffffff;
  --bg-light:  #f5f8fa;
  --bg-cream:  #faf9f6;
  --bg-hero:   #0d2842;
  --card:      #ffffff;
  --blue:      #1a5f9e;
  --blue-deep: #0e4a7e;
  --blue-sky:  #2d8fd8;
  --blue-lo:   rgba(26,95,158,.08);
  --blue-glow: rgba(26,95,158,.12);
  --red:       #c41e3a;
  --red-lo:    rgba(196,30,58,.08);
  --text:      #1e293b;
  --text-sec:  #475569;
  --text-muted:#94a3b8;
  --border:    #e2e8f0;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.08);
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
body {
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",system-ui,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Global links ---- */
a { color: var(--blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--blue-deep); }

/* ==============================
   HEADER / NAV
   ============================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: box-shadow .3s;
}
header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

.logo-link {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.logo-img { height: 44px; width: auto; }
.logo-text {
  font-weight: 800; font-size: 1.1rem;
  color: var(--blue-deep);
  letter-spacing: .02em;
}

nav { display: flex; align-items: center; gap: 1.75rem; }
nav a {
  font-size: .92rem; font-weight: 500;
  color: var(--text-sec);
  position: relative; padding-bottom: 4px;
}
nav a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform .25s;
}
nav a:hover, nav a.active { color: var(--blue); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px 6px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================
   MAIN
   ============================== */
main { padding-top: 72px; min-height: 100vh; }

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  background: var(--bg-hero);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/2.jpg") center/cover no-repeat;
  filter: brightness(.28) saturate(.7);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,30,61,.4) 0%, rgba(11,30,61,.85) 100%);
}
.hero > * { position: relative; z-index: 3; }

/* snowflake canvas */
#snow-canvas {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: .3rem 1.1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: .78rem; color: #fff;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: heroFadeUp .6s .2s ease-out both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; color: #fff;
  line-height: 1.3; margin-bottom: .75rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
  animation: heroFadeUp .7s .35s ease-out both;
}
.hero h1 em { font-style: normal; color: var(--blue-sky); }

.hero .tagline {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.75);
  max-width: 540px; margin: 0 auto 2.5rem;
  animation: heroFadeUp .7s .5s ease-out both;
}

/* hero stagger animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stats-row {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  justify-content: center; margin-bottom: 2.5rem;
  animation: heroFadeUp .7s .65s ease-out both;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 2.5rem; font-weight: 800;
  color: #fff; display: block; line-height: 1;
}
.stat-item .num .unit { font-size: 1.1rem; font-weight: 600; }
.stat-item .lbl {
  font-size: .8rem; color: rgba(255,255,255,.55);
  margin-top: .3rem;
}

.hero-btns {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  animation: heroFadeUp .7s .8s ease-out both;
}

/* 移动端：首屏中心区不做入场动画，避免闪烁 */
@media (max-width: 768px) {
  .hero-badge,
  .hero h1,
  .hero .tagline,
  .hero .stats-row,
  .hero .hero-btns {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.75rem;
  font-size: .95rem; font-weight: 600;
  border-radius: .5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,111,181,.2); }
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-white {
  background: #fff; color: var(--blue); border-color: #fff;
}
.btn-white:hover { background: #f0f7fc; color: var(--blue-deep); }
.btn-outline {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-lo); }
.btn-outline-w {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline-w:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ==============================
   SCROLL REVEAL
   ============================== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
/* 移动端：不先隐藏再显示，避免首屏闪烁 */
@media (max-width: 768px) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==============================
   SECTIONS
   ============================== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-alt {
  background: var(--bg-cream);
}
.section-label {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--text);
  margin-bottom: .75rem;
}
.section-sub {
  color: var(--text-sec); max-width: 560px; margin-bottom: 2.5rem;
  font-size: .95rem;
}

hr.divider { border: 0; height: 1px; background: var(--border); margin: 0; }

/* ==============================
   REAL PHOTO SHOWCASE
   ============================== */
.photo-showcase {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}
.photo-showcase img {
  width: 100%; height: auto;
  display: block;
}

/* ==============================
   CARDS
   ============================== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.75rem;
  transition: all .3s;
  box-shadow: var(--shadow);
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 30px var(--blue-glow);
  transform: translateY(-4px);
}
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: .5rem;
}
.card-desc {
  font-size: .9rem; color: var(--text-sec); line-height: 1.7;
}

/* ==============================
   STAT ROW (about page)
   ============================== */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; overflow: hidden;
  box-shadow: var(--shadow); margin: 2rem 0;
}
.stat-box {
  flex: 1; min-width: 150px;
  text-align: center; padding: 2rem 1rem;
  border-right: 1px solid var(--border);
}
.stat-box:last-child { border-right: 0; }
.stat-box .n {
  font-size: 2.25rem; font-weight: 800;
  color: var(--blue); display: block;
}
.stat-box .u { font-size: .85rem; color: var(--text-muted); }

/* ==============================
   CONTACT TEL CARDS
   ============================== */
.tel-cards { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.tel-card {
  flex: 1; min-width: 260px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: .5rem;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.tel-card:hover { border-color: var(--blue); box-shadow: 0 8px 30px var(--blue-glow); transform: translateY(-3px); }
.tel-card .contact-name { font-size: .85rem; color: var(--text-muted); }
.tel-card .contact-role { font-weight: 700; color: var(--text); font-size: 1.1rem; }
.tel-card .tel-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--blue); color: #fff;
  font-size: 1.2rem; font-weight: 800;
  border-radius: .5rem; letter-spacing: .04em;
  margin-top: .5rem; width: fit-content;
  transition: all .25s;
}
.tel-btn:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,111,181,.25); }

/* ==============================
   NEWS
   ============================== */
.news-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.news-filter-btn { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--text-sec); background: var(--bg-light); border: 1px solid var(--border); border-radius: 0.375rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.news-filter-btn:hover { color: var(--blue); background: var(--blue-lo); border-color: var(--blue); }
.news-filter-btn.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.news-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.news-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  box-shadow: var(--shadow);
  transition: all .3s;
  text-decoration: none; color: inherit;
}
.news-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 30px var(--blue-glow); }
.news-tag {
  display: inline-block; padding: .15rem .55rem;
  background: var(--blue-lo); color: var(--blue);
  font-size: .72rem; font-weight: 600;
  border-radius: .25rem; width: fit-content;
}
.news-date { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.news-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.45; }
.news-summary { font-size: .875rem; color: var(--text-sec); line-height: 1.7; flex: 1; }
.news-more { font-size: .82rem; font-weight: 600; color: var(--blue); }
.news-source { font-size: .75rem; color: var(--text-muted); margin-top: .35rem; }
.news-source a { color: var(--blue); }
.news-empty { color: var(--text-muted); font-size: .9rem; text-align: center; padding: 3rem 0; }

/* 新闻列表分页 */
.news-section { min-height: 320px; }
.pagination-wrap { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.pagination-wrap .pagination-info { font-size: 0.875rem; color: var(--text-muted); margin-right: 0.5rem; }
.pagination { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.375rem; transition: background .2s, color .2s; }
.pagination a { color: var(--blue); text-decoration: none; }
.pagination a:hover { background: var(--blue-lo); color: var(--blue-deep); }
.pagination .current { background: var(--blue); color: #fff; cursor: default; }
.pagination .gap { color: var(--text-muted); pointer-events: none; }

/* 单篇新闻正文页（独立页 SEO） */
.article-page { max-width: 720px; margin: 0 auto; padding-top: 2rem; padding-bottom: 3rem; }
.article-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; font-size: .875rem; color: var(--text-muted); }
.article-meta time { font-weight: 500; }
.article-title { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 1.75rem; }
.article-body { color: var(--text-sec); line-height: 1.9; }
.article-body p { margin-bottom: 1.25rem; }
.article-body p:last-of-type { margin-bottom: 0; }
.article-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.article-footer .article-source { margin-bottom: 1rem; font-size: 0.875rem; }
.article-footer .article-source a { color: var(--blue); }
.article-footer .contact { display: block; margin-bottom: 0.75rem; }
.article-footer .contact a { color: var(--blue); }
.article-footer .back-list { color: var(--blue); }
.article-contact { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-muted); }
.article-contact a { color: var(--blue); }
.article-contact p { margin-bottom: .5rem; }
.article-contact p:last-child { margin-bottom: 0; }

/* ==============================
   CTA BANNER
   ============================== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 1rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 25H45L37 35L40 55L30 43L20 55L23 35L15 25H25Z' fill='%23fff' opacity='.03'/%3E%3C/svg%3E");
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.cta-banner p { opacity: .85; margin-bottom: 1.5rem; font-size: .95rem; }

/* ==============================
   FOOTER
   ============================== */
footer {
  background: #0f172a;
  color: rgba(255,255,255,.82);
  padding: 1.5rem 1.25rem 1.25rem;
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 2rem;
}
.footer-brand {
  flex: 1 1 220px;
  min-width: 0;
}
.footer-brand .name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.footer-brand p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
  margin: 0;
}
.footer-col {
  flex: 0 0 auto;
}
.footer-col h3 {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.footer-col a:hover { color: #fff; }
.footer-tel {
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8125rem;
}
.footer-col p {
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
}
.footer-bottom {
  max-width: 880px;
  margin: 1rem auto 0;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
}
.footer-bottom a:hover {
  color: rgba(255,255,255,.75);
}

/* ==============================
   ADMIN (override for admin page)
   ============================== */
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.admin-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.admin-card h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }
label { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 600; margin-bottom: .3rem; }
input, textarea {
  width: 100%; background: var(--bg-light); border: 1px solid var(--border);
  border-radius: .5rem; color: var(--text); padding: .65rem 1rem;
  font-size: .95rem; font-family: inherit; outline: none;
  transition: border-color .2s; margin-bottom: 1rem;
}
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-lo); }
textarea { min-height: 80px; resize: vertical; }
pre.code-box {
  background: #0b1e3d; border-radius: .5rem;
  padding: 1.25rem; font-size: .78rem; color: #7dd3fc;
  font-family: "Menlo","Consolas",monospace;
  white-space: pre-wrap; word-break: break-all;
  min-height: 60px;
}

/* ==============================
   ADDRESS
   ============================== */
address { font-style: normal; }

/* ==============================
   UTILITIES
   ============================== */
.text-blue  { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-sec   { color: var(--text-sec); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.center { text-align: center; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  header { padding: 0 1.25rem; height: 64px; }
  main { padding-top: 64px; }
  .logo-img { height: 36px; }

  nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem; gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { min-height: 75vh; padding: 3rem 1.25rem; }
  .hero-logo-img { width: 72px; }
  .stat-row { flex-direction: column; }
  .stat-box { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-box:last-child { border-bottom: 0; }
  .section { padding: 3rem 1.25rem; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-brand { flex: 1 1 100%; }
}
