/* ===== 基础变量 ===== */
:root{--blue:#2a7bc1;--blue-dark:#1e5a8f;--blue-light:#e8f2fa;--text:#333;--muted:#888;--bg:#f5f7fa;--white:#fff;--radius:8px;--shadow:0 2px 12px rgba(0,0,0,.06);--shadow-lg:0 8px 30px rgba(0,0,0,.1)}

/* ===== 全局 ===== */
body{color:var(--text);font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:var(--blue);transition:.2s}
a:hover{color:var(--blue-dark)}
.container{max-width:1200px;padding:0 16px}
main{min-height:60vh;padding-bottom:40px}

/* ===== 导航 ===== */
.navbar{padding:0}
.navbar .container{max-width:1200px}
.navbar-brand{font-size:1.2rem;font-weight:700;letter-spacing:-.5px}
.navbar-dark .nav-link{font-weight:500;font-size:.93rem;padding:1.2rem 1rem!important;transition:.2s;color:rgba(255,255,255,.85)!important}
.navbar-dark .nav-link:hover{color:#fff!important;background:rgba(255,255,255,.12)}
.navbar .dropdown-menu{border:none;border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:.5rem 0}
.navbar .dropdown-item{padding:.5rem 1.2rem;font-size:.9rem;transition:.15s}
.navbar .dropdown-item:hover{background:var(--blue-light);color:var(--blue)}

/* ===== 轮播 ===== */
.carousel{background:#e5e7eb}
.carousel-inner img{width:100%;display:block}
.carousel-indicators li{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.5);border:none}
.carousel-indicators .active{background:var(--blue)}
.carousel-caption{background:rgba(0,0,0,.35);border-radius:8px;padding:12px 24px;bottom:40px;left:50%;transform:translateX(-50%);width:auto}
.carousel-caption h5{font-size:1.4rem;font-weight:600;text-shadow:none}
@media(max-width:768px){.carousel-caption{bottom:16px;padding:8px 16px}.carousel-caption h5{font-size:1rem}}

/* ===== 首页区块 ===== */
.section{padding:60px 0}

/* ===== 区块标题 ===== */
.section-title{margin-bottom:56px;text-align:center}
.section-title h3{font-size:1.8rem;font-weight:700;color:var(--text);margin:0 0 10px;letter-spacing:1px}
.section-title .sub{font-size:1rem;color:var(--muted)}
.section-title::after{content:'';display:block;width:48px;height:3px;background:var(--blue);margin:16px auto 0;border-radius:2px}

/* ===== 产品卡片 ===== */
.product-card{border:none;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.25s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.product-card .card-img-top{height:200px;object-fit:cover}
.product-card .no-img{height:200px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;font-size:2.5rem;color:#cbd5e1}
.product-card .card-body{padding:14px 16px}
.product-card .card-title{font-size:.92rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-card .tag{position:absolute;top:8px;right:8px;padding:2px 8px;border-radius:12px;font-size:.72rem;font-weight:600;color:#fff}
.product-card .tag-hot{background:#ef4444}
.product-card .tag-new{background:#10b981}

/* ===== 新闻卡片 ===== */
.news-card{border:none;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.25s;height:100%}
.news-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.news-card .news-img{height:170px;overflow:hidden;background:#f1f5f9}
.news-card .news-img img{width:100%;height:100%;object-fit:cover}
.news-card .news-no-img{height:170px;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#cbd5e1}
.news-card .card-body{padding:16px}
.news-card .news-date{font-size:.78rem;color:var(--muted);margin-bottom:4px}
.news-card .news-title{font-size:.95rem;font-weight:600;line-height:1.5;max-height:2.85em;overflow:hidden}

/* ===== 公告列表 ===== */
.notice-list{max-width:800px;margin:0 auto}
.notice-item{display:flex;align-items:center;padding:12px 0;border-bottom:1px solid #eee;transition:.2s}
.notice-item:hover{background:var(--blue-light);margin:0 -16px;padding-left:16px;padding-right:16px;border-radius:6px}
.notice-item .badge{flex-shrink:0;margin-right:12px}
.notice-item a{color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-item a:hover{color:var(--blue)}
.notice-item time{flex-shrink:0;color:var(--muted);font-size:.85rem;margin-left:16px}

/* ===== 文章详情 ===== */
.article-detail{max-width:860px;margin:40px auto}
.article-detail h1{font-size:1.7rem;font-weight:700;line-height:1.4}
.article-detail .meta{color:var(--muted);font-size:.85rem;margin:12px 0 24px;padding-bottom:16px;border-bottom:1px solid #eee}
.article-detail .content{font-size:1rem;line-height:1.9}
.article-detail .content img{max-width:100%;border-radius:var(--radius)}
.article-detail .content p{margin:0 0 1em}

/* ===== 关于我们 ===== */
.about-section{padding:50px 0}
.about-section .about-img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow)}
.about-section .about-text{font-size:1rem;line-height:1.9;color:#555}
.about-section .feature-box{text-align:center;padding:24px 16px;border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow);transition:.25s;height:100%}
.about-section .feature-box:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.about-section .feature-box .icon{font-size:2.2rem;color:var(--blue);margin-bottom:12px}

/* ===== 联系我们 ===== */
.contact-page{padding:50px 0}
.contact-page .contact-card{padding:32px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow)}
.contact-page .contact-card .icon{font-size:1.8rem;color:var(--blue);margin-right:12px}
.contact-page .contact-card h5{font-weight:600;margin-bottom:8px}
.contact-page .contact-card p{color:var(--muted);margin:0}
.contact-page .map-wrap{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.contact-page .map-wrap iframe{display:block;width:100%;height:400px;border:0}
.contact-page .qrcode-block{text-align:center;margin-top:20px}
.contact-page .qrcode-block img{width:120px;height:120px}
.contact-page .qrcode-block p{color:var(--muted);font-size:.85rem;margin-top:8px}



/* ===== 留言表单 ===== */
.message-page{max-width:640px;margin:50px auto}
.message-page .form-card{padding:32px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow)}
.message-page .form-group label{font-weight:500;margin-bottom:4px;color:#555}
.message-page .form-control{border-radius:6px;border-color:#ddd;padding:10px 14px;transition:.2s}
.message-page .form-control:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(42,123,193,.15)}
.message-page textarea.form-control{min-height:120px}

/* ===== 产品详情 ===== */
.product-detail{padding:40px 0}
.product-detail .main-img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%;max-height:420px;object-fit:contain;background:#f9fafb}
.product-detail .thumb-row{margin-top:12px;display:flex;gap:8px}
.product-detail .thumb-row img{width:64px;height:64px;object-fit:cover;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:.2s}
.product-detail .thumb-row img.active,.product-detail .thumb-row img:hover{border-color:var(--blue)}
.product-detail .info-block h3{font-size:1.5rem;font-weight:700}
.product-detail .info-block .price{font-size:1.6rem;font-weight:700;color:#ef4444}
.product-detail .qty-input{width:100px!important;display:inline-block;text-align:center}

/* ===== 分类筛选按钮 ===== */
.category-filter{border:1px solid var(--border,#e5e7eb)}
.filter-btn{display:inline-block;padding:8px 20px;border-radius:20px;font-size:.9rem;font-weight:500;color:var(--text);background:#f3f4f6;transition:.2s;border:1px solid transparent}
.filter-btn:hover{color:var(--blue);background:var(--blue-light);text-decoration:none}
.filter-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.filter-sub-btn{display:inline-block;padding:6px 16px;border-radius:14px;font-size:.84rem;color:var(--blue);background:var(--blue-light);border:1px solid rgba(42,123,193,.2);transition:.2s}
.filter-sub-btn:hover{background:var(--blue);color:#fff;text-decoration:none}
.filter-sub-btn.active{background:var(--blue);color:#fff;font-weight:600;box-shadow:0 2px 8px rgba(42,123,193,.3)}

/* ===== 产品列表 ===== */
.product-list-page .filter-bar{margin-bottom:24px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.product-list-page .search-box{display:flex;gap:8px;margin-left:auto}
.product-list-page .search-box input{width:200px;border-radius:6px;border:1px solid #ddd;padding:6px 12px;font-size:.9rem}

/* ===== 用户中心 ===== */
.user-center{padding:40px 0;min-height:60vh}
.user-center .sidebar .list-group-item{border:none;border-radius:6px;margin-bottom:4px;padding:12px 18px;font-weight:500;font-size:.93rem;transition:.2s}
.user-center .sidebar .list-group-item:hover{background:var(--blue-light);color:var(--blue)}
.user-center .sidebar .list-group-item.active{background:var(--blue);color:#fff}
.user-center .content-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px}

/* ===== 订单进度条 ===== */
.order-progress{display:flex;align-items:center;padding:0 20px}
.order-progress .step{padding:4px 14px;background:#e9ecef;border-radius:20px;font-size:0.85rem;white-space:nowrap}
.order-progress .step.active{background:var(--blue);color:#fff}
.order-progress .step-line{flex:1;height:3px;background:#e9ecef;margin:0 8px;min-width:20px}
.order-progress .step-line.active{background:var(--blue)}

/* ===== 登录/注册 ===== */
.auth-page{min-height:65vh;display:flex;align-items:center;padding:40px 0}
.auth-page .auth-card{max-width:420px;margin:0 auto;padding:36px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-lg)}
.auth-page .auth-card h4{text-align:center;font-weight:700;margin-bottom:24px}
.auth-page .auth-card .form-control{border-radius:6px;padding:10px 14px}
.auth-page .auth-card .btn{width:100%;padding:10px 0;font-size:1rem;font-weight:600;border-radius:6px}

/* ===== 页脚 ===== */
footer{border-top:1px solid #e5e7eb;padding:40px 0 20px;margin-top:60px}
footer h5{font-size:.95rem;font-weight:600;margin-bottom:12px;color:var(--text)}
footer ul{list-style:none;padding:0;margin:0}
footer ul li{margin-bottom:6px}
footer ul li a{color:var(--muted);font-size:.9rem;transition:.2s}
footer ul li a:hover{color:var(--blue)}
footer .copyright{text-align:center;color:var(--muted);font-size:.85rem;padding-top:20px;margin-top:20px;border-top:1px solid #e5e7eb}

/* ===== 分页美化 ===== */
.pagination{justify-content:center;margin-top:32px}
.page-link{color:var(--blue);border-radius:6px!important;margin:0 2px;border:1px solid #e5e7eb;padding:.5rem .9rem;transition:.2s}
.page-link:hover{background:var(--blue-light);color:var(--blue);border-color:var(--blue-light)}
.page-item.active .page-link{background:var(--blue);border-color:var(--blue)}
.page-item.disabled .page-link{color:#ccc}

/* ===== 按钮通用 ===== */
.btn-primary{background:var(--blue);border-color:var(--blue)}
.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn-outline-primary{color:var(--blue);border-color:var(--blue)}
.btn-outline-primary:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.btn{font-weight:500;border-radius:6px;padding:.45rem 1.1rem;transition:.2s}

/* ===== 响应式 ===== */
@media(max-width:768px){
  .container{padding:0 12px}
  .section-title h3{font-size:1.4rem}
  .product-card .card-img-top{height:160px}
  .product-card .no-img{height:160px}
  .article-detail{padding:20px 0}
  .message-page{padding:20px 0}
  .message-page .form-card{padding:20px}
  .contact-page .map-wrap iframe{height:280px}
  .product-list-page .search-box{width:100%;margin-left:0}
  .product-list-page .search-box input{flex:1}
  footer{padding:30px 0 16px}
  footer h5{margin-top:16px}
  .carousel-inner img{max-height:220px}
  .carousel-caption h5{font-size:.95rem}
}
