/* ============================================================
   健丰食品  JianFeng Foods  —  企业官网样式
   设计方向：传统稳重 · 暖色调 · 出口食品企业
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --primary:       #8B3A3A;      /* 深砖红：稳重、可信赖 */
  --primary-dark:  #6B2A2A;      /* 更深的红：悬停/强调 */
  --primary-light: #A05252;      /* 浅红：背景点缀 */
  --accent:        #C9A96E;      /* 暖金色：高亮/装饰 */
  --accent-light:  #E8D5B7;      /* 浅金：背景 */
  --bg:            #FDF8F0;      /* 奶油白：主背景 */
  --bg-white:      #FFFCF7;      /* 卡片白 */
  --text:          #3E2723;      /* 深棕：正文 */
  --text-light:    #6B5B5B;      /* 灰棕：辅助文字 */
  --text-muted:    #9B8B8B;      /* 更浅：占位/说明 */
  --border:        #E0D5C7;      /* 暖灰边框 */
  --border-light:  #F0E8DC;      /* 浅边框 */
  --shadow-sm:     0 1px 3px rgba(62,39,35,0.06);
  --shadow-md:     0 4px 16px rgba(62,39,35,0.08);
  --shadow-lg:     0 8px 32px rgba(62,39,35,0.10);
  --radius:        8px;
  --radius-lg:     12px;
  --max-width:     1200px;
  --nav-height:    72px;
  --z-dropdown:    100;
  --z-sticky:      200;
  --z-fixed-nav:   300;
  --z-modal:       400;
  --z-toast:       500;
  --font-cn:       "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  --font-en:       "Inter","Segoe UI",system-ui,-apple-system,sans-serif;
}

/* ----- Reset & Base ----- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

html{
  scroll-behavior:smooth;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  font-family:var(--font-cn);
  font-size:16px;
  line-height:1.75;
  color:var(--text);
  background:var(--bg);
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--primary);text-decoration:none;transition:color .25s;}
a:hover{color:var(--primary-dark);}

h1,h2,h3,h4{line-height:1.3;font-weight:700;color:var(--text);}
h1{font-size:2.5rem;letter-spacing:.02em;}
h2{font-size:2rem;letter-spacing:.01em;}
h3{font-size:1.375rem;}

/* 无障碍：减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  html{scroll-behavior:auto;}
}

/* ----- Utility ----- */
.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px;
}

.section{
  padding:96px 0;
}

.section-header{
  text-align:center;
  margin-bottom:56px;
}

.section-header h2{
  position:relative;
  display:inline-block;
  margin-bottom:16px;
}

/* 标题下方装饰线 */
.section-header h2::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:var(--accent);
  margin:12px auto 0;
  border-radius:2px;
}

.section-header p{
  color:var(--text-light);
  font-size:1.05rem;
  max-width:600px;
  margin:0 auto;
}

/* ----- Navigation ----- */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:var(--z-fixed-nav);
  height:var(--nav-height);
  background:rgba(253,248,240,0.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border-light);
  transition:box-shadow .3s;
}

.nav.scrolled{
  box-shadow:var(--shadow-sm);
}

.nav .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:100%;
}

.nav-logo{
  font-size:1.5rem;
  font-weight:700;
  color:var(--primary);
  letter-spacing:.03em;
}

.nav-logo span{
  color:var(--accent);
}

.nav-links{
  display:flex;
  list-style:none;
  gap:8px;
}

.nav-links a{
  display:block;
  padding:8px 20px;
  color:var(--text);
  font-weight:500;
  font-size:.95rem;
  border-radius:6px;
  transition:all .25s;
}

.nav-links a:hover,
.nav-links a.active{
  color:var(--primary);
  background:rgba(139,58,58,0.06);
}

/* 移动端汉堡菜单 */
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  padding:8px;
  background:none;
  border:none;
}

.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:all .3s;
}

.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.nav-toggle.active span:nth-child(2){opacity:0;}
.nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}

/* ----- Hero ----- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  background:linear-gradient(135deg, #8B3A3A 0%, #6B2A2A 40%, #4A1A1A 100%);
  color:#fff;
  overflow:hidden;
}

/* 背景装饰纹理 */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201,169,110,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,169,110,0.10) 0%, transparent 50%);
  pointer-events:none;
}

