/* ===== GPU Portal - Main Stylesheet ===== */

:root {
    --primary: #1565d8;
    --primary-light: #3b82f6;
    --primary-dark: #0d47a1;
    --accent: #2196f3;
    --accent-light: #64b5f6;
    --accent-dark: #1976d2;
    --dark: #0a1628;
    --dark-2: #0f2042;
    --gray-100: #f0f4f8;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #2196f3 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #0d3b7a 60%, #1565d8 100%);
    --gradient-accent: linear-gradient(135deg, #1565d8 0%, #42a5f5 100%);
    --gradient-hero: linear-gradient(160deg, #040d1f 0%, #0d3b7a 40%, #1565d8 80%, #42a5f5 100%);
    --shadow-sm: 0 1px 4px rgba(13,71,161,0.06);
    --shadow-md: 0 4px 16px rgba(13,71,161,0.08);
    --shadow-lg: 0 8px 32px rgba(13,71,161,0.12);
    --radius: 10px;
    --radius-lg: 16px;
}

/* ===== Base Reset ===== */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--accent-light); }
.top-bar .bi { font-size: 14px; }

/* ===== Announcement ===== */
.announcement-bar {
    background: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.announcement-bar .btn-close {
    filter: brightness(0) invert(1);
    font-size: 10px;
}

/* ===== Header / Navbar ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-header .navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}
.site-header .navbar-brand span { color: var(--accent); }
.site-header .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    padding: 10px 16px !important;
    transition: color 0.2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--accent); }
.header-cta .btn {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 6px;
}

/* ===== Hero Banner ===== */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 540px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(33,150,243,0.15) 0%, transparent 70%),
                radial-gradient(ellipse 50% 80% at 20% 80%, rgba(21,101,216,0.1) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}
