/* ============================================
   我在三江有亩田 - 官网样式
   设计语言：与小程序统一绿色主题
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --primary-bg: #E8F5E9;
  --accent: #FF8F00;
  --text: #212121;
  --text-secondary: #666;
  --text-light: #999;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --border: #E8E8E8;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); z-index: 1000;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: bold; color: var(--primary);
}
.nav-brand span { font-size: 28px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text); font-size: 15px; font-weight: 500;
  padding: 8px 0; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--primary); transform: scaleX(0);
  transition: transform .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 24px;
  border-radius: 8px; font-weight: 600; transition: background .2s;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 6px 0; transition: all .3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 8px; font-size: 16px;
  font-weight: 600; cursor: pointer; border: none; transition: all .2s;
  gap: 8px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,125,50,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-bg); }
.btn-lg { padding: 16px 40px; font-size: 18px; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: 36px; color: var(--text); margin-bottom: 12px;
}
.section-title p { color: var(--text-secondary); font-size: 16px; }
.section-title .underline {
  width: 60px; height: 3px; background: var(--primary);
  margin: 16px auto 0; border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 600px; display: flex; align-items: center;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  color: #fff; position: relative; overflow: hidden; padding-top: var(--nav-height);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,128C672,107,768,117,864,138.7C960,160,1056,192,1152,186.7C1248,181,1344,139,1392,117.3L1440,96L1440,320L0,320Z"/></svg>') no-repeat bottom center;
  background-size: cover;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 20px; font-size: 14px;
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero banner slider */
.hero-banner {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 500px; height: 400px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Service Icons ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.service-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; transition: all .3s; cursor: pointer;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: var(--primary-bg);
}
.service-icon { font-size: 48px; margin-bottom: 16px; }
.service-name { font-size: 16px; font-weight: 600; color: var(--text); }

/* ===== Stats ===== */
.stats-bar {
  background: var(--primary); color: #fff; padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-num { font-size: 42px; font-weight: bold; margin-bottom: 4px; }
.stat-label { font-size: 14px; opacity: 0.8; }

/* ===== Card Grid ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  transition: all .3s; cursor: pointer;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card img { width: 100%; height: 200px; object-fit: cover; }
.info-card-body { padding: 24px; }
.info-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.info-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Timeline / Flow ===== */
.flow-steps {
  display: flex; justify-content: center; gap: 0; position: relative;
  padding: 40px 0;
}
.flow-step {
  flex: 1; max-width: 200px; text-align: center; position: relative;
}
.flow-step::after {
  content: '→'; position: absolute; right: -12px; top: 20px;
  font-size: 24px; color: var(--primary);
}
.flow-step:last-child::after { display: none; }
.flow-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 20px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.flow-step h4 { font-size: 15px; margin-bottom: 4px; }
.flow-step p { font-size: 13px; color: var(--text-secondary); }

/* ===== Rights List ===== */
.rights-list { max-width: 800px; margin: 0 auto; }
.rights-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.rights-icon { font-size: 36px; flex-shrink: 0; margin-top: 4px; }
.rights-item h4 { font-size: 16px; margin-bottom: 4px; }
.rights-item p { font-size: 14px; color: var(--text-secondary); }

/* ===== Notice ===== */
.notice-bar {
  background: var(--primary-bg); border-radius: var(--radius);
  padding: 16px 24px; display: flex; align-items: center; gap: 12px;
}
.notice-icon { font-size: 20px; flex-shrink: 0; }
.notice-scroll {
  flex: 1; overflow: hidden; height: 24px; position: relative;
}
.notice-list {
  animation: noticeScroll 12s linear infinite;
}
.notice-item {
  height: 24px; line-height: 24px; font-size: 14px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes noticeScroll {
  0%,20% { transform: translateY(0); }
  25%,45% { transform: translateY(-24px); }
  50%,70% { transform: translateY(-48px); }
}

/* ===== Map ===== */
.map-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.map-container {
  height: 400px; border-radius: var(--radius); overflow: hidden;
  background: var(--border); position: relative;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 0; margin-bottom: 32px; justify-content: center; }
.tab-btn {
  padding: 12px 32px; background: var(--card); border: 1px solid var(--border);
  cursor: pointer; font-size: 15px; font-weight: 500; transition: all .2s;
}
.tab-btn:first-child { border-radius: 8px 0 0 8px; }
.tab-btn:last-child { border-radius: 0 8px 8px 0; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 20px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 16px;
  transition: background .2s;
}
.faq-question:hover { background: var(--primary-bg); }
.faq-arrow { font-size: 20px; color: var(--text-light); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: all .3s; font-size: 15px; color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 500px; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  transition: all .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-date { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.news-card-body h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.news-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Footer ===== */
.footer {
  background: #1a1a2e; color: #ccc; padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer p { font-size: 14px; line-height: 1.8; color: #999; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #999; font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 13px; color: #666;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: #fff; padding: 140px 0 60px; text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 12px; }
.page-header p { font-size: 16px; opacity: 0.8; }

/* ===== Auth Form ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 120px 24px 60px;
}
.auth-card {
  background: var(--card); border-radius: 16px; padding: 48px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow);
}
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 28px; }
.auth-card .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; outline: none; transition: border .2s;
}
.form-input:focus { border-color: var(--primary); }
.form-row { display: flex; gap: 12px; }
.form-row .form-input { flex: 1; }
.form-row .btn { flex-shrink: 0; }

/* ===== Service Center ===== */
.service-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 100px; min-height: 100vh; }
.service-sidebar {
  background: var(--card); border-radius: var(--radius);
  padding: 24px 0; position: sticky; top: 100px; height: fit-content;
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; cursor: pointer; font-size: 15px;
  transition: all .2s; border-left: 3px solid transparent;
}
.sidebar-item:hover { background: var(--primary-bg); }
.sidebar-item.active {
  background: var(--primary-bg); color: var(--primary);
  font-weight: 600; border-left-color: var(--primary);
}
.service-main { padding: 0 0 60px; }
.service-section {
  background: var(--card); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px;
}
.service-section h3 { font-size: 20px; margin-bottom: 20px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon { font-size: 32px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--text-secondary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-banner { width: 350px; height: 280px; right: -50px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .map-section { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: #fff; padding: 20px; gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open a::after { display: none; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 32px; }
  .hero-banner { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 32px; }
  .card-grid, .news-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-step::after { content: '↓'; right: auto; top: auto; bottom: -20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 28px; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 32px 24px; }
}