/* 右下角装饰图案 */
.hero::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-40px;
  width:400px;
  height:400px;
  border:2px solid rgba(201,169,110,0.2);
  border-radius:50%;
  pointer-events:none;
}

.hero-content{
  position:relative;
  z-index:1;
  max-width:640px;
}

.hero-tag{
  display:inline-block;
  padding:6px 20px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:100px;
  font-size:.875rem;
  letter-spacing:.04em;
  margin-bottom:24px;
}

.hero h1{
  font-size:3.25rem;
  color:#fff;
  margin-bottom:20px;
  line-height:1.25;
}

.hero h1 .accent{
  color:var(--accent);
}

.hero p{
  font-size:1.15rem;
  color:rgba(255,255,255,0.8);
  margin-bottom:36px;
  max-width:500px;
}

.hero-buttons{
  display:flex;
  gap:16px;
}

/* ----- Buttons ----- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 32px;
  border-radius:6px;
  font-size:.95rem;
  font-weight:600;
  font-family:var(--font-cn);
  cursor:pointer;
  border:none;
  transition:all .3s;
  white-space:nowrap;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
}

.btn-primary:hover{
  background:#B8943A;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(201,169,110,0.4);
}

.btn-outline{
  background:transparent;
  color:#fff;
  border:1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover{
  background:rgba(255,255,255,0.1);
  border-color:#fff;
  color:#fff;
}

.btn-secondary{
  background:var(--primary);
  color:#fff;
}

.btn-secondary:hover{
  background:var(--primary-dark);
  color:#fff;
  box-shadow:0 4px 16px rgba(139,58,58,0.3);
}

/* ----- Highlights / Features ----- */
.highlights{
  background:var(--bg-white);
}

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

.highlight-card{
  text-align:center;
  padding:40px 28px;
  background:var(--bg);
  border-radius:var(--radius-lg);
  border:1px solid var(--border-light);
  transition:all .35s;
}

.highlight-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:var(--accent-light);
}

.highlight-icon{
  width:64px;
  height:64px;
  margin:0 auto 20px;
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.75rem;
}

.highlight-card h3{
  margin-bottom:12px;
  font-size:1.15rem;
}

.highlight-card p{
  color:var(--text-light);
  font-size:.925rem;
}

/* ----- Product Cards ----- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}

.product-card{
  background:var(--bg-white);
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border-light);
  transition:all .35s;
}

.product-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}

.product-card-img{
  aspect-ratio:4/3;
  background:linear-gradient(135deg, #F0E8DC 0%, #E8D5B7 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:3rem;
  color:var(--accent);
}

.product-card-body{
  padding:24px;
}

.product-card-body h3{
  margin-bottom:8px;
}

.product-card-body p{
  color:var(--text-light);
  font-size:.9rem;
  margin-bottom:16px;
}

.product-card-body .tag{
  display:inline-block;
  padding:3px 12px;
  background:rgba(139,58,58,0.08);
  color:var(--primary);
  border-radius:100px;
  font-size:.8rem;
  font-weight:500;
}

/* ----- About page styles ----- */
.about-hero{
  padding:160px 0 80px;
  background:linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
  text-align:center;
}

.about-section{
  padding:80px 0;
}

.about-section:nth-child(even){
  background:var(--bg-white);
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}

.about-grid.reverse{
  direction:rtl;
}

.about-grid.reverse > *{direction:ltr;}

.about-img{
  aspect-ratio:4/3;
  background:linear-gradient(135deg, #F0E8DC 0%, #E8D5B7 100%);
  border-radius:var(--radius-lg);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:4rem;
  color:var(--accent);
}

.about-text h2{margin-bottom:20px;}
.about-text p{color:var(--text-light);margin-bottom:16px;}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:40px;
}

.stat-item{
  text-align:center;
  padding:24px;
  background:var(--bg);
  border-radius:var(--radius);
  border:1px solid var(--border-light);
}

.stat-item .num{
  font-size:2rem;
  font-weight:700;
  color:var(--primary);
}

.stat-item .label{
  font-size:.85rem;
  color:var(--text-light);
  margin-top:4px;
}

/* ----- Products page ----- */
.products-hero{
  padding:160px 0 80px;
  background:linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
  text-align:center;
}

.product-category{
  padding:64px 0;
}

.product-category:nth-child(even){
  background:var(--bg-white);
}

