/* ===== 重置 & 基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #fdf6f0 0%, #fef9f2 100%); transition: background 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
#navbar { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(245,166,35,0.2); padding: 10px 0; transition: all 0.3s; position: relative; z-index: 100; }
#navbar.sticky { position: fixed; top: 0; width: 100%; box-shadow: 0 4px 20px rgba(245,166,35,0.15); }
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; transition: transform 0.3s; }
.logo:hover { transform: scale(1.03); }
.logo svg { flex-shrink: 0; }
.site-name { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, #f5a623, #f7c948); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 8px; }
.nav-links li a { display: block; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; color: #444; transition: all 0.3s; position: relative; }
.nav-links li a::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: #f5a623; border-radius: 2px; transition: width 0.3s; }
.nav-links li a:hover { color: #f5a623; background: rgba(245,166,35,0.08); }
.nav-links li a:hover::after { width: 60%; }
.search-box form { display: flex; align-items: center; background: rgba(245,166,35,0.06); border-radius: 25px; padding: 2px 2px 2px 16px; border: 1px solid rgba(245,166,35,0.15); transition: border-color 0.3s, box-shadow 0.3s; }
.search-box form:focus-within { border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }
.search-box input { border: none; background: transparent; padding: 8px 0; font-size: 0.9rem; width: 160px; outline: none; color: #333; }
.search-box input::placeholder { color: #aaa; }
.search-box button { background: #f5a623; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.search-box button:hover { background: #e6951f; transform: scale(1.05); }
.search-box button svg { stroke: #fff; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.3s; }
.menu-toggle:hover { background: rgba(245,166,35,0.1); }
.menu-toggle span { width: 26px; height: 3px; background: #f5a623; border-radius: 3px; transition: all 0.3s; }

/* ===== Banner ===== */
.banner { position: relative; overflow: hidden; background: linear-gradient(135deg, #fdf0d5 0%, #fce4c8 50%, #f8d5b0 100%); min-height: 420px; display: flex; align-items: center; }
.banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 40%, rgba(245,166,35,0.08) 0%, transparent 60%), radial-gradient(circle at 70% 60%, rgba(255,200,50,0.06) 0%, transparent 50%); animation: bgFloat 20s ease-in-out infinite alternate; }
@keyframes bgFloat { 0% { transform: translate(0,0) rotate(0); } 100% { transform: translate(2%,-2%) rotate(2deg); } }
.banner .slide { display: none; padding: 80px 20px; text-align: center; position: relative; z-index: 1; animation: fadeUp 0.6s ease-out; }
.banner .slide.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.banner .slide-content { max-width: 750px; margin: 0 auto; }
.banner h1, .banner h2 { font-size: 2.6rem; font-weight: 800; color: #2c1810; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.banner p { font-size: 1.15rem; color: #5a4a3a; margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-primary { display: inline-block; padding: 14px 36px; background: linear-gradient(135deg, #f5a623, #f7c948); color: #fff; border-radius: 50px; font-weight: 700; font-size: 1rem; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(245,166,35,0.35); transition: all 0.3s; position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245,166,35,0.45); }
.btn-primary:hover::after { left: 100%; }
.banner-prev, .banner-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border: 1px solid rgba(245,166,35,0.2); color: #5a4a3a; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.banner-prev:hover, .banner-next:hover { background: rgba(245,166,35,0.2); color: #f5a623; transform: translateY(-50%) scale(1.1); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.banner-dots .dot { width: 12px; height: 12px; background: rgba(245,166,35,0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.banner-dots .dot.active { background: #f5a623; border-color: #fff; box-shadow: 0 0 10px rgba(245,166,35,0.4); transform: scale(1.2); }
.banner-dots .dot:hover { background: rgba(245,166,35,0.6); }

/* ===== Sections ===== */
.section { padding: 80px 0; position: relative; }
.bg-light { background: rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.section:nth-child(even) { background: rgba(245,166,35,0.03); }
h2 { font-size: 2rem; font-weight: 700; color: #2c1810; margin-bottom: 25px; padding-bottom: 12px; position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: linear-gradient(90deg, #f5a623, #f7c948); border-radius: 4px; }
h3 { font-size: 1.5rem; font-weight: 600; color: #3a2a1a; margin-top: 35px; margin-bottom: 15px; }
h4 { font-size: 1.15rem; font-weight: 600; color: #4a3a2a; margin-top: 20px; }
p { margin-bottom: 16px; color: #555; line-height: 1.8; }
ul, ol { margin-bottom: 20px; padding-left: 24px; }
li { margin-bottom: 10px; color: #555; line-height: 1.7; }
blockquote { border-left: 4px solid #f5a623; padding: 16px 24px; margin: 20px 0; background: rgba(245,166,35,0.06); border-radius: 0 12px 12px 0; font-style: italic; color: #5a4a3a; }

/* ===== 文章卡片 ===== */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-list article { background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid rgba(245,166,35,0.1); transition: all 0.4s; }
.article-list article:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.25); }
.article-list article h3 { margin-top: 0; font-size: 1.2rem; }
.article-list article h3 a { color: #2c1810; transition: color 0.3s; }
.article-list article h3 a:hover { color: #f5a623; }
.article-list article time { color: #999; font-size: 0.85rem; display: block; margin-bottom: 12px; }
.read-more { color: #f5a623; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; color: #e6951f; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: rgba(255,255,255,0.6); backdrop-filter: blur(6px); border-radius: 14px; border: 1px solid rgba(245,166,35,0.1); padding: 0; overflow: hidden; transition: all 0.3s; }
.faq-list details:hover { border-color: rgba(245,166,35,0.25); box-shadow: 0 4px 15px rgba(245,166,35,0.06); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 18px 24px; background: rgba(245,166,35,0.03); transition: background 0.3s; display: flex; align-items: center; gap: 12px; user-select: none; }
.faq-list summary::before { content: '+'; font-size: 1.4rem; font-weight: 300; color: #f5a623; transition: transform 0.3s; }
.faq-list details[open] summary { background: rgba(245,166,35,0.08); color: #f5a623; }
.faq-list details[open] summary::before { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 18px; margin: 0; color: #666; }

/* ===== Footer ===== */
footer { background: #1a1a1a; color: #bbb; padding: 50px 0 30px; }
footer .footer-links { margin-bottom: 25px; }
footer .footer-links h3 { color: #f5a623; font-size: 1.1rem; margin-top: 0; margin-bottom: 15px; }
footer .footer-links ul { display: flex; justify-content: center; gap: 30px; padding: 0; }
footer .footer-links a { color: #ccc; transition: color 0.3s; }
footer .footer-links a:hover { color: #f5a623; }
footer .footer-info p { margin-bottom: 8px; font-size: 0.9rem; color: #888; }
footer .footer-info a { color: #f5a623; transition: color 0.3s; }
footer .footer-info a:hover { color: #f7c948; }

/* ===== 固定按钮 ===== */
#back-to-top { display: none; position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #f5a623, #f7c948); color: #fff; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.6rem; cursor: pointer; z-index: 1000; box-shadow: 0 4px 15px rgba(245,166,35,0.35); transition: all 0.3s; }
#back-to-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(245,166,35,0.45); }
#dark-mode-toggle { position: fixed; bottom: 90px; right: 30px; background: rgba(44,24,16,0.8); backdrop-filter: blur(8px); color: #fff; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.4rem; cursor: pointer; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.3s; }
#dark-mode-toggle:hover { transform: scale(1.1); background: #2c1810; }

/* ===== 暗色模式 ===== */
body.dark-mode { background: #121212; color: #ddd; }
body.dark-mode #navbar { background: rgba(20,20,20,0.9); border-bottom-color: rgba(245,166,35,0.15); }
body.dark-mode .nav-links li a { color: #ccc; }
body.dark-mode .nav-links li a:hover { color: #f5a623; background: rgba(245,166,35,0.1); }
body.dark-mode .search-box form { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
body.dark-mode .search-box input { color: #ddd; }
body.dark-mode .search-box input::placeholder { color: #777; }
body.dark-mode .banner { background: linear-gradient(135deg, #1e1a16 0%, #2a2218 50%, #1e1812 100%); }
body.dark-mode .banner h1, body.dark-mode .banner h2 { color: #f0e8d8; }
body.dark-mode .banner p { color: #bbb; }
body.dark-mode .banner-prev, body.dark-mode .banner-next { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); color: #ddd; }
body.dark-mode .banner-dots .dot { background: rgba(245,166,35,0.3); }
body.dark-mode .banner-dots .dot.active { background: #f5a623; }
body.dark-mode .section.bg-light { background: rgba(30,30,30,0.6); }
body.dark-mode .section:nth-child(even) { background: rgba(245,166,35,0.02); }
body.dark-mode h2 { color: #f0e8d8; }
body.dark-mode h3, body.dark-mode h4 { color: #e0d8c8; }
body.dark-mode p, body.dark-mode li { color: #bbb; }
body.dark-mode .article-list article { background: rgba(30,30,30,0.7); border-color: rgba(255,255,255,0.05); }
body.dark-mode .article-list article h3 a { color: #f0e8d8; }
body.dark-mode .faq-list details { background: rgba(30,30,30,0.5); border-color: rgba(255,255,255,0.05); }
body.dark-mode .faq-list summary { background: rgba(245,166,35,0.03); color: #ddd; }
body.dark-mode .faq-list details[open] summary { background: rgba(245,166,35,0.08); }
body.dark-mode .faq-list details p { color: #aaa; }
body.dark-mode blockquote { background: rgba(245,166,35,0.04); color: #ccc; }
body.dark-mode footer { background: #0a0a0a; }
body.dark-mode #back-to-top { box-shadow: 0 4px 15px rgba(245,166,35,0.25); }

/* ===== 滚动动画 ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .article-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .banner h1, .banner h2 { font-size: 2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); padding: 20px; gap: 4px; border-top: 1px solid rgba(245,166,35,0.1); }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 12px 16px; border-radius: 10px; }
    .menu-toggle { display: flex; }
    .search-box { display: none; }
    .banner { min-height: 320px; }
    .banner h1, .banner h2 { font-size: 1.6rem; }
    .banner p { font-size: 1rem; }
    .banner .slide { padding: 50px 20px; }
    .banner-prev, .banner-next { width: 40px; height: 40px; font-size: 1.4rem; }
    .section { padding: 50px 0; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
    .article-list { grid-template-columns: 1fr; }
    #back-to-top, #dark-mode-toggle { width: 44px; height: 44px; font-size: 1.2rem; bottom: 20px; right: 20px; }
    #dark-mode-toggle { bottom: 72px; }
    footer .footer-links ul { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 480px) {
    .banner h1, .banner h2 { font-size: 1.3rem; }
    .banner p { font-size: 0.9rem; }
    .btn-primary { padding: 12px 28px; font-size: 0.9rem; }
    .container { padding: 0 16px; }
}