/* ============================================
   坤肽生物科技 - 科技蓝主题 V2
   ============================================ */

/* MiSans 由 fonts.css 提供；此处兜底，避免未引入时字体丢失 */
:root {
    --font-family: "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f2ff;
    --secondary: #00b4d8;
    --accent: #ff6b35;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,102,204,0.15);
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --max-width: 1200px;
    --header-height: 56px;
    --topbar-height: 34px;
    --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family, "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; outline: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.topbar {
    height: var(--topbar-height);
    background: var(--primary-dark);
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: var(--topbar-height);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.8); margin: 0 10px; }
.topbar a:hover { color: #fff; }
.topbar-left a { border-right: 1px solid rgba(255,255,255,0.2); padding-right: 12px; }
.topbar-left a:last-child { border-right: none; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-right .divider { width: 1px; height: 14px; background: rgba(255,255,255,0.3); }

/* Header */
.header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header .container { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
    width: 42px; height: 42px;
    border-radius: 8px;
    object-fit: contain;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); }
.logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 2px; }

.search-box { flex: 1; max-width: 520px; margin: 0 auto; }
.search-form { display: flex; border: 2px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.search-select {
    width: 100px; border: none; border-right: 1px solid var(--border);
    padding: 0 10px; background: var(--bg-light); font-size: 12px; color: var(--text-secondary);
    appearance: none; cursor: pointer;
}
.search-input {
    flex: 1; border: none; padding: 0 14px; height: 36px; font-size: 13px;
    outline: none; background: #fff;
}
.search-btn {
    width: 72px; background: var(--primary); color: #fff; border: none;
    font-size: 13px; font-weight: 500; transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }
.search-tags { margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.search-tags a { color: var(--text-muted); margin-right: 10px; }
.search-tags a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 20px; flex-shrink: 0; }
.header-action {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    color: var(--text-secondary); font-size: 11px; position: relative;
}
.header-action:hover { color: var(--primary); }
.header-action .icon { font-size: 20px; }
.header-action .badge {
    position: absolute; top: -4px; right: -6px; background: var(--accent);
    color: #fff; font-size: 9px; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    position: sticky; top: 0; z-index: 100;
}
.main-nav .container { display: flex; align-items: stretch; }
.nav-all-categories {
    width: 200px; background: var(--primary-dark); padding: 0 14px;
    display: flex; align-items: center; gap: 8px; color: #fff;
    font-size: 14px; font-weight: 500; cursor: pointer;
}
.nav-all-categories:hover { background: rgba(0,0,0,0.15); }
.nav-all-categories .hamburger { display: flex; flex-direction: column; gap: 3px; }
.nav-all-categories .hamburger span { display: block; width: 14px; height: 2px; background: #fff; border-radius: 1px; }
.nav-links { display: flex; align-items: stretch; flex: 1; }
.nav-links a {
    color: rgba(255,255,255,0.9); padding: 0 18px; display: flex; align-items: center;
    font-size: 13px; font-weight: 500; white-space: nowrap; transition: var(--transition);
    height: var(--header-height);
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.15); color: #fff; }

/* Nav Dropdown (技术服务) */
.nav-item-dropdown { position: relative; display: flex; }
.nav-item-dropdown > a { gap: 5px; }
.nav-caret { font-size: 9px; opacity: 0.75; transition: var(--transition); }
.nav-item-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-submenu {
    position: absolute; top: 100%; left: 0; min-width: 148px;
    background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    padding: 6px; z-index: 300;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: var(--transition);
}
.nav-item-dropdown:hover .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .nav-submenu a {
    color: var(--text-primary); height: auto; padding: 9px 14px;
    border-radius: 6px; font-size: 13px; display: flex; white-space: nowrap;
}
.nav-links .nav-submenu a:hover, .nav-links .nav-submenu a.active {
    background: var(--primary-light); color: var(--primary);
}

/* Mega Menu */
.cat-mega-dropdown {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 200; border-top: 2px solid var(--primary);
}
.cat-mega-dropdown.active { display: block; }
.cat-mega-wrap { display: flex; min-height: 320px; }
.cat-mega-left {
    width: 200px; flex-shrink: 0; background: var(--bg-light);
    border-right: 1px solid var(--border-light); padding: 8px 0;
}
.cat-mega-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; font-size: 13px; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition); border-left: 3px solid transparent;
}
.cat-mega-item:hover, .cat-mega-item.active {
    background: #fff; color: var(--primary); font-weight: 600;
    border-left-color: var(--primary);
}
.cat-mega-item .cat-mega-icon { width: 22px; text-align: center; font-size: 18px; }
.cat-mega-item .cat-mega-arrow { margin-left: auto; font-size: 13px; opacity: 0.4; }
.cat-mega-right { flex: 1; padding: 20px 24px; }
.cat-mega-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-mega-panel.active { display: grid; }

