/* 里番网植物视频社区 - 原创豪宅风格CSS */
/* 颜色方案: 翡翠绿#1B5E20 金色#C8A951 深棕#3E2723 象牙白#FDFAF3 */

:root {
  --primary: #1B5E20;
  --primary-light: #2E7D32;
  --primary-dark: #0D3B12;
  --gold: #C8A951;
  --gold-light: #E8D48B;
  --gold-dark: #9A7B2C;
  --brown: #3E2723;
  --brown-light: #5D4037;
  --ivory: #FDFAF3;
  --ivory-dark: #F5F0E1;
  --text: #2C2C2C;
  --text-light: #666;
  --text-muted: #999;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration:none; transition: var(--transition); }
a:hover { color: var(--gold); }

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

.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: sticky; top:0; z-index:1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.header-top {
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 20px; max-width:1200px; margin:0 auto;
}

.header-logo { display:flex; align-items:center; gap:10px; }
.header-logo img { width:48px; height:48px; border-radius:50%; border:2px solid var(--gold); }
.header-logo span {
  font-size:1.6rem; font-weight:800; color:var(--gold);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  letter-spacing:2px;
}

.main-nav { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.main-nav a {
  color: var(--ivory); padding:6px 14px; border-radius:20px;
  font-size:.9rem; font-weight:500;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--gold); color: var(--brown);
}

.search-bar {
  background: rgba(255,255,255,.12); border-radius:25px;
  padding: 8px 20px; max-width:1200px; margin:0 auto 0;
  display:flex; align-items:center; gap:10px;
}
.search-bar .container { display:flex; align-items:center; gap:10px; padding:8px 0; }
.search-box {
  flex:1; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.2);
  border-radius:25px; padding:8px 18px; color:var(--white);
  font-size:.9rem; outline:none;
}
.search-box::placeholder { color:rgba(255,255,255,.6); }
.search-btn {
  background:var(--gold); color:var(--brown); border:none;
  padding:8px 22px; border-radius:25px; cursor:pointer;
  font-weight:600; font-size:.9rem; transition: var(--transition);
}
.search-btn:hover { background:var(--gold-light); transform:scale(1.05); }