.product-category-header{
  margin-bottom:40px;
  padding-bottom:20px;
  border-bottom:2px solid var(--border-light);
}

.product-category-header h2{
  display:flex;
  align-items:center;
  gap:12px;
}

.product-category-header h2 .icon{
  font-size:1.75rem;
}

/* ----- Contact page ----- */
.contact-hero{
  padding:160px 0 80px;
  background:linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
  text-align:center;
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  padding-bottom:96px;
}

.contact-info h2{margin-bottom:24px;}

.contact-info-item{
  display:flex;
  gap:16px;
  margin-bottom:24px;
  align-items:flex-start;
}

.contact-info-item .icon{
  width:48px;
  height:48px;
  flex-shrink:0;
  background:rgba(139,58,58,0.08);
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.25rem;
}

.contact-info-item h4{font-size:.95rem;margin-bottom:4px;}
.contact-info-item p{color:var(--text-light);font-size:.9rem;}

/* ----- Contact Form ----- */
.contact-form{
  background:var(--bg-white);
  padding:40px;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-light);
  box-shadow:var(--shadow-md);
}

.form-group{margin-bottom:20px;}

.form-group label{
  display:block;
  margin-bottom:6px;
  font-weight:600;
  font-size:.9rem;
  color:var(--text);
}

.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  padding:12px 16px;
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  font-size:.95rem;
  font-family:var(--font-cn);
  color:var(--text);
  background:var(--bg);
  transition:border-color .25s,box-shadow .25s;
  outline:none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(201,169,110,0.15);
}

.form-group textarea{resize:vertical;min-height:140px;}

.form-submit{
  width:100%;
  padding:14px;
  font-size:1rem;
  justify-content:center;
}

.form-msg{
  padding:12px 16px;
  border-radius:var(--radius);
  font-size:.9rem;
  font-weight:500;
  margin-bottom:20px;
}

.form-msg--success{
  background:#E8F5E9;
  color:#2E7D32;
  border:1px solid #C8E6C9;
}

.form-msg--error{
  background:#FFEBEE;
  color:#C62828;
  border:1px solid #FFCDD2;
}

/* ----- Footer ----- */
.footer{
  background:#3E2723;
  color:rgba(255,255,255,0.7);
  padding:64px 0 32px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px;
  margin-bottom:48px;
}

.footer-brand h3{
  color:#fff;
  font-size:1.25rem;
  margin-bottom:12px;
}

.footer-brand p{font-size:.9rem;}

.footer-col h4{
  color:#fff;
  font-size:.95rem;
  margin-bottom:16px;
}

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

.footer-col ul li{margin-bottom:8px;}

.footer-col ul li a{
  color:rgba(255,255,255,0.6);
  font-size:.9rem;
  transition:color .25s;
}

.footer-col ul li a:hover{color:var(--accent);}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:24px;
  text-align:center;
  font-size:.85rem;
  color:rgba(255,255,255,0.45);
}

/* ----- Page Banner (sub pages) ----- */
.page-banner{
  padding:160px 0 48px;
  background:linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
  text-align:center;
}

.page-banner h1{
  font-size:2.75rem;
  color:var(--primary);
  margin-bottom:8px;
}

.page-banner .breadcrumb{
  color:var(--text-muted);
  font-size:.9rem;
}

.page-banner .breadcrumb a{color:var(--text-light);}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .highlights-grid,
  .product-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .stats-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root{--nav-height:64px;}

  h1{font-size:2rem;}
  h2{font-size:1.6rem;}

  .section{padding:64px 0;}

  .nav-links{
    position:fixed;
    top:var(--nav-height);
    left:0;right:0;
    bottom:0;
    background:rgba(253,248,240,0.98);
    backdrop-filter:blur(16px);
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    transform:translateX(100%);
    transition:transform .35s ease;
  }

  .nav-links.open{transform:translateX(0);}

  .nav-links a{font-size:1.1rem;padding:12px 32px;}

  .nav-toggle{display:flex;}

  .hero h1{font-size:2.25rem;}

  .hero-buttons{flex-direction:column;}

  .highlights-grid,
  .product-grid{
    grid-template-columns:1fr;
  }

  .about-grid{
    grid-template-columns:1fr;
    gap:40px;
  }

  .contact-grid{
    grid-template-columns:1fr;
  }

  .stats-grid{
    grid-template-columns:1fr 1fr;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}
