/*
Theme Name: 双亮电器 MOBUSN
Theme URI: https://mobusn.cn
Description: 双亮电器中文官网 - 专业即热式电热水器制造商
Version: 2.0
Author: 双亮电器
Text Domain: mobusn
*/

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #333; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-top { background: #f8f9fa; padding: 5px 0; border-bottom: 1px solid #e5e7eb; font-size: 13px; color: #666; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top-left a, .header-top-right a { color: #666; margin-right: 20px; }
.header-top-left a:hover, .header-top-right a:hover { color: #1e40af; }
.header-main { padding: 10px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo img { height: 35px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0 3px; }
.main-nav a { display: block; padding: 7px 10px; color: #333; font-size: 15px; font-weight: 500; border-radius: 4px; transition: all 0.3s; }
.main-nav a:hover, .main-nav .current-menu-item a { color: #1e40af; background: #eff6ff; }
.nav-cta { margin-left: 15px; padding: 10px 24px; background: linear-gradient(135deg, #1e40af, #3b82f6); color: white !important; border-radius: 4px; font-weight: 500; transition: all 0.3s; }
.nav-cta:hover { background: linear-gradient(135deg, #1e3a8a, #2563eb); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30,64,175,0.3); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }

/* ===== Hero Banner ===== */
.hero-banner { position: relative; aspect-ratio: 1920/500; min-height: 300px; overflow: hidden; }
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.banner-slide.active { opacity: 1; }
.banner-slide .banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.banner-slide:nth-child(1) .banner-bg { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%); }
.banner-slide:nth-child(2) .banner-bg { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%); }
.banner-slide:nth-child(3) .banner-bg { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%); }
.banner-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: white; width: 100%; max-width: 800px; padding: 0 20px; z-index: 2; }
.banner-content h2 { font-size: 42px; font-weight: bold; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.95; }
.banner-content .btn-group { display: flex; gap: 15px; justify-content: center; }
.banner-btn { padding: 14px 36px; border-radius: 4px; font-size: 16px; font-weight: 500; transition: all 0.3s; display: inline-block; }
.banner-btn-primary { background: white; color: #1e40af; }
.banner-btn-primary:hover { background: #f0f9ff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,255,255,0.3); }
.banner-btn-secondary { background: transparent; color: white; border: 2px solid white; }
.banner-btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.banner-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; border: none; }
.banner-dot.active { background: white; width: 30px; border-radius: 6px; }

/* ===== News Ticker ===== */
.news-ticker { background: #f8f9fa; border-bottom: 1px solid #e5e7eb; padding: 12px 0; overflow: hidden; }
.news-ticker .container { display: flex; align-items: center; }
.ticker-label { background: #1e40af; color: white; padding: 5px 15px; border-radius: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; margin-right: 20px; }
.ticker-content { flex: 1; overflow: hidden; position: relative; height: 24px; }
.ticker-items { position: absolute; white-space: nowrap; animation: ticker-scroll 30s linear infinite; }
.ticker-item { display: inline-block; margin-right: 50px; color: #666; font-size: 14px; }
.ticker-item a { color: #666; }
.ticker-item a:hover { color: #1e40af; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== Section Styles ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: bold; color: #1e3a8a; margin-bottom: 15px; }
.section-title p { font-size: 16px; color: #666; max-width: 600px; margin: 0 auto; }
.section-title .title-line { width: 60px; height: 3px; background: linear-gradient(90deg, #1e40af, #3b82f6); margin: 15px auto 0; border-radius: 2px; }

/* ===== Stats Section ===== */
.stats { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.stat-item { text-align: center; color: white; }
.stat-item h3 { font-size: 42px; font-weight: bold; margin-bottom: 10px; }
.stat-item p { font-size: 14px; opacity: 0.9; }

/* ===== Products Section ===== */
.products { background: #f8f9fa; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-image { height: 220px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-image svg { width: 80px; height: 80px; opacity: 0.6; }
.product-badge { position: absolute; top: 15px; right: 15px; background: #1e40af; color: white; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.product-content { padding: 25px; }
.product-content h3 { font-size: 20px; font-weight: bold; color: #1e3a8a; margin-bottom: 12px; }
.product-content p { color: #666; font-size: 14px; margin-bottom: 15px; line-height: 1.6; }
.product-features { list-style: none; padding: 0; margin: 0 0 20px 0; }
.product-features li { padding: 5px 0; color: #555; font-size: 14px; }
.product-features li:before { content: "✓ "; color: #16a34a; font-weight: bold; margin-right: 8px; }
.product-link { display: inline-block; color: #1e40af; font-weight: 500; font-size: 14px; }
.product-link:hover { color: #1e3a8a; }
.product-link:after { content: " →"; }

/* ===== Advantages Section ===== */
.advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.advantage-card { background: #f8f9fa; padding: 35px; border-radius: 8px; border-left: 4px solid #1e40af; transition: all 0.3s; }
.advantage-card:hover { background: #eff6ff; transform: translateX(5px); }
.advantage-card h3 { font-size: 20px; font-weight: bold; color: #1e3a8a; margin-bottom: 15px; }
.advantage-card p { color: #555; font-size: 14px; line-height: 1.8; margin-bottom: 10px; }

/* ===== CTA Section ===== */
.cta { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); text-align: center; padding: 80px 0; }
.cta h2 { font-size: 32px; color: white; margin-bottom: 20px; }
.cta p { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn-primary { display: inline-block; padding: 16px 40px; background: white; color: #1e40af; border-radius: 4px; font-size: 16px; font-weight: 500; transition: all 0.3s; }
.cta .btn-primary:hover { background: #f0f9ff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,255,255,0.3); }

/* ===== Footer ===== */
.site-footer { background: #1a1a1a; color: #999; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #333; }
.footer-col h4 { color: white; font-size: 16px; font-weight: bold; margin-bottom: 20px; }
.footer-col p { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.footer-col a { display: block; color: #999; font-size: 14px; padding: 5px 0; transition: color 0.3s; }
.footer-col a:hover { color: white; }
.footer-contact-item { display: flex; align-items: center; margin-bottom: 12px; }
.footer-contact-item svg { width: 18px; height: 18px; margin-right: 10px; fill: #999; flex-shrink: 0; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: #999; margin: 0 10px; display: inline; padding: 0; }
.footer-bottom a:hover { color: white; }

/* ===== Page Header ===== */
.page-header { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); padding: 60px 0; text-align: center; color: white; }
.page-header h1 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.page-header .breadcrumb { font-size: 14px; opacity: 0.8; }
.page-header .breadcrumb a { color: white; }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ===== Content Area ===== */
.content-area { padding: 60px 0; }
.content-area .container { max-width: 900px; }
.content-area h2 { font-size: 24px; color: #1e3a8a; margin: 30px 0 15px; }
.content-area h3 { font-size: 20px; color: #1e3a8a; margin: 25px 0 12px; }
.content-area p { margin-bottom: 15px; line-height: 1.8; color: #555; }
.content-area ul, .content-area ol { margin: 15px 0; padding-left: 25px; }
.content-area li { margin-bottom: 8px; line-height: 1.6; }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary { display: inline-block; padding: 12px 30px; border-radius: 4px; font-size: 15px; font-weight: 500; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, #1e40af, #3b82f6); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, #1e3a8a, #2563eb); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30,64,175,0.3); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-top { display: none; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav li { margin: 5px 0; }
    .main-nav a { padding: 12px 15px; }
    .nav-cta { margin-left: 0; margin-top: 10px; text-align: center; }
    .hero-banner { aspect-ratio: 16/7; min-height: 220px; }
    .banner-content h2 { font-size: 28px; }
    .banner-content p { font-size: 15px; }
    .banner-content .btn-group { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item h3 { font-size: 32px; }
    .products-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 26px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .banner-content h2 { font-size: 24px; }
    .logo img { height: 40px; }
}

/* === GEO优化文章通用样式 === */
.geo-optimized-article { max-width: 960px; margin: 0 auto; padding: 40px 20px; }
.geo-optimized-article h1 { font-size: 28px; color: #1e3a8a; margin-bottom: 8px; line-height: 1.4; }
.geo-optimized-article .meta { color: #64748b; font-size: 13px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #e2e8f0; }
.geo-optimized-article h2 { font-size: 22px; color: #1e293b; margin: 35px 0 15px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.geo-optimized-article h3 { font-size: 18px; color: #334155; margin: 25px 0 10px; }
.geo-optimized-article h4 { font-size: 16px; color: #475569; margin: 20px 0 8px; }
.geo-optimized-article p { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 15px; }
.geo-optimized-article ul, .geo-optimized-article ol { margin: 15px 0; padding-left: 24px; }
.geo-optimized-article li { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 6px; }
.geo-optimized-article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.geo-optimized-article table th { background: #1e3a8a; color: #fff; padding: 12px 15px; text-align: left; font-weight: 600; }
.geo-optimized-article table td { padding: 10px 15px; border-bottom: 1px solid #e2e8f0; }
.geo-optimized-article table tr:nth-child(even) { background: #f8fafc; }
.geo-optimized-article table tr:hover { background: #eff6ff; }
.geo-optimized-article blockquote { border-left: 4px solid #1e3a8a; margin: 20px 0; padding: 15px 20px; background: #f0f9ff; border-radius: 0 8px 8px 0; }
.geo-optimized-article .summary { background: #f0f9ff; border-radius: 12px; padding: 25px; margin-bottom: 30px; }
.geo-optimized-article .summary h2 { border-bottom: none; margin-top: 0; }
.geo-optimized-article strong { color: #1e3a8a; }
.geo-optimized-article .faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 15px; }
.geo-optimized-article .faq-item h3 { color: #1e3a8a; margin-top: 0; font-size: 16px; }
.geo-optimized-article .case-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.geo-optimized-article .case-card h3 { color: #1e3a8a; margin-top: 0; }
.geo-optimized-article .highlight-box { background: linear-gradient(135deg, #eff6ff, #f0fdf4); border-radius: 12px; padding: 25px; margin: 20px 0; border: 1px solid #bfdbfe; }
@media (max-width: 768px) {
  .geo-optimized-article { padding: 20px 15px; }
  .geo-optimized-article h1 { font-size: 22px; }
  .geo-optimized-article h2 { font-size: 18px; }
  .geo-optimized-article table { font-size: 12px; }
  .geo-optimized-article table th, .geo-optimized-article table td { padding: 8px 10px; }
}

/* ===== 下拉菜单（技术智库） ===== */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a::after { content: " ▾"; font-size: 12px; opacity: 0.7; }
.main-nav .sub-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff; min-width: 180px; list-style: none; margin: 0; padding: 8px 0;
    box-shadow: 0 8px 24px rgba(30,58,138,0.15); border-radius: 8px; border: 1px solid #e5e7eb;
    z-index: 1000;
}
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu li { margin: 0; display: block; }
.main-nav .sub-menu a {
    display: block; padding: 10px 20px; color: #333; font-size: 14px; font-weight: 500;
    white-space: nowrap; border-radius: 0; background: none !important;
}
.main-nav .sub-menu a:hover { background: #eff6ff !important; color: #1e40af; }
.main-nav .sub-menu li.current-menu-item a { background: #eff6ff !important; color: #1e40af; }
@media (max-width: 768px) {
    .main-nav .sub-menu {
        display: block; position: static; transform: none; box-shadow: none;
        border: none; border-left: 3px solid #1e40af; border-radius: 0; margin-left: 15px;
        padding: 0; min-width: auto;
    }
    .main-nav .menu-item-has-children > a::after { content: ""; }
}
