/* 全局重置与基础样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; background: linear-gradient(135deg, #faf7f2 0%, #f0ebe4 100%); color: #2c3e50; line-height: 1.7; min-height: 100vh; }
a { color: #c0392b; text-decoration: none; transition: color 0.2s, transform 0.2s; }
a:hover { color: #a93226; transform: translateY(-1px); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
h1 { font-size: 2.2rem; color: #1e2a3a; }
h2 { font-size: 1.8rem; color: #2c3e50; border-left: 5px solid #c0392b; padding-left: 0.8rem; margin-top: 2.5rem; position: relative; }
h2::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 60px; height: 3px; background: linear-gradient(90deg, #c0392b, transparent); border-radius: 2px; }
h3 { font-size: 1.4rem; color: #34495e; margin-top: 1.8rem; }
h4 { font-size: 1.15rem; color: #4a5b6e; margin-top: 1.2rem; }
p { margin-bottom: 1rem; color: #3d4a5a; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 3rem 0; }
.text-center { text-align: center; }
.badge { display: inline-block; background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.8rem; box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3); }

/* 导航 */
nav { background: rgba(30, 42, 58, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0.8rem 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
nav .logo { font-size: 1.5rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
nav .logo svg { width: 32px; height: 32px; fill: #c0392b; filter: drop-shadow(0 0 4px rgba(192, 57, 43, 0.5)); }
nav .nav-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
nav .nav-links a { color: #ecf0f1; font-size: 0.95rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: all 0.3s; position: relative; }
nav .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: linear-gradient(90deg, #c0392b, #e74c3c); transition: width 0.3s; }
nav .nav-links a:hover::after { width: 100%; }
nav .nav-links a:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.search-box { display: flex; align-items: center; gap: 0.3rem; background: rgba(44, 62, 80, 0.8); backdrop-filter: blur(5px); border-radius: 25px; padding: 0.3rem 1rem; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.search-box:focus-within { border-color: #c0392b; box-shadow: 0 0 15px rgba(192, 57, 43, 0.2); }
.search-box input { background: transparent; border: none; color: #fff; outline: none; width: 140px; font-size: 0.9rem; }
.search-box input::placeholder { color: #95a5a6; }
.search-box button { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 1rem; transition: transform 0.2s; }
.search-box button:hover { transform: scale(1.2); }

/* 轮播 */
.banner { background: linear-gradient(135deg, #1e2a3a 0%, #2c3e50 100%); color: #fff; padding: 0; overflow: hidden; position: relative; }
.banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(192, 57, 43, 0.1) 0%, transparent 50%); animation: bannerGlow 10s ease-in-out infinite alternate; }
@keyframes bannerGlow { 0% { transform: translate(0, 0); } 100% { transform: translate(20%, 20%); } }
.banner-slide { display: none; padding: 4rem 2rem; text-align: center; min-height: 400px; align-items: center; justify-content: center; flex-direction: column; position: relative; z-index: 1; }
.banner-slide.active { display: flex; animation: fadeInUp 0.6s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.banner-slide h1 { font-size: 2.6rem; color: #fff; margin-bottom: 0.8rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-slide p { font-size: 1.2rem; color: #d5dbdb; max-width: 700px; margin: 0 auto 1.5rem; }
.banner-slide .btn { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; padding: 0.8rem 2rem; border-radius: 30px; font-weight: 600; display: inline-block; transition: all 0.3s; box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4); }
.banner-slide .btn:hover { background: linear-gradient(135deg, #a93226, #c0392b); transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 25px rgba(192, 57, 43, 0.5); }
.banner-dots { text-align: center; padding: 1rem; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); }
.banner-dots span { display: inline-block; width: 12px; height: 12px; background: #7f8c8d; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: all 0.3s; }
.banner-dots span.active { background: #c0392b; box-shadow: 0 0 10px rgba(192, 57, 43, 0.5); transform: scale(1.3); }

/* 品牌区 */
.brand-intro { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 2.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.08); margin: 2rem 0; border: 1px solid rgba(255,255,255,0.3); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.brand-info h3 { margin-top: 0; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.brand-meta div { background: rgba(240, 235, 228, 0.8); backdrop-filter: blur(5px); padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s; }
.brand-meta div:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.brand-meta strong { display: block; color: #1e2a3a; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem; }
.product-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 1.8rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; border: 1px solid rgba(255,255,255,0.3); }
.product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.product-card svg { width: 60px; height: 60px; margin-bottom: 1rem; filter: drop-shadow(0 4px 8px rgba(192, 57, 43, 0.2)); }
.product-card h3 { margin-top: 0; }

/* FAQ */
.faq-item { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border-radius: 12px; margin-bottom: 0.8rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; }
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.faq-question { padding: 1rem 1.5rem; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.faq-question:hover { background: rgba(245, 240, 234, 0.6); }
.faq-question::after { content: "+"; font-size: 1.5rem; color: #c0392b; transition: all 0.3s; }
.faq-item.open .faq-question::after { content: "−"; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.3s ease; padding: 0 1.5rem; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 1.5rem 1.2rem; }

/* HowTo */
.howto-steps { counter-reset: step; }
.howto-step { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; gap: 1.5rem; align-items: flex-start; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.3); }
.howto-step:hover { transform: translateX(5px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.howto-step::before { counter-increment: step; content: counter(step); background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3); }
.howto-step h4 { margin-top: 0; }

/* 文章卡片 */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem; }
.article-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.05); transition: all 0.3s; border: 1px solid rgba(255,255,255,0.3); }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.article-card .date { font-size: 0.85rem; color: #7f8c8d; margin-bottom: 0.3rem; }
.article-card h3 { font-size: 1.2rem; margin: 0.3rem 0; }
.article-card p { font-size: 0.95rem; color: #5d6d7e; }
.article-card .read-more { color: #c0392b; font-weight: 600; position: relative; }
.article-card .read-more::after { content: ' →'; opacity: 0; transition: all 0.3s; }
.article-card .read-more:hover::after { opacity: 1; margin-left: 5px; }

/* 评价 */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border-radius: 16px; padding: 1.8rem; box-shadow: 0 4px 16px rgba(0,0,0,0.05); position: relative; border: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.testimonial-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, #c0392b, #e74c3c); border-radius: 4px 0 0 4px; }
.testimonial-card .author { font-weight: 600; margin-top: 0.8rem; color: #1e2a3a; }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.friend-links a { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(5px); padding: 0.4rem 1rem; border-radius: 25px; font-size: 0.9rem; color: #2c3e50; border: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; }
.friend-links a:hover { border-color: #c0392b; color: #c0392b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2); }

/* 页脚 */
footer { background: rgba(30, 42, 58, 0.98); backdrop-filter: blur(10px); color: #bdc3c7; padding: 3rem 0 1.5rem; }
footer .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
footer h4 { color: #fff; margin-bottom: 0.8rem; }
footer a { color: #bdc3c7; display: block; margin-bottom: 0.3rem; transition: all 0.2s; }
footer a:hover { color: #fff; transform: translateX(3px); }
footer .copyright { grid-column: 1 / -1; text-align: center; border-top: 1px solid rgba(44, 62, 80, 0.5); padding-top: 1.5rem; margin-top: 1.5rem; font-size: 0.9rem; }

/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: all 0.3s; z-index: 99; border: none; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4); }
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 6px 25px rgba(192, 57, 43, 0.6); }

/* 暗黑模式 */
.dark-mode-btn { background: none; border: none; color: #ecf0f1; cursor: pointer; font-size: 1.2rem; padding: 0.3rem; transition: transform 0.3s; }
.dark-mode-btn:hover { transform: rotate(20deg); }
body.dark { background: linear-gradient(135deg, #1a1e2a 0%, #2c3e50 100%); color: #d5dbdb; }
body.dark h1, body.dark h2, body.dark h3, body.dark h4 { color: #ecf0f1; }
body.dark p { color: #bdc3c7; }
body.dark .brand-intro, body.dark .product-card, body.dark .faq-item, body.dark .howto-step, body.dark .article-card, body.dark .testimonial-card, body.dark .friend-links a { background: rgba(44, 62, 80, 0.85); backdrop-filter: blur(8px); color: #ecf0f1; border-color: rgba(255,255,255,0.1); }
body.dark .brand-meta div { background: rgba(52, 73, 94, 0.8); color: #ecf0f1; }
body.dark .friend-links a { border-color: rgba(74, 91, 110, 0.5); color: #bdc3c7; }
body.dark footer { background: rgba(17, 21, 31, 0.98); }
body.dark .banner { background: linear-gradient(135deg, #11151f 0%, #1a1e2a 100%); }
body.dark nav { background: rgba(17, 21, 31, 0.95); }
body.dark .search-box { background: rgba(44, 62, 80, 0.6); }

/* 滚动动画 */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav .nav-links { display: none; width: 100%; flex-direction: column; gap: 0.5rem; padding: 1rem 0; background: rgba(30, 42, 58, 0.95); backdrop-filter: blur(10px); border-radius: 0 0 12px 12px; }
    nav .nav-links.open { display: flex; }
    .search-box { width: 100%; margin-top: 0.5rem; }
    .search-box input { width: 100%; }
    .brand-grid { grid-template-columns: 1fr; }
    .banner-slide h1 { font-size: 1.8rem; }
    .banner-slide { min-height: 300px; padding: 2rem 1rem; }
    h2 { font-size: 1.4rem; }
    .product-grid, .article-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .howto-step { flex-direction: column; gap: 0.8rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.2rem; }
}