/* === Icon Font === */
@font-face {
    font-family: 'iconfont';
    src: url('../fonts/iconfont.woff2?t=1631608872177') format('woff2'),
    url('../fonts/iconfont.woff?t=1631608872177') format('woff'),
    url('../fonts/iconfont.ttf?t=1631608872177') format('truetype');
}
.ali-icon {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 全局 === */
body {
    font: 14px/1.6 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
    color: #333;
    background: #f5f7fa;
}

/* === Header & Nav === */
.header {
    background: linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    position: sticky;
    top: 0;
    z-index: 999;
}
.logo img { height: 40px; border-radius: 8px; }
.navbar-brand { color: #fff!important; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.navbar .nav-link { color: rgba(255,255,255,.85)!important; font-size: 14px; padding: 8px 16px!important; border-radius: 6px; transition: all .3s; }
.navbar .nav-link:hover,.navbar .nav-link.active { background: rgba(255,255,255,.15); color: #fff!important; }
.navbar .form-control { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.navbar .form-control::placeholder { color: rgba(255,255,255,.5); }
.navbar .btn-secondary { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.2); color: #fff; }
.navbar .btn-secondary:hover { background: rgba(255,255,255,.3); }

/* === Announcement === */
.notice { margin-top: 20px; }
.notice .card { border: none; border-radius: 12px; background: linear-gradient(135deg,#fff9e6,#fff3cd); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.notice .card h4 { color: #856404; font-size: 16px; }
.notice .lead { color: #8a6d3b; font-size: 14px; line-height: 1.8; }

/* === Category Section === */
.category { padding: 30px 0 20px; }
.category h3 { font-weight: 700; color: #1a1a2e; font-size: 22px; }
.separator { display: block; width: 50px; height: 3px; margin: 12px auto; background: linear-gradient(90deg,#4a6cf7,#00d2ff); border-radius: 2px; border: none; }
.category .lead { color: #666; font-size: 14px; }
.category-menus .nav-pills { flex-wrap: wrap; gap: 8px; }
.category-menus .btn-outline-secondary { border: 2px solid #e0e0e0; color: #555; border-radius: 20px; padding: 6px 18px; font-size: 13px; transition: all .3s; }
.category-menus .btn-outline-secondary.active,.category-menus .btn-outline-secondary:hover { background: linear-gradient(135deg,#4a6cf7,#00d2ff); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(74,108,247,.3); }

/* === Product Cards (首页商品列表) === */
.goods { padding-bottom: 40px; }
.goods .card { border: none; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: all .4s cubic-bezier(.25,.8,.25,1); overflow: visible; }
.goods .card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.15); }
.goods .card-img-top { height: 160px; object-fit: cover; border-radius: 14px 14px 0 0; }
.card-body { padding: 14px; }
.card-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.4; }
.card-title a { color: #333; }
.badge { font-size: 11px; padding: 4px 10px; border-radius: 0 6px 6px 0; font-weight: 500; }
.bg-success { background: linear-gradient(135deg,#11998e,#38ef7d)!important; }
.btn-outline-success { color: #11998e; border-color: #11998e; border-radius: 20px; padding: 4px 14px; font-size: 13px; transition: all .3s; }
.btn-outline-success:hover { background: #11998e; border-color: #11998e; color: #fff; }
.btn-primary { background: linear-gradient(135deg,#4a6cf7,#6c8cff); border: none; border-radius: 20px; padding: 6px 18px; font-size: 13px; font-weight: 500; transition: all .3s; }
.btn-primary:hover { background: linear-gradient(135deg,#3651d5,#5a7af0); box-shadow: 0 4px 15px rgba(74,108,247,.4); transform: translateY(-1px); }
.text-muted { color: #999!important; font-size: 12px; }

/* === 商品详情页 === */
.good-card .card { overflow: visible !important; }
.good-card .col-md-4 { position: relative; }
.good-card .card-img-top {
    height: auto !important;
    width: 100%;
    object-fit: contain;
    padding: 20px !important;
    border-radius: 14px 0 0 14px;
}
@media (max-width: 768px) {
    .good-card .card-img-top { border-radius: 14px 14px 0 0; }
}
.badge.position-absolute { position: absolute !important; display: inline-block; white-space: nowrap; z-index: 2; }

/* === Buy Form === */
.buy-form { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.buy-form h3 { font-weight: 700; color: #1a1a2e; }
.buy-form .btn-primary { width: 100%; padding: 12px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.buy-form label { font-weight: 600; color: #555; font-size: 14px; }
.buy-form .form-control { border: 2px solid #e8e8e8; border-radius: 10px; padding: 10px 14px; transition: all .3s; }
.buy-form .form-control:focus { border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,.15); }
.card-header { background: #f8f9fc; border-bottom: 1px solid #eee; padding: 16px 20px; }
.card-header h5 { font-weight: 700; color: #1a1a2e; font-size: 16px; margin: 0; }
.card .card-body { padding: 20px; color: #555; line-height: 1.8; }
.card .card-body ul li { margin-bottom: 8px; padding-left: 16px; position: relative; }
.card .card-body ul li:before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: linear-gradient(135deg,#4a6cf7,#00d2ff); border-radius: 50%; }

/* === Footer === */
.footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 20px 0; margin-top: 40px; font-size: 13px; }
.footer .author { font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer .custom { color: rgba(255,255,255,.5); font-size: 12px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }

/* === Order Search === */
.order-search { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 24px rgba(0,0,0,.08); margin: 30px 0; }