/* Flyout */
.flyout-group-title {
    font-size: 13px; font-weight: 700; color: var(--primary);
    padding-bottom: 6px; margin-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
    display: flex; align-items: center; gap: 6px;
}
.flyout-group-title::before { content: ''; width: 3px; height: 12px; background: var(--primary); border-radius: 2px; }
.flyout-group { margin-bottom: 14px; }
.flyout-group a {
    display: block; padding: 4px 8px; font-size: 12px;
    color: var(--text-secondary); transition: var(--transition); border-radius: 3px;
}
.flyout-group a:hover { color: var(--primary); padding-left: 10px; background: var(--primary-light); }

/* Hero */
.hero-section { position: relative; }
.hero-banner { width: 100%; position: relative; overflow: hidden; min-height: 420px; }
.hero-slide {
    width: 100%; height: 420px; position: absolute; top: 0; left: 0;
    background-size: cover; background-position: center;
    background-repeat: no-repeat; background-color: #1a3a5c;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 40px;
    opacity: 0; z-index: 1; transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-content {
    background: rgba(0,0,0,0.35); border-radius: 12px; padding: 40px 60px;
    max-width: 700px;
}
.hero-slide h2 { font-size: 34px; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
.hero-slide p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.hero-slide .btn-hero {
    display: inline-block; padding: 12px 36px; background: var(--accent);
    color: #fff; border-radius: 24px; font-size: 14px; font-weight: 600;
    transition: var(--transition); box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.hero-slide .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); color: #fff; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(0,0,0,0.3); color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); text-decoration: none; line-height: 1;
}
.hero-arrow:hover { background: rgba(0,0,0,0.6); color: #fff; }
.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }
.hero-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.hero-dots span {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
    cursor: pointer; transition: var(--transition);
}
.hero-dots span.active { background: #fff; width: 24px; border-radius: 4px; }

/* Section */
.section { padding: 32px 0; }
.section-alt { background: #fff; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary);
}
.section-title {
    font-size: 20px; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
}
.section-title::before {
    content: ''; width: 4px; height: 20px; background: var(--primary); border-radius: 2px;
}
.section-more { color: var(--text-muted); font-size: 13px; }
.section-more:hover { color: var(--primary); }

/* Service Grid */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 14px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--border-light); transition: var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.service-icon {
    width: 56px; height: 56px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 24px;
}
.service-card:hover .service-icon { transform: scale(1.08); }
.service-icon.bg-blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: var(--primary); }
.service-icon.bg-teal { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); color: var(--secondary); }
.service-icon.bg-green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: var(--success); }
.service-icon.bg-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #9c27b0; }
.service-icon.bg-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: var(--accent); }
.service-icon.bg-red { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #e91e63; }
.service-icon.bg-indigo { background: linear-gradient(135deg, #e8eaf6, #c5cae9); color: #3f51b5; }
.service-icon.bg-amber { background: linear-gradient(135deg, #fff8e1, #ffecb3); color: #ff8f00; }
.service-card h4 {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    text-align: center; width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.service-card p {
    font-size: 12px; color: var(--text-muted); text-align: center;
    width: 100%; line-height: 1.5; min-height: 36px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; word-break: break-all;
}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-light);
    overflow: hidden; transition: var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-card-img {
    height: 180px; background: var(--bg-light); display: flex;
    align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.product-card-img .placeholder-img {
    width: 100px; height: 100px; background: var(--border-light);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 11px;
}
.product-card-img .tag {
    position: absolute; top: 6px; left: 6px; padding: 2px 8px;
    border-radius: 3px; font-size: 10px; font-weight: 600; color: #fff;
}
.product-card-img .tag.hot { background: var(--accent); }
.product-card-img .tag.new { background: var(--primary); }
.product-card-img .tag.sale { background: var(--danger); }
.product-card-body { padding: 12px; }
.product-card-body h3 {
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; min-height: 36px;
}
.product-card-body .code { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.product-card-body .price-row { display: flex; align-items: baseline; justify-content: space-between; }
.product-card-body .price { font-size: 16px; font-weight: 700; color: var(--accent); }
.product-card-body .price .unit { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.product-card-body .btn-sm {
    padding: 3px 10px; border-radius: var(--radius); font-size: 11px;
    border: 1px solid var(--primary); color: var(--primary); background: #fff;
    transition: var(--transition);
}
.product-card-body .btn-sm:hover { background: var(--primary); color: #fff; }

/* Promo */
.promo-list { display: flex; flex-direction: column; gap: 0; }
.promo-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #fff; border-bottom: 1px solid var(--border-light);
    transition: var(--transition); border-radius: var(--radius);
    margin-bottom: 6px; border: 1px solid var(--border-light);
}
.promo-item:hover { background: var(--primary-light); border-color: var(--primary); }
.promo-date {
    flex-shrink: 0; width: 52px; text-align: center; padding: 6px;
    background: var(--primary); color: #fff; border-radius: var(--radius);
}
.promo-date .day { font-size: 18px; font-weight: 700; line-height: 1; }
.promo-date .month { font-size: 10px; margin-top: 2px; }
.promo-info { flex: 1; }
.promo-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.promo-info p { font-size: 11px; color: var(--text-muted); }
.promo-tag { padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.promo-tag.active { background: var(--primary-light); color: var(--primary); }
.promo-tag.ended { background: var(--bg-gray); color: var(--text-muted); }

/* Two Column */
.two-col { display: flex; gap: 20px; }
.two-col .col-left { width: 220px; flex-shrink: 0; }
.two-col .col-right { flex: 1; min-width: 0; }

/* Sidebar */
.sidebar { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.sidebar-title {
    padding: 12px 14px; background: var(--primary); color: #fff;
    font-size: 14px; font-weight: 600;
}
.sidebar-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; font-size: 12px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.sidebar-list a:hover, .sidebar-list a.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.sidebar-list a .count { font-size: 10px; color: var(--text-muted); background: var(--bg-gray); padding: 1px 5px; border-radius: 8px; }

/* Breadcrumb */
.breadcrumb { padding: 10px 0; font-size: 12px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 5px; }

/* Product Detail */
.product-detail { display: flex; gap: 28px; padding: 20px 0; }
.product-detail-gallery { width: 380px; flex-shrink: 0; }
.product-detail-gallery .main-img {
    width: 380px; height: 380px; background: var(--bg-light);
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 10px;
}
.product-detail-gallery .thumb-list { display: flex; gap: 6px; }
.product-detail-gallery .thumb {
    width: 56px; height: 56px; border: 2px solid var(--border);
    border-radius: var(--radius); background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.product-detail-gallery .thumb:hover, .product-detail-gallery .thumb.active { border-color: var(--primary); }
.product-detail-info { flex: 1; }
.product-detail-info h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.product-detail-info .subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.detail-price-box {
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    padding: 14px 18px; border-radius: var(--radius-lg); margin-bottom: 16px;
}
.detail-price-box .price { font-size: 26px; font-weight: 700; color: var(--accent); }
.detail-price-box .price .unit { font-size: 13px; font-weight: 400; }
.detail-price-box .original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.detail-attrs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.detail-attr { display: flex; align-items: flex-start; font-size: 12px; }
.detail-attr .label { width: 70px; color: var(--text-muted); flex-shrink: 0; }
.detail-attr .value { color: var(--text-primary); flex: 1; }
.detail-attr .specs { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-attr .spec-btn {
    padding: 3px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 12px; cursor: pointer; transition: var(--transition); background: #fff;
}
.detail-attr .spec-btn:hover, .detail-attr .spec-btn.active {
    border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.detail-qty { display: flex; align-items: center; }
.detail-qty button {
    width: 28px; height: 28px; border: 1px solid var(--border); background: var(--bg-light);
    font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.detail-qty input {
    width: 44px; height: 28px; border: 1px solid var(--border); border-left: none; border-right: none;
    text-align: center; font-size: 13px; outline: none;
}
.detail-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-cart {
    padding: 10px 36px; background: var(--accent); color: #fff;
    border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: var(--transition);
}
.btn-cart:hover { background: #e55a25; color: #fff; }
.btn-quote {
    padding: 10px 36px; background: #fff; color: var(--primary);
    border: 2px solid var(--primary); border-radius: var(--radius);
    font-size: 14px; font-weight: 600; transition: var(--transition);
}
.btn-quote:hover { background: var(--primary-light); color: var(--primary); }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
    padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
    background: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: var(--transition); cursor: pointer;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Filter Bar */
.filter-bar {
    display: flex; align-items: center; gap: 14px; padding: 10px 14px;
    background: #fff; border-radius: var(--radius); margin-bottom: 14px;
    border: 1px solid var(--border-light); flex-wrap: wrap;
}
.filter-bar label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.filter-bar select, .filter-bar input {
    padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 12px; outline: none; background: #fff;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

/* Service Hero Cards */
.service-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-hero-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light); transition: var(--transition);
}
.service-hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-hero-card .card-img {
    height: 160px; display: flex; align-items: center; justify-content: center;
    font-size: 42px; color: #fff;
}
.service-hero-card .card-img.bg-1 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.service-hero-card .card-img.bg-2 { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.service-hero-card .card-img.bg-3 { background: linear-gradient(135deg, #9c27b0, #ce93d8); }
.service-hero-card .card-img.bg-4 { background: linear-gradient(135deg, #e65100, #ff9800); }
.service-hero-card .card-img.bg-5 { background: linear-gradient(135deg, #00695c, #26a69a); }
.service-hero-card .card-img.bg-6 { background: linear-gradient(135deg, #283593, #5c6bc0); }
.service-hero-card .card-body { padding: 16px; }
.service-hero-card .card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.service-hero-card .card-body p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-hero-card .card-body .btn-link { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 12px; font-weight: 500; }
.service-hero-card .card-body .btn-link:hover { text-decoration: underline; }

/* Service Category Tabs */
.sevice-tab-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.sevice-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 22px; border-radius: 999px;
    background: var(--bg-white); border: 1px solid var(--border);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition);
}
.sevice-tab:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.sevice-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
.sevice-tab .tab-count {
    min-width: 22px; height: 18px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-gray); border-radius: 999px;
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    transition: var(--transition);
}
.sevice-tab.active .tab-count { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* Section Sub Text */
.section-header .section-sub { font-size: 13px; color: var(--text-muted); }

/* Service Grid 6 Columns (compact) */
.service-hero-grid.grid-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.grid-6 .service-hero-card { position: relative; }
.grid-6 .service-hero-card .card-img { height: 110px; font-size: 34px; }
.grid-6 .service-hero-card .card-body { padding: 12px; }
.grid-6 .service-hero-card .card-body h3 {
    font-size: 13px; line-height: 1.4; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 36px;
}
.grid-6 .service-hero-card .card-body p { min-height: 36px; }
.grid-6 .service-hero-card .card-body .card-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; gap: 6px;
}
.grid-6 .service-hero-card .card-body .cate-tag {
    max-width: 60%; padding: 1px 8px; border-radius: 999px;
    background: var(--primary-light); color: var(--primary);
    font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-6 .service-hero-card .card-body .btn-link { margin-top: 0; font-size: 11px; white-space: nowrap; }

/* Core Badge */
.badge-core {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 2px 9px; border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ff9f43);
    color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* Core Entry Banner (sevice index) */
.core-entry {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 28px; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--secondary) 100%);
    color: #fff; box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.core-entry::after {
    content: ""; position: absolute; right: -40px; top: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.core-entry-info { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.core-entry-icon { font-size: 34px; }
.core-entry-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.core-entry-text p { font-size: 13px; opacity: 0.85; }
.core-entry-btn {
    position: relative; z-index: 1; flex-shrink: 0;
    padding: 10px 22px; border-radius: 999px;
    background: #fff; color: var(--primary);
    font-size: 13px; font-weight: 600;
    transition: var(--transition); white-space: nowrap;
}
.core-entry-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }

/* Core Page Hero */
.core-hero .core-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.core-hero-tag {
    display: inline-block; margin-bottom: 8px; padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
}
.core-hero-back {
    flex-shrink: 0; padding: 9px 20px; border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.core-hero-back:hover { background: #fff; color: var(--primary); }

/* Empty State */
.sevice-empty {
    text-align: center; padding: 64px 20px;
    background: var(--bg-white); border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.sevice-empty-icon { font-size: 44px; margin-bottom: 12px; }
.sevice-empty p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.sevice-empty-btn {
    display: inline-block; padding: 9px 24px; border-radius: 999px;
    background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 500; transition: var(--transition);
}
.sevice-empty-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }


/* Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.solution-card {
    display: flex; background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); overflow: hidden; transition: var(--transition);
}
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.solution-card .sol-img {
    width: 180px; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; font-size: 42px; color: #fff;
}
.solution-card .sol-img.bg-1 { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.solution-card .sol-img.bg-2 { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.solution-card .sol-img.bg-3 { background: linear-gradient(135deg, #e65100, #ff9800); }
.solution-card .sol-img.bg-4 { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.solution-card .sol-body { padding: 18px; flex: 1; }
.solution-card .sol-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.solution-card .sol-body p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.solution-card .sol-body .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.solution-card .sol-body .tag-item {
    padding: 2px 6px; background: var(--bg-gray); border-radius: 3px;
    font-size: 10px; color: var(--text-muted);
}

/* About */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    padding: 48px 0; color: #fff; text-align: center;
}
.about-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.about-hero p { font-size: 15px; opacity: 0.85; max-width: 560px; margin: 0 auto; }
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin: -32px auto 0; position: relative; z-index: 1;
}
.stat-card {
    background: #fff; border-radius: var(--radius-lg); padding: 24px 16px;
    text-align: center; box-shadow: var(--shadow-md);
}
.stat-card .number { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Partner Marquee */
.partner-section { padding-bottom: 28px; }
.partner-rows { display: flex; flex-direction: column; gap: 12px; }
.partner-marquee {
    position: relative; overflow: hidden;
    padding: 2px 0;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.partner-track {
    display: flex; align-items: center; width: max-content;
    animation: partner-scroll 40s linear infinite;
}
.partner-marquee:hover .partner-track { animation-play-state: paused; }
/* 5行不同速度：1快 → 5慢；偶数行反向 */
.partner-row-1 .partner-track { animation-duration: 28s; }
.partner-row-2 .partner-track { animation-duration: 42s; animation-direction: reverse; }
.partner-row-3 .partner-track { animation-duration: 32s; }
.partner-row-4 .partner-track { animation-duration: 48s; animation-direction: reverse; }
.partner-row-5 .partner-track { animation-duration: 36s; }
.partner-item {
    flex-shrink: 0;
    width: 148px; height: 64px; margin-right: 16px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 8px 12px;
    transition: var(--transition);
}
.partner-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.12);
    transform: translateY(-2px);
}
.partner-item a,
.partner-item > div {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.partner-item img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; display: block;
}
.partner-text {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    text-align: center; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
@keyframes partner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; }
    .partner-marquee { overflow-x: auto; }
}
@media (max-width: 768px) {
    .partner-item { width: 120px; height: 52px; margin-right: 12px; }
    .partner-rows { gap: 8px; }
}
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; }
.about-text h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.about-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 10px; }
.about-img {
    background: var(--bg-light); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    min-height: 280px; color: var(--text-muted); font-size: 13px;
    border: 2px dashed var(--border);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; }
.contact-info-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
    display: flex; gap: 14px; padding: 16px; background: #fff;
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.contact-card .c-icon {
    width: 44px; height: 44px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    background: var(--primary-light); color: var(--primary); flex-shrink: 0;
}
.contact-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.contact-card p { font-size: 12px; color: var(--text-secondary); }
.contact-form {
    background: #fff; padding: 24px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}
.contact-form h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.contact-highlight { font-size: 18px; font-weight: 700; color: var(--success); margin-bottom: 4px; }
.contact-bold { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 13px; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,102,204,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
    padding: 10px 36px; background: var(--primary); color: #fff;
    border-radius: var(--radius); font-size: 14px; font-weight: 600;
    transition: var(--transition); border: none;
}
.btn-submit:hover { background: var(--primary-dark); color: #fff; }

/* Footer */
.footer {
    background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 32px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 32px;
    padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer p { font-size: 12px; line-height: 1.7; }
.footer-links a {
    display: block; font-size: 12px; color: rgba(255,255,255,0.5);
    padding: 2px 0; transition: var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 12px; margin-bottom: 4px; }
.footer-contact .phone { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-qr { display: flex; gap: 12px; margin-top: 14px; }
.footer-qr-item {
    width: 72px; height: 72px; background: rgba(255,255,255,0.08);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; font-size: 9px; color: rgba(255,255,255,0.3);
    flex-direction: column; gap: 3px;
}
.footer-bottom {
    padding: 14px 0; text-align: center; font-size: 11px;
    color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: #fff; }

/* Service Float（综合客服）— 联系方式常显；悬停预览、点击固定可复制；仅回顶随滚动 */
.service-float {
    position: fixed; right: 24px; bottom: 40px; z-index: 999;
    display: flex; flex-direction: column; gap: 12px;
    pointer-events: none;
}
.service-float-item {
    position: relative;
    pointer-events: auto;
    width: 64px; height: 64px;
    background: #fff; border: 1px solid rgba(15, 40, 80, 0.08);
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; cursor: pointer; outline: none;
    box-shadow: 0 6px 18px rgba(15, 40, 80, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, opacity 0.28s ease, visibility 0.28s ease;
    text-decoration: none; color: var(--text-secondary);
    user-select: none;
}
.service-float-item:hover,
.service-float-item.is-open,
.service-float-item:focus-visible {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-color: transparent; color: #fff;
    transform: translateX(-6px);
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.38);
}
.service-float-item .sf-icon { font-size: 20px; line-height: 1; }
.service-float-item .sf-label {
    font-size: 11px; font-weight: 700; line-height: 1;
    letter-spacing: 0.04em;
}

/* 回到顶部：仅滚动后显示 */
.service-float-top {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-color: transparent; color: #fff;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    margin-top: 6px;
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
}
.service-float-top.visible {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.service-float-top:hover,
.service-float-top.is-open {
    background: var(--primary-dark);
    transform: translateX(-6px);
}

/* 展开面板：悬停或点击固定（is-open），可移入复制 */
.sf-panel {
    position: absolute; right: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) translateX(8px);
    min-width: 260px; max-width: 300px;
    background: #fff; border: 1px solid rgba(15, 40, 80, 0.08);
    border-radius: 16px; padding: 18px 20px;
    box-shadow: 0 16px 40px rgba(15, 40, 80, 0.18);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    color: var(--text-primary);
    text-align: left;
    z-index: 3;
}
/* 按钮与面板之间的空隙区域，保证鼠标能移过去 */
.sf-panel::before {
    content: "";
    position: absolute; right: -14px; top: 0; bottom: 0; width: 14px;
}
.sf-panel::after {
    content: "";
    position: absolute; right: -6px; top: 50%;
    width: 12px; height: 12px;
    background: #fff; border-right: 1px solid rgba(15, 40, 80, 0.08);
    border-top: 1px solid rgba(15, 40, 80, 0.08);
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}
.service-float-item:hover .sf-panel,
.service-float-item.is-open .sf-panel,
.service-float-item:focus-within .sf-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.sf-panel-title {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.02em;
}
/* 多行联系方式：可选中复制 */
.sf-lines {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 12px;
}
.sf-line {
    display: block;
    font-size: 15px; font-weight: 600; line-height: 1.45;
    color: var(--primary); text-decoration: none;
    word-break: break-all;
    padding: 8px 12px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 204, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}
a.sf-line:hover {
    background: rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.25);
    text-decoration: none;
}
.sf-panel-tip {
    font-size: 12px; color: var(--text-muted); line-height: 1.7;
    margin-top: 4px;
}
.sf-qr {
    margin: 4px 0 12px;
    display: flex; justify-content: center;
}
.sf-qr-placeholder {
    width: 160px; height: 160px;
    background: linear-gradient(145deg, #f7fafc, #eef3f8);
    border: 1px dashed #a8bcd0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 13px; color: #6d849c;
    line-height: 1.7;
}
.sf-qr img {
    width: 160px; height: 160px; object-fit: contain;
    border-radius: 12px; display: block;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .service-float { right: 12px; bottom: 80px; gap: 10px; }
    .service-float-item { width: 52px; height: 52px; border-radius: 14px; }
    .service-float-item .sf-icon { font-size: 17px; }
    .service-float-item .sf-label { font-size: 10px; }
    .sf-panel { min-width: 220px; max-width: 250px; padding: 14px 16px; border-radius: 14px; }
    .sf-panel::before, .sf-panel::after { display: none; }
    .sf-line { font-size: 14px; padding: 7px 10px; }
    .sf-qr-placeholder, .sf-qr img { width: 132px; height: 132px; }
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    padding: 32px 0; color: #fff;
}
.page-banner h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.page-banner p { font-size: 13px; opacity: 0.8; }

/* News */
.news-layout { display: flex; gap: 20px; padding: 20px 0; }
.news-main { flex: 1; min-width: 0; }
.news-sidebar { width: 260px; flex-shrink: 0; }
.news-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.news-tab {
    padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
    background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
    cursor: pointer; transition: var(--transition);
}
.news-tab:hover { color: var(--primary); }
.news-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
    display: flex; gap: 16px; padding: 16px; background: #fff;
    border-radius: var(--radius-lg); border: 1px solid var(--border-light); transition: var(--transition);
}
.news-item:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); transform: translateY(-2px); }
.news-item-img {
    width: 200px; height: 130px; flex-shrink: 0; background: var(--bg-light);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 11px;
}
.news-item-body { flex: 1; display: flex; flex-direction: column; }
.news-item-body h3 {
    font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4;
}
.news-item-body h3:hover { color: var(--primary); }
.news-item-body .desc {
    font-size: 12px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.news-item-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.news-item-meta .tag { padding: 1px 6px; background: var(--primary-light); color: var(--primary); border-radius: 3px; font-size: 10px; font-weight: 500; }
.news-top-list { margin-bottom: 16px; }
.news-top-item {
    display: flex; align-items: flex-start; gap: 8px; padding: 8px 0;
    border-bottom: 1px solid var(--border-light); font-size: 12px;
}
.news-top-item .rank {
    width: 20px; height: 20px; border-radius: 3px; display: flex;
    align-items: center; justify-content: center; font-size: 10px;
    font-weight: 700; flex-shrink: 0; background: var(--bg-gray); color: var(--text-muted);
}
.news-top-item .rank.top { background: var(--accent); color: #fff; }
.news-top-item .title { flex: 1; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-top-item .title:hover { color: var(--primary); }
.news-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.news-pagination a, .news-pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: 8px;
    background: #fff; font-size: 13px; color: var(--text-secondary); transition: var(--transition);
}
.news-pagination a:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 2px 8px rgba(0, 102, 204, 0.12); }
.news-pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}

/* Service Pagination */
.sevice-pagination {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin-top: 28px; padding-top: 8px;
}
.sevice-pagination .page-btn,
.sevice-pagination .page-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 8px;
    background: #fff; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); transition: var(--transition);
    text-decoration: none;
}
.sevice-pagination .page-btn:hover,
.sevice-pagination .page-num:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.12);
}
.sevice-pagination .page-btn.disabled {
    color: #c0c4cc; background: var(--bg-gray); cursor: not-allowed;
    border-color: var(--border-light); box-shadow: none;
}
.sevice-pagination .page-num.current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28); cursor: default;
}
.sevice-pagination .page-num.current:hover {
    color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}
.sevice-pagination .page-ellipsis {
    min-width: 24px; text-align: center;
    color: var(--text-muted); font-size: 13px; letter-spacing: 2px;
}
.sevice-pagination .page-info {
    margin-left: 8px; font-size: 12px; color: var(--text-muted);
    white-space: nowrap;
}

/* Core page more tip */
.core-more-tip {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 24px; padding: 16px 22px;
    background: var(--bg-gray); border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.core-more-tip p { font-size: 13px; color: var(--text-secondary); }
.core-more-btn {
    flex-shrink: 0; padding: 9px 20px; border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-size: 13px; font-weight: 600;
    transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.core-more-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3); }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 24px 0; }
.article-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.article-header h1 { font-size: 24px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-muted); }
.article-meta .tag { padding: 2px 8px; background: var(--primary-light); color: var(--primary); border-radius: 3px; font-size: 11px; }
.article-cover {
    width: 100%; height: 360px; background: var(--bg-light); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 13px; margin-bottom: 20px;
}
.article-content { font-size: 14px; line-height: 1.8; color: var(--text-primary); }
.article-content h2 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; padding-left: 10px; border-left: 3px solid var(--primary); }
.article-content h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
.article-content p { margin-bottom: 12px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 12px; }
.article-content li { margin-bottom: 4px; }
.article-content blockquote {
    padding: 14px 18px; background: var(--bg-light); border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0; margin: 14px 0;
    font-size: 13px; color: var(--text-secondary);
}
.article-nav {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border-light);
}
.article-nav a {
    flex: 1; padding: 12px 14px; background: var(--bg-light);
    border-radius: var(--radius); font-size: 12px; color: var(--text-secondary); transition: var(--transition);
}
.article-nav a:hover { background: var(--primary-light); color: var(--primary); }
.article-nav .label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.article-nav .next { text-align: right; }

/* Service Detail */
.svc-detail-hero { padding: 40px 0; color: #fff; text-align: center; }
.svc-detail-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.svc-detail-hero p { font-size: 14px; opacity: 0.85; max-width: 560px; margin: 0 auto; }
.svc-detail-content { display: flex; gap: 28px; padding: 24px 0; }
.svc-detail-main { flex: 1; min-width: 0; }
.svc-detail-sidebar { width: 240px; flex-shrink: 0; }
.svc-section { margin-bottom: 28px; }
.svc-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--primary); }
.svc-section p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.svc-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.svc-feature {
    display: flex; gap: 10px; padding: 14px; background: var(--bg-light);
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.svc-feature .feat-icon {
    width: 40px; height: 40px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary);
}
.svc-feature h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.svc-feature p { font-size: 11px; color: var(--text-muted); margin: 0; }
.svc-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.svc-table th, .svc-table td { padding: 8px 12px; border: 1px solid var(--border-light); font-size: 12px; text-align: left; }
.svc-table th { background: var(--bg-light); font-weight: 500; color: var(--text-secondary); width: 130px; }
.svc-process { display: flex; gap: 12px; margin-bottom: 20px; }
.svc-process-step {
    flex: 1; text-align: center; padding: 16px 10px; background: #fff;
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.svc-process-step .step-num {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; margin: 0 auto 8px;
}
.svc-process-step h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.svc-process-step p { font-size: 11px; color: var(--text-muted); }
.svc-cta {
    background: linear-gradient(135deg, var(--primary-light), #d0e8ff);
    padding: 24px; border-radius: var(--radius-lg); text-align: center; margin-top: 20px;
}
.svc-cta h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.svc-cta p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.svc-cta .btn-cart { display: inline-block; }
.svc-related { margin-top: 24px; }
.svc-related h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.svc-related-list { display: flex; flex-direction: column; gap: 0; }
.svc-related-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    font-size: 12px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.svc-related-item:hover { background: var(--primary-light); color: var(--primary); }
.svc-related-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* Login/Register */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    padding: 20px;
}
.login-card {
    background: #fff; border-radius: var(--radius-xl); padding: 36px;
    width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.login-card .logo { justify-content: center; margin-bottom: 28px; }
.login-card .logo .logo-text { font-size: 22px; }
.login-tabs { display: flex; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.login-tab {
    flex: 1; padding: 10px; text-align: center; font-size: 15px; font-weight: 600;
    color: var(--text-muted); background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: var(--transition);
}
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.login-form { display: none; }
.login-form.active { display: block; }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-group label { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.login-form input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; outline: none; transition: var(--transition);
}
.login-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,102,204,0.1); }
.login-form .form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; }
.login-form .form-options a { color: var(--primary); }
.login-form .btn-submit { width: 100%; }
.login-form .divider-text { text-align: center; margin: 20px 0; position: relative; font-size: 12px; color: var(--text-muted); }
.login-form .divider-text::before, .login-form .divider-text::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.login-form .divider-text::before { left: 0; }
.login-form .divider-text::after { right: 0; }
.social-login { display: flex; gap: 12px; justify-content: center; }
.social-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    background: #fff; transition: var(--transition);
}
.social-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.login-footer { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.login-footer a { color: var(--primary); }

/* Certification Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cert-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cert-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.cert-icon.cert-green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.cert-icon.cert-blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.cert-icon.cert-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.cert-icon.cert-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.cert-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.cert-card p { font-size: 13px; color: var(--text-secondary); }

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
    border-left: 3px solid var(--success);
    position: relative;
}
.timeline-item {
    margin-bottom: 32px;
    position: relative;
    padding-left: 24px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -33px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border-radius: 50%;
    border: 3px solid #e8f5e9;
}
.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}
.timeline-desc {
    font-size: 14px;
    color: var(--text-primary);
}

/* Process Steps */
.process-steps {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.process-step {
    flex: 1;
    text-align: center;
}
.process-step .step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}
.process-step .step-circle.bg-primary { background: var(--primary); }
.process-step .step-circle.bg-secondary { background: var(--secondary); }
.process-step .step-circle.bg-accent { background: var(--accent); }
.process-step .step-circle.bg-purple { background: #9c27b0; }
.process-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--text-secondary); }
.process-arrow {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    color: var(--primary);
    font-size: 24px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-danger { color: var(--danger); }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }

/* Responsive */
@media (max-width: 1240px) {
    .container { padding: 0 16px; }
    .cat-mega-panel { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 992px) {
    .cat-mega-dropdown { display: none !important; }
    .nav-all-categories { display: none; }
    .hero-banner { min-height: 340px; }
    .hero-slide { height: 340px; }
    .hero-slide h2 { font-size: 26px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .service-hero-grid.grid-6 { grid-template-columns: repeat(3, 1fr); }
    .core-entry { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .news-sidebar, .svc-detail-sidebar { display: none; }
    .svc-features { grid-template-columns: 1fr; }
    .svc-process { flex-wrap: wrap; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { flex-wrap: wrap; }
    .process-arrow { display: none; }
    .process-step { flex: 1 1 45%; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .header .container { flex-wrap: wrap; gap: 10px; }
    .search-box { max-width: 100%; order: 3; width: 100%; }
    .hero-banner { min-height: 260px; }
    .hero-slide { height: 260px; }
    .hero-slide h2 { font-size: 20px; }
    .hero-slide p { font-size: 13px; }
    .hero-slide-content { padding: 24px 32px; }
    .hero-arrow { width: 36px; height: 36px; font-size: 22px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .two-col { flex-direction: column; }
    .product-detail { flex-direction: column; }
    .product-detail-gallery { width: 100%; }
    .product-detail-gallery .main-img { width: 100%; height: 300px; }
    .solution-grid, .service-hero-grid { grid-template-columns: 1fr; }
    .service-hero-grid.grid-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .core-hero .core-hero-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .core-entry { padding: 16px 18px; }
    .core-entry-icon { font-size: 26px; }
    .sevice-tab { padding: 7px 16px; font-size: 13px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .about-content, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links a { padding: 0 10px; font-size: 12px; }
    .news-item { flex-direction: column; }
    .news-item-img { width: 100%; height: 160px; }
    .article-cover { height: 200px; }
    .article-header h1 { font-size: 18px; }
    .svc-detail-hero h1 { font-size: 22px; }
    .svc-process-step { flex: 1 1 45%; }
    .core-more-tip { flex-direction: column; align-items: flex-start; text-align: left; }
    .sevice-pagination .page-info { width: 100%; text-align: center; margin-left: 0; margin-top: 4px; }
    .sevice-pagination .page-btn,
    .sevice-pagination .page-num { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; }
}
