/* base.css - 重置+变量+工具类（全局加载） */

/* === CSS Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.6; color: #333; background: #F5F0EB; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }
input, textarea, button { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

/* === CSS Variables === */
:root {
  --primary: #1B4332;
  --secondary: #D4A373;
  --dark: #0F2922;
  --bg: #F5F0EB;
  --text: #333333;
  --text-light: #666666;
  --border: #D0C8BC;
  --white: #FFFFFF;
  --gold-light: #E8D5C4;
  --green-light: #2D6A4F;
}

/* === Utility Classes === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.fl { float: left; }
.fr { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Flex utilities */
.flex { display: -webkit-box; display: -webkit-flex; display: flex; }
.flex-wrap { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.justify-between { -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; }
.justify-center { -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.align-center { -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.flex-1 { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }

/* Spacing */
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; } .mb-40 { margin-bottom: 40px; }
.pt-20 { padding-top: 20px; } .pt-40 { padding-top: 40px; } .pt-60 { padding-top: 60px; }
.pb-20 { padding-bottom: 20px; } .pb-40 { padding-bottom: 40px; } .pb-60 { padding-bottom: 60px; }

/* Section title */
.section-title { font-size: 28px; color: var(--primary); text-align: center; margin-bottom: 10px; position: relative; padding-bottom: 15px; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--secondary); }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 40px; }

/* Button styles */
.btn { display: inline-block; padding: 12px 32px; border-radius: 4px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--green-light); }
.btn-secondary { background: var(--secondary); color: var(--white); border: 1px solid var(--secondary); }
.btn-secondary:hover { background: #C49365; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Card style */
.card { background: var(--white); border-radius: 8px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* Link color */
.link { color: var(--primary); transition: color 0.3s; }
.link:hover { color: var(--secondary); }

/* Text colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-light); }

/* Background colors */
.bg-primary { background: var(--primary); }
.bg-dark { background: var(--dark); }
.bg-light { background: var(--bg); }

/* === Animation === */
@-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { -webkit-animation: fadeIn 0.6s ease; animation: fadeIn 0.6s ease; }

/* Lazy load */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded { opacity: 1; }
