/* 泰州炫奇商贸有限公司官网样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部栏 */
.top-bar { background: #1e3a8a; color: #fff; font-size: 14px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar span { margin-right: 20px; }

/* 导航栏 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; justify-content: space-between; align-items: height: 80px; }
.logo { font-size: 24px; font-weight: bold; color: #1e3a8a; }
.logo small { display: block; font-size: 12px; color: #666; font-weight: normal; }
.nav { display: flex; }
.nav li { position: relative; }
.nav a { display: block; padding: 30px 20px; font-size: 16px; color: #333; transition: color 0.3s; }
.nav a:hover, .nav a.active { color: #f97316; }
.nav li:hover .submenu { display: block; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.15); min-width: 160px; }
.submenu a { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }

/* Banner */
.banner { height: 500px; background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); color: #fff; display: flex; align-items: center; position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.banner-content { position: relative; z-index: 1; }
.banner h1 { font-size: 48px; margin-bottom: 20px; }
.banner p { font-size: 20px; margin-bottom: 30px; opacity: 0.9; }
.btn { display: inline-block; padding: 14px 40px; border-radius: 4px; font-size: 16px; margin-right: 15px; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: #f97316; color: #fff; }
.btn-primary:hover { background: #ea580c; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #1e3a8a; }

/* 数据栏 */
.stats { background: #f8fafc; padding: 40px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 42px; color: #1e3a8a; font-weight: bold; }
.stat-item p { font-size: 16px; color: #666; margin-top: 10px; }

/* 通用区块 */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: #1e3a8a; margin-bottom: 15px; }
.section-title p { color: #666; font-size: 16px; }

/* 公司简介 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h3 { font-size: 28px; color: #1e3a8a; margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; color: #555; font-size: 16px; line-height: 1.8; }
.about-img { height: 350px; background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }

/* 产品 */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.product-img { height: 200px; background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.product-info { padding: 25px; }
.product-info h3 { font-size: 20px; color: #1e3a8a; margin-bottom: 10px; }
.product-info p { color: #666; font-size: 14px; margin-bottom: 15px; }
.product-price { color: #f97316; font-size: 18px; font-weight: bold; }

/* 新闻 */
.news-section { background: #f8fafc; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-main { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.news-main-img { height: 300px; background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.news-main-content { padding: 30px; }
.news-main-content .date { color: #999; font-size: 14px; }
.news-main-content h3 { font-size: 24px; color: #1e3a8a; margin: 10px 0 15px; }
.news-list .news-item { padding: 18px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.news-list .news-item:last-child { border-bottom: none; }
.news-list h4 { font-size: 16px; color: #333; margin-bottom: 5px; }
.news-list h4:hover { color: #f97316; }
.news-list .date { color: #999; font-size: 14px; }

/* 优势 */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.advantage-item { text-align: center; padding: 30px 20px; background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.advantage-icon { width: 70px; height: 70px; background: #1e3a8a; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.advantage-item h3 { font-size: 20px; color: #1e3a8a; margin-bottom: 10px; }
.advantage-item p { color: #666; font-size: 14px; }

/* 案例 */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.case-img { height: 200px; background: linear-gradient(135deg, #475569 0%, #64748b 100%); display: flex; align-items: center; justify-content: center; color: #fff; }
.case-info { padding: 20px; background: #fff; }
.case-info h3 { font-size: 18px; color: #1e3a8a; margin-bottom: 8px; }
.case-info p { color: #666; font-size: 14px; }

/* 合作伙伴 */
.partners { background: #f8fafc; }
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.partner-item { height: 80px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #666; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* CTA */
.cta { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); color: #fff; text-align: center; padding: 60px 0; }
.cta h2 { font-size: 36px; margin-bottom: 20px; }
.cta p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.cta .phone { font-size: 32px; font-weight: bold; color: #f97316; margin-bottom: 20px; }

/* 页脚 */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer p, .footer li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: #f97316; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; text-align: center; font-size: 14px; }

/* 悬浮客服 */
.float-tools { position: fixed; right: 20px; bottom: 100px; z-index: 999; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.float-phone { background: #f97316; }
.float-wechat { background: #07c160; }
.float-top { background: #fff; color: #1e3a8a; border: 1px solid #ddd; }

/* 客服弹窗 */
.chat-box { position: fixed; right: 80px; bottom: 100px; width: 350px; height: 480px; background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: none; flex-direction: column; z-index: 1000; }
.chat-box.show { display: flex; }
.chat-header { background: #1e3a8a; color: #fff; padding: 15px 20px; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { font-size: 16px; }
.chat-close { cursor: pointer; font-size: 20px; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc; }
.chat-msg { margin-bottom: 15px; }
.chat-msg.bot .chat-bubble { background: #fff; padding: 10px 15px; border-radius: 0 15px 15px 15px; display: inline-block; max-width: 80%; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.chat-msg.user { text-align: right; }
.chat-msg.user .chat-bubble { background: #1e3a8a; color: #fff; padding: 10px 15px; border-radius: 15px 0 15px 15px; display: inline-block; max-width: 80%; }
.chat-quick { padding: 15px; border-top: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-quick button { padding: 6px 12px; background: #f1f5f9; border: none; border-radius: 15px; font-size: 12px; cursor: pointer; color: #333; }
.chat-quick button:hover { background: #1e3a8a; color: #fff; }
.chat-input { padding: 15px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.chat-input input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.chat-input button { padding: 10px 20px; background: #1e3a8a; color: #fff; border: none; border-radius: 4px; cursor: pointer; }

/* 响应式 */
@media (max-width: 768px) {
  .nav { display: none; }
  .banner h1 { font-size: 32px; }
  .banner p { font-size: 16px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .news-grid { grid-template-columns: 1fr; }
  .products-grid, .advantages-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