/* ========== HERO BANNER ========== */
.hero-banner {
  position:relative; min-height:520px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.hero-banner .bg-img {
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover; filter:brightness(.55);
}
.hero-content {
  position:relative; z-index:2; text-align:center;
  padding:60px 20px; max-width:800px;
}
.hero-content h1 {
  font-size:2.8rem; color:var(--gold); font-weight:900;
  text-shadow:0 2px 10px rgba(0,0,0,.5);
  margin-bottom:16px; line-height:1.3;
}
.hero-content p {
  color:var(--ivory); font-size:1.15rem; line-height:1.8;
  text-shadow:0 1px 5px rgba(0,0,0,.4);
  margin-bottom:24px;
}
.hero-tags { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.hero-tags span {
  background:rgba(200,169,81,.25); border:1px solid var(--gold);
  color:var(--gold-light); padding:6px 16px; border-radius:20px;
  font-size:.85rem; backdrop-filter:blur(5px);
}

/* ========== STATS BAR ========== */
.stats-bar {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  padding:30px 0;
}
.stats-grid {
  display:flex; justify-content:space-around; flex-wrap:wrap; gap:20px;
}
.stats-grid .stat-item { text-align:center; min-width:150px; }
.stats-grid .num {
  font-size:1.8rem; font-weight:900; color:var(--gold);
  display:block;
}
.stats-grid .label {
  font-size:.85rem; color:rgba(255,255,255,.7); margin-top:4px;
}

/* ========== SECTION STYLES ========== */
.section-light { background:var(--ivory); padding:60px 0; }
.section-dark { background:var(--ivory-dark); padding:60px 0; }
.section-green {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding:60px 0; color:var(--white);
}
.section-brown {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  padding:60px 0; color:var(--white);
}

.section-title {
  text-align:center; margin-bottom:40px;
}
.section-title h2 {
  font-size:2rem; font-weight:800; color:var(--primary-dark);
  margin-bottom:10px; position:relative; display:inline-block;
}
.section-title h2::after {
  content:''; display:block; width:60px; height:3px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  margin:10px auto 0; border-radius:2px;
}
.section-green .section-title h2,
.section-brown .section-title h2 { color:var(--gold); }
.section-title p {
  color:var(--text-light); font-size:1rem; max-width:700px; margin:0 auto;
}
.section-green .section-title p,
.section-brown .section-title p { color:rgba(255,255,255,.75); }

/* ========== VIDEO CARD ========== */
.video-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(320px,1fr));
  gap:24px;
}
.video-card {
  background:var(--white); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
  transition:var(--transition); cursor:pointer;
}
.video-card:hover {
  transform:translateY(-6px); box-shadow:var(--shadow-lg);
}
.video-thumb {
  position:relative; padding-top:56.25%; overflow:hidden;
}
.video-thumb img {
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover; transition:transform .5s ease;
}
.video-card:hover .video-thumb img { transform:scale(1.08); }
.play-btn {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(0);
  width:64px; height:64px; background:rgba(200,169,81,.9);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  transition:all .3s ease; z-index:3;
}
.play-btn::after {
  content:''; width:0; height:0;
  border-left:22px solid var(--white); border-top:13px solid transparent;
  border-bottom:13px solid transparent; margin-left:4px;
}
.video-card:hover .play-btn { transform:translate(-50%,-50%) scale(1); }
.video-duration {
  position:absolute; bottom:8px; right:8px;
  background:rgba(0,0,0,.75); color:var(--white);
  padding:2px 8px; border-radius:4px; font-size:.75rem;
}
.video-info { padding:16px; }
.video-info h3 {
  font-size:1rem; font-weight:700; color:var(--text);
  margin-bottom:8px; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.video-meta {
  display:flex; gap:12px; font-size:.8rem; color:var(--text-muted);
  flex-wrap:wrap;
}
.video-tags { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.video-tags span {
  background:var(--ivory-dark); color:var(--primary);
  padding:2px 10px; border-radius:12px; font-size:.75rem;
}

/* ========== EXPERT CARD ========== */
.expert-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:24px;
}
.expert-card {
  background:var(--white); border-radius:var(--radius-lg);
  padding:30px; text-align:center;
  box-shadow:var(--shadow); transition:var(--transition);
  border:1px solid rgba(200,169,81,.15);
}
.expert-card:hover {
  transform:translateY(-5px); box-shadow:var(--shadow-lg);
  border-color:var(--gold);
}
.expert-card img {
  width:120px; height:120px; border-radius:50%;
  object-fit:cover; margin:0 auto 16px;
  border:3px solid var(--gold);
}
.expert-card h3 { font-size:1.1rem; color:var(--primary-dark); margin-bottom:4px; }
.expert-card .role { color:var(--gold-dark); font-size:.85rem; margin-bottom:10px; }
.expert-card p { font-size:.85rem; color:var(--text-light); line-height:1.6; }
.expert-card .btn-group { display:flex; gap:8px; justify-content:center; margin-top:14px; }

/* ========== BUTTONS ========== */
.btn {
  display:inline-block; padding:10px 24px; border-radius:25px;
  font-size:.9rem; font-weight:600; cursor:pointer;
  transition:var(--transition); border:none; text-align:center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color:var(--white);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 4px 15px rgba(27,94,32,.3); color:var(--white); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color:var(--brown);
}
.btn-gold:hover { transform:translateY(-2px); box-shadow:0 4px 15px rgba(200,169,81,.4); color:var(--brown); }
.btn-outline {
  background:transparent; border:2px solid var(--primary);
  color:var(--primary);
}
.btn-outline:hover { background:var(--primary); color:var(--white); }

/* ========== FAQ ========== */
.faq-list { max-width:800px; margin:0 auto; }
.faq-item {
  background:var(--white); border-radius:var(--radius);
  margin-bottom:12px; box-shadow:var(--shadow);
  border-left:4px solid var(--gold);
  overflow:hidden;
}
.faq-question {
  padding:18px 20px; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  font-weight:700; font-size:1rem; color:var(--primary-dark);
  transition:var(--transition);
}
.faq-question:hover { background:var(--ivory-dark); }
.faq-question::after {
  content:'+'; font-size:1.4rem; color:var(--gold);
  font-weight:700; transition:transform .3s ease;
}
.faq-item.active .faq-question::after { content:'-'; }
.faq-answer {
  max-height:0; overflow:hidden; transition:max-height .4s ease;
  padding:0 20px;
}
.faq-item.active .faq-answer {
  max-height:300px; padding:0 20px 18px;
}
.faq-answer p { color:var(--text-light); font-size:.9rem; line-height:1.7; }

/* ========== REVIEWS ========== */
.review-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:20px;
}
.review-card {
  background:var(--white); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow);
  border-top:3px solid var(--gold);
}
.review-card .stars { color:var(--gold); font-size:1.1rem; margin-bottom:10px; }
.review-card p { font-size:.9rem; color:var(--text-light); line-height:1.7; margin-bottom:12px; font-style:italic; }
.review-card .reviewer {
  display:flex; align-items:center; gap:10px;
}
.review-card .reviewer .avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--primary); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.9rem;
}
.review-card .reviewer .name { font-weight:600; font-size:.85rem; }
.review-card .reviewer .date { font-size:.75rem; color:var(--text-muted); }

