:root {
  --c-primary: #b8956a;
  --c-primary-dark: #9a7a52;
  --c-dark: #1a1a1a;
  --c-text: #333;
  --c-text-light: #888;
  --c-bg: #faf8f5;
  --c-bg-alt: #f0ebe3;
  --c-white: #fff;
  --c-border: #e5e0d8;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 72px;
  --max-w: 1200px;
  --font: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --transition: .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--c-border); z-index: 1000;
  display: flex; align-items: center;
}
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--c-dark); display: flex; align-items: center; gap: 8px; }
.logo .accent { color: var(--c-primary); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform var(--transition); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.btn-cta {
  background: var(--c-primary); color: #fff; padding: 9px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: background var(--transition);
}
.btn-cta:hover { background: var(--c-primary-dark); color: #fff; }

/* Hero */
.hero { position: relative; height: 600px; margin-top: var(--header-h); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 100%); display: flex; align-items: center; }
.hero-content { color: #fff; max-width: 600px; }
.hero-content h1 { font-size: 44px; line-height: 1.3; margin-bottom: 16px; font-weight: 700; }
.hero-content p { font-size: 18px; opacity: .9; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; }
.btn-primary { background: var(--c-primary); color: #fff; padding: 14px 36px; border-radius: var(--radius); font-size: 16px; font-weight: 600; display: inline-block; transition: background var(--transition), transform var(--transition); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 12px 34px; border-radius: var(--radius); font-size: 16px; font-weight: 600; display: inline-block; transition: all var(--transition); }
.btn-outline:hover { background: #fff; color: var(--c-dark); }

/* Section */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; color: var(--c-dark); font-weight: 700; margin-bottom: 12px; }
.section-title p { color: var(--c-text-light); font-size: 16px; }
.section-title .line { width: 60px; height: 3px; background: var(--c-primary); margin: 16px auto 0; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.service-card { background: var(--c-white); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; box-shadow: var(--shadow); transition: transform var(--transition); }
.service-card:hover { transform: translateY(-6px); }
.service-icon { width: 56px; height: 56px; margin: 0 auto 20px; background: var(--c-bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--c-primary); }
.service-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--c-dark); }
.service-card p { font-size: 14px; color: var(--c-text-light); }

/* Case grid */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.case-card { background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card .img-wrap { height: 220px; overflow: hidden; }
.case-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card:hover .img-wrap img { transform: scale(1.05); }
.case-card .body { padding: 20px; }
.case-card .tag { display: inline-block; font-size: 12px; color: var(--c-primary); border: 1px solid var(--c-primary); border-radius: 4px; padding: 2px 10px; margin-bottom: 10px; }
.case-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--c-dark); }
.case-meta { display: flex; gap: 16px; font-size: 13px; color: var(--c-text-light); }

/* Article list */
.article-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article-card { background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition); cursor: pointer; }
.article-card:hover { transform: translateY(-4px); }
.article-card .img-wrap { height: 180px; overflow: hidden; }
.article-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .img-wrap img { transform: scale(1.05); }
.article-card .body { padding: 20px; }
.article-card .cat { font-size: 12px; color: var(--c-primary); margin-bottom: 8px; }
.article-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--c-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .date { font-size: 13px; color: var(--c-text-light); }

/* Stats */
.stats { background: var(--c-dark); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 40px; color: var(--c-primary); font-weight: 700; }
.stat-item p { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 8px; }

/* CTA */
.cta-section { background: linear-gradient(rgba(184,149,106,.9), rgba(154,122,82,.9)), center/cover; text-align: center; padding: 80px 0; color: #fff; }
.cta-section h2 { font-size: 32px; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: .9; margin-bottom: 32px; }

/* Footer */
.footer { background: var(--c-dark); color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* Page banner */
.page-banner { height: 360px; margin-top: var(--header-h); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.page-banner .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.page-banner .title { position: relative; color: #fff; text-align: center; z-index: 1; }
.page-banner .title h1 { font-size: 36px; margin-bottom: 8px; }
.page-banner .title p { font-size: 16px; opacity: .8; }

/* Filter bar */
.filter-bar { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 8px 24px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-white); cursor: pointer; font-size: 14px; transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-bg-alt); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination button { width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-white); cursor: pointer; font-size: 14px; transition: all var(--transition); }
.pagination button:hover, .pagination button.active { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-bg-alt); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* Detail page */
.detail-header { text-align: center; margin-bottom: 32px; }
.detail-header h1 { font-size: 32px; color: var(--c-dark); margin-bottom: 12px; }
.detail-meta { display: flex; gap: 20px; justify-content: center; font-size: 14px; color: var(--c-text-light); }
.detail-content { background: var(--c-white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.detail-content img { border-radius: var(--radius); margin: 20px 0; }

/* 富文本正文 */
.rich-content { word-break: break-word; }
.rich-content p { margin-bottom: 14px; }
.rich-content h2 { font-size: 22px; color: var(--c-dark); margin: 24px 0 12px; }
.rich-content h3 { font-size: 18px; color: var(--c-dark); margin: 20px 0 10px; }
.rich-content ul, .rich-content ol { padding-left: 26px; margin: 12px 0; }
.rich-content li { margin-bottom: 6px; }
.rich-content blockquote {
  border-left: 3px solid var(--c-primary); padding: 10px 16px;
  background: var(--c-bg-alt); margin: 16px 0; color: var(--c-text-light);
}
.rich-content img, .rich-content video { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.rich-content a { color: var(--c-primary); text-decoration: underline; }
.detail-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 24px 0; }
.detail-gallery img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); }

/* About */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-hero img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: 30px; color: var(--c-dark); margin-bottom: 20px; }
.about-text p { font-size: 15px; color: var(--c-text-light); margin-bottom: 16px; line-height: 1.8; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { text-align: center; padding: 36px 24px; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.value-card .icon { font-size: 36px; color: var(--c-primary); margin-bottom: 16px; }
.value-card h3 { font-size: 18px; color: var(--c-dark); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--c-text-light); }

/* Contact form */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-size: 28px; color: var(--c-dark); margin-bottom: 24px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .item .icon { width: 48px; height: 48px; background: var(--c-bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--c-primary); flex-shrink: 0; }
.contact-info .item .text h4 { font-size: 16px; color: var(--c-dark); margin-bottom: 4px; }
.contact-info .item .text p { font-size: 14px; color: var(--c-text-light); }
.contact-form { background: var(--c-white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: var(--c-text); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font); background: var(--c-bg); transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--c-primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; }
.form-msg.error { background: #fce4e4; color: #c62828; }

/* Loading */
.loading { text-align: center; padding: 60px 0; color: var(--c-text-light); }
.loading .spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--c-border); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--c-text-light); }
.empty .icon { font-size: 48px; margin-bottom: 16px; }

/* Mobile menu */
.mobile-toggle { display: none; }

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; font-size: 24px; background: none; border: none; cursor: pointer; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 28px; }
  .services, .case-grid, .article-list, .stats-grid, .footer-grid, .about-hero, .contact-section, .values-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 24px; }
}