.hero-section .carousel-item {
    min-height: 540px;
}
.hero-section .carousel-item > .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 540px;
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,0.35);
    z-index: 1;
}
.hero-section .hero-img-placeholder {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.4;
}
.hero-section .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-section .carousel-caption {
    position: static;
    text-align: left;
    padding: 80px 0;
}
.hero-section .hero-content {
    max-width: 640px;
}
.hero-section h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero-section p {
    font-size: 19px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-section .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
.hero-section .hero-action {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(4,13,31,0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.hero-section .hero-action:hover {
    color: var(--white);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 14px 28px rgba(4,13,31,0.2);
}
.hero-section .hero-action-primary {
    background: linear-gradient(135deg, rgba(66,165,245,0.26) 0%, rgba(21,101,216,0.46) 100%);
}
.hero-section .hero-action-secondary {
    background: rgba(255,255,255,0.08);
}
.hero-section .hero-action-label {
    line-height: 1;
}
.hero-section .hero-action i {
    font-size: 16px;
    line-height: 1;
}
.hero-section .carousel-indicators {
    z-index: 4;
}

/* ===== Section Common ===== */
.section { padding: 70px 0; }
.section-light { background: var(--gray-100); }
.section-dark { background: var(--gradient-dark); color: var(--white); position: relative; }
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(33,150,243,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 40px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ===== Core Business Cards ===== */
.biz-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
    height: 100%;
}
.biz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(13,71,161,0.15);
    border-color: var(--primary-light);
}
.biz-card .biz-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.biz-card .biz-icon i { font-size: 28px; color: var(--white); }
.biz-card h4 { font-size: 18px; font-weight: 600; color: var(--primary-dark); margin-bottom: 12px; }
.biz-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ===== Product Cards ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card .card-img-top {
    height: 200px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 14px;
    position: relative;
}
.product-card .card-img-top .placeholder-icon {
    font-size: 48px;
    color: var(--gray-300);
}
.product-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.product-card .card-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}
.product-card .specs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.product-card .spec-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--primary);
    border: 1px solid var(--gray-200);
}
.product-card .spec-tag.tag-hot {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    border-color: rgba(239,68,68,0.2);
}
.product-card .spec-tag.tag-status {
    background: rgba(16,185,129,0.1);
    color: var(--success);
    border-color: rgba(16,185,129,0.2);
}
.product-card .spec-tag.tag-preorder {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
    border-color: rgba(245,158,11,0.2);
}
.product-card .card-footer {
    padding: 14px 20px;
    background: transparent;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.product-card .price-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ===== Daily Price Tag ===== */
.daily-price {
    font-size: 15px;
    font-weight: 700;
    color: #e53935;
    letter-spacing: -0.3px;
}
.rental-table .daily-price {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
    background: rgba(229,57,53,0.06);
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ===== GPU Rental Table Style ===== */
.rental-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.rental-table .table { margin-bottom: 0; }
.rental-table .table thead th {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 14px 16px;
    border: none;
}
.rental-table .table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    border-color: var(--gray-200);
}
.rental-table .table tbody tr:hover {
    background: var(--gray-100);
}

/* ===== Advantages ===== */
.advantage-item {
    text-align: center;
    padding: 20px;
}
.advantage-item .adv-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,180,216,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.section-dark .advantage-item .adv-icon {
    background: rgba(255,255,255,0.1);
}
.advantage-item .adv-icon i { font-size: 24px; color: var(--accent); }
.section-dark .advantage-item .adv-icon i { color: var(--accent-light); }
.advantage-item h5 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.advantage-item p { font-size: 13px; color: var(--gray-500); }
.section-dark .advantage-item h5 { color: var(--white); }
.section-dark .advantage-item p { color: rgba(255,255,255,0.6); }

/* ===== Solution Cards ===== */
.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    border: 1px solid var(--gray-200);
    height: 100%;
}
.solution-card:hover { transform: translateY(-4px); }
.solution-card .sol-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.solution-card .sol-icon i { font-size: 24px; color: var(--white); }
.solution-card h4 { font-size: 17px; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; }
.solution-card p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* ===== Article Cards ===== */
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    border: 1px solid var(--gray-200);
    height: 100%;
}
.article-card:hover { transform: translateY(-3px); }
.article-card .card-img-top {
    height: 180px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card .card-body { padding: 18px; }
.article-card .article-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.article-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .card-text {
    font-size: 13px;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CTA / Inquiry Section ===== */
.cta-section {
    background: var(--gradient-dark);
    padding: 70px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(33,150,243,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.cta-section h3 { font-size: 30px; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-section p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 30px; }
.inquiry-form .form-control {
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
}
.inquiry-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.inquiry-form .form-select {
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 50px 0 0;
}
.site-footer h6 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: var(--accent-light); }
.site-footer .footer-link-list { list-style: none; padding: 0; }
.site-footer .footer-link-list li { margin-bottom: 10px; font-size: 13px; }
.site-footer .footer-contact p { font-size: 13px; margin-bottom: 8px; }
.site-footer .footer-contact .bi { color: var(--accent); margin-right: 6px; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    margin-top: 40px;
    font-size: 12px;
}
.site-footer .qr-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ===== Breadcrumb ===== */
.page-banner {
    background: var(--gradient-dark);
    padding: 56px 0 44px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(33,150,243,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.page-banner h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; position: relative; }
.page-banner .breadcrumb { margin-bottom: 0; }
.page-banner .breadcrumb-item { font-size: 13px; }
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ===== Product Detail ===== */
.detail-gallery {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.detail-thumbs { display: flex; gap: 10px; }
.detail-thumbs .thumb {
    width: 80px;
    height: 60px;
    background: var(--gray-200);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--gray-500);
    cursor: pointer;
    border: 2px solid transparent;
}
.detail-thumbs .thumb.active { border-color: var(--accent); }
.detail-info h1 { font-size: 24px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.detail-info .subtitle { font-size: 15px; color: var(--gray-500); margin-bottom: 20px; }
.spec-table { font-size: 14px; }
.spec-table th { width: 120px; background: var(--gray-100); font-weight: 500; }

/* ===== Article Detail ===== */
.article-detail .article-header { margin-bottom: 30px; }
.article-detail .article-header h1 { font-size: 26px; font-weight: 700; color: var(--primary-dark); }
.article-detail .article-meta { font-size: 13px; color: var(--gray-500); margin-top: 12px; }
.article-detail .article-content { font-size: 15px; line-height: 1.9; color: var(--gray-700); }
.article-detail .article-content img { border-radius: 6px; margin: 16px 0; }
.article-detail .article-nav { border-top: 1px solid var(--gray-200); padding-top: 20px; margin-top: 30px; }
.article-detail .article-nav a { color: var(--primary); font-size: 14px; }

/* ===== Sidebar ===== */
.sidebar-widget { margin-bottom: 24px; }
.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 16px;
}
.sidebar-widget .list-group-item {
    border: none;
    padding: 8px 0;
    font-size: 14px;
}
.sidebar-widget .list-group-item.active {
    background: transparent;
    color: var(--accent);
    font-weight: 500;
}

/* ===== Filter Bar ===== */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.filter-bar .filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-right: 12px;
}

/* ===== About Page ===== */
.about-block { margin-bottom: 50px; }
.about-block h3 { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.about-block p { font-size: 15px; color: var(--gray-700); line-height: 1.8; }
.step-item {
    text-align: center;
    position: relative;
}
.step-item .step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.step-item h5 { font-size: 15px; font-weight: 600; }
.step-item p { font-size: 13px; color: var(--gray-500); }

/* ===== Image Placeholders ===== */
.img-placeholder {
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 13px;
    border-radius: var(--radius);
    overflow: hidden;
}
.img-placeholder .bi { font-size: 36px; color: var(--gray-300); }

/* ===== Float Contact Button ===== */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-contact .float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
}
.float-contact .float-btn:hover { transform: scale(1.1); }
.float-contact .float-btn.btn-phone { background: var(--success); }
.float-contact .float-btn.btn-wechat { background: #07c160; }
.float-contact .float-btn.btn-inquiry { background: var(--accent); }
.float-contact .float-btn.btn-top { background: var(--primary); }

/* WeChat popup */
.float-btn-wrap { position: relative; }
.wechat-popup {
    display: none;
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1021;
    animation: wechatFadeIn 0.2s ease;
}
@keyframes wechatFadeIn { from { opacity:0; transform: translateY(-50%) translateX(8px); } to { opacity:1; transform: translateY(-50%) translateX(0); } }
.wechat-popup::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: 2px -2px 4px rgba(0,0,0,0.05);
}
.wechat-popup.show { display: block; }
.wechat-popup-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}
.wechat-popup-inner > img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.wechat-popup-info { display: flex; flex-direction: column; gap: 6px; }
.wechat-popup-title { font-size: 15px; font-weight: 600; color: #07c160; }
.wechat-popup-title .bi { margin-right: 4px; }
.wechat-popup-desc { font-size: 13px; color: #64748b; line-height: 1.5; }
.wechat-popup-id { font-size: 12px; color: #94a3b8; background: #f8f9fa; padding: 4px 10px; border-radius: 6px; }

/* Mobile bottom bar */
.float-mobile-bar { display: none; }

@media (max-width: 768px) {
    .float-desktop { display: none !important; }
    .float-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1020;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        padding: 0;
    }
    .float-mobile-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 0;
        font-size: 18px;
        color: #475569;
        background: none;
        border: none;
        cursor: pointer;
        text-decoration: none;
        position: relative;
        transition: color 0.2s;
    }
    .float-mobile-item span { font-size: 10px; font-weight: 500; }
    .float-mobile-item:active { background: #f1f5f9; }
    .float-mobile-item .bi-wechat { color: #07c160; }
    .float-mobile-item .bi-telephone-fill { color: var(--success); }
    .float-mobile-item.item-accent { color: var(--accent); }
    .float-mobile-item.item-accent i { font-size: 20px; }

    /* Mobile wechat popup */
    .wechat-popup-inner-m { flex-direction: row; gap: 12px; }
    .wechat-popup-inner-m > img { width: 100px; height: 100px; border-radius: 8px; }
    .wechat-popup-mobile {
        position: fixed;
        bottom: 60px;
        left: 12px;
        right: 12px;
        top: auto;
        transform: none;
        animation: wechatFadeUp 0.2s ease;
    }
    @keyframes wechatFadeUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
    .wechat-popup-mobile::after { display: none; }

    /* Extra bottom padding for content so bottom bar doesn't cover */
    .site-footer { padding-bottom: 56px; }
}

/* ===== Inquiry Modal ===== */
.modal-inquiry .modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}
.modal-inquiry .modal-header .btn-close { filter: brightness(0) invert(1); }
.modal-inquiry .modal-title { font-weight: 600; }

/* ===== Buttons ===== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 500;
}
.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: var(--white);
    font-weight: 500;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== Partner Logos (Homepage) ===== */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}
.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 70px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    transition: all 0.25s;
    text-decoration: none;
}
.partner-logo-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(21,101,216,0.10);
    transform: translateY(-2px);
}
.partner-logo-item img {
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: all 0.25s;
}
.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-text-logo {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
}
.partner-logo-item:hover .partner-text-logo {
    color: var(--primary);
}

/* ===== Footer Partner Row ===== */
.footer-partners {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}
.footer-partner-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 2px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-partner-item:hover {
    background: rgba(255,255,255,0.12);
}
.footer-partner-item img {
    max-height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.2s;
}
.footer-partner-item:hover img { opacity: 0.9; }
.footer-partner-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.footer-partner-item:hover span { color: rgba(255,255,255,0.8); }

/* ===== Pagination ===== */
.pagination { list-style: none; display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 4px 12px; border-radius: 8px; border: 1px solid #e2e8f0; color: var(--primary); text-decoration: none; font-size: 14px; transition: all 0.2s; background: #fff; }
.pagination li a:hover { background: rgba(21,101,216,0.08); border-color: var(--primary); }
.pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination li.disabled span { color: #94a3b8; background: #f8fafc; cursor: default; }

/* ===== Utility ===== */
.text-accent { color: var(--accent) !important; }
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-dark { background: var(--gradient-dark) !important; }
.fw-600 { font-weight: 600; }

/* ===== 404 Page ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-page h1 { font-size: 100px; font-weight: 800; color: var(--primary); opacity: 0.2; }
.error-page h3 { font-size: 24px; color: var(--primary-dark); }

/* ===== Responsive ===== */
@media (max-width: 768px) {

    /* --- Top Bar: simplify --- */
    .top-bar { font-size: 12px; padding: 5px 0; }
    .top-bar .container > div:last-child { display: none; }

    /* --- Header --- */
    .site-header .navbar-brand { font-size: 18px; }
    .site-header .navbar-brand .bi { font-size: 22px !important; }
    .site-header .nav-link { padding: 8px 0 !important; font-size: 14px; }

    /* --- Hero Banner --- */
    .hero-section { min-height: 280px; }
    .hero-section .carousel-item { min-height: 280px; }
    .hero-section .carousel-item > .container { min-height: 280px; }
    .hero-section .carousel-caption { padding: 30px 0; }
    .hero-section .hero-content { max-width: 100%; }
    .hero-section h2 { font-size: 22px; margin-bottom: 10px; }
    .hero-section p { font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
    .hero-section .hero-actions { gap: 8px; }
    .hero-section .hero-action { min-height: 36px; padding: 0 14px; font-size: 12px; }
    .hero-section .hero-action i { font-size: 14px; }
    .hero-section .carousel-indicators { margin-bottom: 8px; }
    .hero-section .carousel-indicators button { width: 6px; height: 6px; }

    /* --- Sections: tighter spacing --- */
    .section { padding: 32px 0; }
    .section-title { font-size: 20px; margin-bottom: 6px; }
    .section-subtitle { font-size: 13px; margin-bottom: 20px; }

    /* --- Section headers: hide long subtitles, show "view all" link --- */
    .section .d-flex.justify-content-between { flex-direction: column; align-items: flex-start !important; gap: 8px; }

    /* --- Product Cards: 2 per row on mobile --- */
    .product-card .card-img-top { height: 130px; }
    .product-card .card-body { padding: 12px; }
    .product-card .card-title { font-size: 14px; margin-bottom: 4px; }
    .product-card .card-subtitle { font-size: 12px; margin-bottom: 8px; }
    .product-card .card-text { display: none; }
    .product-card .specs-row { margin-bottom: 8px; }
    .product-card .spec-tag { font-size: 10px; padding: 2px 6px; }
    .product-card .card-footer { padding: 10px 12px; }
    .product-card .card-footer .btn { font-size: 12px; padding: 4px 10px; }
    .product-card .price-text { font-size: 13px; }
    .product-card .daily-price { font-size: 13px; }
    .product-card .card-footer small { font-size: 10px !important; }

    /* --- Rental Table: card-style on mobile --- */
    .rental-table { border-radius: var(--radius); }
    .rental-table .table thead { display: none; }
    .rental-table .table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        border-bottom: 1px solid var(--gray-200);
        gap: 4px 12px;
        align-items: center;
    }
    .rental-table .table tbody td {
        display: inline-flex;
        align-items: center;
        padding: 0;
        border: none;
        font-size: 13px;
    }
    .rental-table .table tbody td:first-child {
        width: 100%;
        margin-bottom: 4px;
    }
    .rental-table .table tbody td:first-child small { display: none; }
    .rental-table .table tbody td:last-child {
        width: 100%;
        margin-top: 6px;
    }
    .rental-table .table tbody td:last-child .btn { font-size: 12px; padding: 4px 12px; }
    .rental-table .daily-price { font-size: 13px; padding: 1px 8px; }

    /* --- Biz Cards: compact --- */
    .biz-card { padding: 20px 16px; }
    .biz-card .biz-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .biz-card .biz-icon i { font-size: 22px; }
    .biz-card h4 { font-size: 16px; margin-bottom: 6px; }
    .biz-card p { font-size: 13px; }

    /* --- Advantages: smaller --- */
    .advantage-item { padding: 12px 8px; }
    .advantage-item .adv-icon { width: 44px; height: 44px; margin-bottom: 10px; }
    .advantage-item .adv-icon i { font-size: 20px; }
    .advantage-item h5 { font-size: 14px; margin-bottom: 4px; }
    .advantage-item p { font-size: 11px; line-height: 1.5; }

    /* --- Solution Cards: 2 per row --- */
    .solution-card { padding: 18px 14px; }
    .solution-card .sol-icon { width: 40px; height: 40px; margin-bottom: 12px; }
    .solution-card .sol-icon i { font-size: 18px; }
    .solution-card h4 { font-size: 14px; margin-bottom: 4px; }
    .solution-card p { font-size: 12px; }
    .solution-card small { display: none; }

    /* --- Article Cards: smaller on homepage --- */
    .article-card .card-img-top { height: 120px; }
    .article-card .card-body { padding: 12px; }
    .article-card .card-title { font-size: 14px; }
    .article-card .card-text { font-size: 12px; -webkit-line-clamp: 1; }
    .article-card .article-meta { font-size: 11px; }

    /* --- Article List page: vertical layout --- */
    .article-detail .article-header h1 { font-size: 20px; }
    .article-detail .article-meta { font-size: 12px; }
    .article-detail .article-content { font-size: 14px; line-height: 1.8; }

    /* Article list item: stack vertically */
    .col-lg-8 > .d-flex.gap-3.mb-4.p-3 {
        flex-direction: column;
    }
    .col-lg-8 > .d-flex.gap-3.mb-4.p-3 > .flex-shrink-0 {
        width: 100% !important;
        height: 160px !important;
    }

    /* --- CTA Section --- */
    .cta-section { padding: 36px 0; }
    .cta-section h3 { font-size: 22px; }
    .cta-section p { font-size: 13px; margin-bottom: 20px; }
    .cta-section .d-flex.gap-3 { gap: 16px !important; }
    .cta-section .d-flex.gap-3 > div { font-size: 13px; }
    .cta-section .d-flex.gap-3 > div > div:first-child { font-size: 22px !important; }
    .cta-section .bg-white { padding: 16px !important; }
    .cta-section .inquiry-form .form-control,
    .cta-section .inquiry-form .form-select { font-size: 13px; padding: 8px 12px; }

    /* --- Page Banner --- */
    .page-banner { padding: 24px 0 18px; }
    .page-banner h1 { font-size: 20px; margin-bottom: 6px; }
    .page-banner p { font-size: 13px; margin-bottom: 8px; }
    .page-banner .breadcrumb-item { font-size: 12px; }

    /* --- Product Detail --- */
    .detail-gallery { height: 220px; border-radius: var(--radius); }
    .detail-thumbs .thumb { width: 56px; height: 42px; }
    .detail-info h1 { font-size: 20px; }
    .detail-info .subtitle { font-size: 13px; margin-bottom: 14px; }
    .detail-info .d-flex.gap-3 { flex-direction: column; gap: 8px !important; }
    .detail-info .btn-lg { padding: 10px 16px; font-size: 14px; }
    .spec-table th { width: 90px; font-size: 13px; }
    .spec-table td { font-size: 13px; }
    .nav-tabs .nav-link { font-size: 13px; padding: 8px 12px; }

    /* --- Contact page --- */
    .col-lg-5 h3, .col-lg-7 h3 { font-size: 20px; }

    /* --- Filter Bar --- */
    .filter-bar { padding: 14px; }
    .filter-bar .filter-label { font-size: 12px; margin-bottom: 2px; display: block; }

    /* --- Footer --- */
    .site-footer { padding: 30px 0 0; }
    .site-footer h6 { font-size: 14px; margin-bottom: 12px; }
    .site-footer .footer-link-list li { margin-bottom: 8px; font-size: 12px; }
    .site-footer .footer-contact p { font-size: 12px; margin-bottom: 6px; }
    .site-footer .footer-bottom { margin-top: 20px; padding: 12px 0; font-size: 11px; }
    .site-footer .qr-placeholder { width: 80px; height: 80px; }

    /* --- Partners --- */
    .partner-logos { gap: 10px; }
    .partner-logo-item { width: 110px; height: 50px; padding: 6px 10px; }
    .partner-logo-item img { max-height: 30px; }
    .partner-text-logo { font-size: 12px; }

    /* --- Float Buttons (desktop only, mobile uses bottom bar) --- */

    /* --- Pagination --- */
    .pagination li a, .pagination li span { min-width: 32px; height: 32px; font-size: 13px; padding: 2px 8px; }

    /* --- Modal/Inquiry --- */
    .modal-inquiry .modal-body { padding: 16px; }
    .modal-inquiry .form-control,
    .modal-inquiry .form-select { font-size: 13px; }

    /* --- Error Page --- */
    .error-page h1 { font-size: 60px; }
    .error-page h3 { font-size: 18px; }
}

/* ===== Extra small screens (<=480px) ===== */
@media (max-width: 480px) {
    /* Top bar: only show phone */
    .top-bar-extra { display: none; }

    /* Hero even more compact */
    .hero-section { min-height: 240px; }
    .hero-section .carousel-item { min-height: 240px; }
    .hero-section .carousel-item > .container { min-height: 240px; }
    .hero-section h2 { font-size: 19px; }
    .hero-section p { font-size: 12px; }

    /* Section subtitle: single line truncate */
    .section-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* CTA stats row: 3 items fit tighter */
    .cta-section .d-flex.gap-3 > div > div:first-child { font-size: 18px !important; }
    .cta-section .d-flex.gap-3 > div > small { font-size: 10px; }

    /* Footer: QR codes already commented out in template */
    .site-footer .footer-bottom span.mx-2 { display: none; }
    .site-footer .footer-bottom { flex-direction: column; gap: 4px; display: flex; align-items: center; }
}