/* ========== TAG CLOUD ========== */
.tag-cloud {
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center;
  padding:20px 0;
}
.tag-cloud a {
  background:var(--ivory-dark); color:var(--primary);
  padding:6px 16px; border-radius:20px; font-size:.85rem;
  border:1px solid rgba(27,94,32,.1);
  transition:var(--transition);
}
.tag-cloud a:hover {
  background:var(--primary); color:var(--white);
  transform:translateY(-2px);
}

/* ========== SHARE BAR ========== */
.share-bar {
  display:flex; gap:10px; justify-content:center;
  padding:20px 0; flex-wrap:wrap;
}
.share-bar a {
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--white); font-size:1.1rem;
  transition:var(--transition);
}
.share-bar a:hover { transform:translateY(-3px) scale(1.1); }
.share-wechat { background:#07C160; }
.share-weibo { background:#E6162D; }
.share-douyin { background:#161823; }
.share-bilibili { background:#00A1D6; }

/* ========== COOPERATION ========== */
.brand-wall {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
  gap:20px;
}
.brand-item {
  background:var(--white); border-radius:var(--radius);
  padding:24px; text-align:center;
  box-shadow:var(--shadow); transition:var(--transition);
  border:1px solid var(--ivory-dark);
}
.brand-item:hover { border-color:var(--gold); transform:translateY(-3px); }
.brand-item .brand-icon {
  font-size:2.5rem; margin-bottom:8px;
}
.brand-item .brand-name { font-weight:600; font-size:.9rem; color:var(--text); }

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2e10 100%);
  color:rgba(255,255,255,.7); padding:50px 0 0;
}
.footer-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:30px; margin-bottom:30px;
}
.footer-col h4 {
  color:var(--gold); font-size:1rem; margin-bottom:14px;
  padding-bottom:8px; border-bottom:1px solid rgba(200,169,81,.2);
}
.footer-col p, .footer-col a {
  font-size:.85rem; color:rgba(255,255,255,.6);
  line-height:2;
}
.footer-col a:hover { color:var(--gold); }
.footer-col img { border-radius:8px; margin-top:8px; }
.footer-logo {
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
.footer-logo img { width:40px; height:40px; border-radius:50%; border:2px solid var(--gold); }
.footer-logo span { font-size:1.3rem; font-weight:800; color:var(--gold); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1);
  padding:20px 0; text-align:center;
  font-size:.8rem; color:rgba(255,255,255,.4);
}

/* ========== MCP WIDGET ========== */
.mcp-widget {
  background:var(--ivory-dark); border-radius:var(--radius);
  padding:20px; margin:20px 0; border:1px dashed var(--gold);
}
.mcp-widget h4 { color:var(--primary-dark); margin-bottom:8px; }
.mcp-widget code {
  background:var(--brown); color:var(--gold-light);
  padding:8px 14px; border-radius:6px; display:block;
  font-size:.8rem; word-break:break-all;
}
.mcp-status {
  display:inline-block; padding:3px 10px; border-radius:12px;
  font-size:.75rem; background:rgba(27,94,32,.1); color:var(--primary);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding:14px 0; font-size:.85rem;
}
.breadcrumb a { color:var(--primary); }
.breadcrumb span { color:var(--text-muted); margin:0 6px; }

/* ========== INNER PAGE BANNER ========== */
.inner-banner {
  position:relative; min-height:280px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.inner-banner .bg-img {
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover; filter:brightness(.45);
}
.inner-banner .content {
  position:relative; z-index:2; text-align:center; padding:40px 20px;
}
.inner-banner h1 {
  font-size:2.2rem; color:var(--gold); font-weight:900;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.inner-banner p {
  color:var(--ivory); font-size:1rem; margin-top:10px;
  text-shadow:0 1px 4px rgba(0,0,0,.4);
}

/* ========== CONTACT GRID ========== */
.contact-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:24px;
}
.contact-card {
  background:var(--white); border-radius:var(--radius);
  padding:30px; text-align:center;
  box-shadow:var(--shadow); transition:var(--transition);
}
.contact-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.contact-card .icon {
  font-size:2.5rem; margin-bottom:12px;
}
.contact-card h3 { font-size:1.1rem; color:var(--primary-dark); margin-bottom:8px; }
.contact-card p { font-size:.9rem; color:var(--text-light); }

/* ========== TIMELINE ========== */
.timeline { position:relative; padding:20px 0; }
.timeline::before {
  content:''; position:absolute; left:50%; top:0; bottom:0;
  width:3px; background:var(--gold); transform:translateX(-50%);
}
.timeline-item {
  display:flex; justify-content:flex-end; padding:10px 0;
  width:50%; position:relative;
}
.timeline-item:nth-child(even) {
  justify-content:flex-start; margin-left:50%;
}
.timeline-item .content {
  background:var(--white); border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow); max-width:400px;
  border-left:3px solid var(--gold);
}
.timeline-item .year {
  font-size:1.2rem; font-weight:800; color:var(--gold);
  margin-bottom:6px;
}

/* ========== CATEGORY TABS ========== */
.category-tabs {
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
  margin-bottom:30px;
}
.category-tabs .tab {
  padding:8px 20px; border-radius:25px;
  background:var(--ivory-dark); color:var(--text);
  cursor:pointer; font-size:.9rem; font-weight:500;
  transition:var(--transition); border:1px solid transparent;
}
.category-tabs .tab:hover, .category-tabs .tab.active {
  background:var(--primary); color:var(--white);
  border-color:var(--primary);
}

/* ========== HOW-TO GUIDE ========== */
.howto-steps {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:24px; counter-reset:step;
}
.howto-step {
  background:var(--white); border-radius:var(--radius);
  padding:30px 24px; text-align:center;
  box-shadow:var(--shadow); position:relative;
  counter-increment:step;
}
.howto-step::before {
  content:counter(step); position:absolute; top:-15px; left:50%;
  transform:translateX(-50%);
  width:36px; height:36px; border-radius:50%;
  background:var(--gold); color:var(--brown);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.1rem;
}
.howto-step h3 { margin-top:10px; font-size:1rem; color:var(--primary-dark); margin-bottom:8px; }
.howto-step p { font-size:.85rem; color:var(--text-light); }

/* ========== RESPONSIVE ========== */
@media (max-width:768px) {
  .header-top { flex-direction:column; gap:10px; }
  .main-nav { justify-content:center; }
  .main-nav a { font-size:.8rem; padding:5px 10px; }
  .hero-banner { min-height:380px; }
  .hero-content h1 { font-size:1.8rem; }
  .hero-content p { font-size:.95rem; }
  .stats-grid { gap:10px; }
  .stats-grid .num { font-size:1.3rem; }
  .video-grid { grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); }
  .section-title h2 { font-size:1.5rem; }
  .timeline::before { left:20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width:100%; margin-left:40px; justify-content:flex-start;
  }
  .footer-grid { grid-template-columns:1fr; }
  .inner-banner { min-height:200px; }
  .inner-banner h1 { font-size:1.6rem; }
}

@media (max-width:480px) {
  .hero-content h1 { font-size:1.5rem; }
  .video-grid { grid-template-columns:1fr; }
  .expert-grid { grid-template-columns:1fr; }
  .review-grid { grid-template-columns:1fr; }
  .brand-wall { grid-template-columns:repeat(2,1fr); }
}

/* ========== LAZY LOAD ========== */
img[loading="lazy"] { opacity:0; transition:opacity .5s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity:1; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
.fade-in { animation:fadeInUp .6s ease forwards; }
