/* ============================================
   立行天下 - 主样式表
   ============================================ */

:root {
    --primary: #1a0202;
    --primary-light: #2d0a0a;
    --accent: #e1251b;
    --accent-light: #ff3b30;
    --accent-dark: #c41a11;
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;

    /* Bootstrap 5 变量覆盖 */
    --bs-primary: var(--accent);
    --bs-primary-rgb: 225,37,27;
    --bs-link-color: var(--text);
    --bs-link-hover-color: var(--accent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 76px;
}

a { color: var(--text); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ============ NAVBAR ============ */
#mainNav {
    background: linear-gradient(180deg, rgba(196,26,17,0.97) 0%, rgba(160,20,14,0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    padding: 12px 0;
}

#mainNav.navbar-scrolled {
    background: rgba(160, 20, 14, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 8px 0;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
}

.brand-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 2px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.dropdown-menu {
    background: var(--accent-dark);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    margin-top: 12px;
}

.dropdown-item {
    color: rgba(255,255,255,0.8);
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ============ HERO / BANNER ============ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #2d0505 50%, #1a0202 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(225,37,27,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201,169,110,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(225,37,27,0.15);
    border: 1px solid rgba(225,37,27,0.3);
    color: var(--accent-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 36px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* ============ BUTTONS ============ */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225,37,27,0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ============ SECTION COMMON ============ */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--primary); }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============ SERVICE CARDS ============ */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(196,30,36,0.1), rgba(196,30,36,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    color: #111827 !important;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ CASE CARDS ============ */
.case-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.case-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--primary-light);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-body {
    padding: 24px;
}

.case-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.case-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.case-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

.case-meta i { color: var(--accent); margin-right: 4px; }

/* ============ NEWS CARDS ============ */
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background: var(--primary-light);
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img { transform: scale(1.05); }

.news-date-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(10,22,40,0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.news-body {
    padding: 24px;
}

.news-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-body h3 a {
    color: var(--primary);
}

.news-body h3 a:hover {
    color: var(--accent);
}

.news-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ TEAM CARDS ============ */
.team-card {
    text-align: center;
    padding: 32px 20px;
    transition: var(--transition);
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--accent);
    background: var(--primary-light);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.team-card .position {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card .bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ CONTACT PAGE ============ */
.contact-info-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 40px 32px;
    color: #fff;
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--accent-light);
}

.contact-info-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--primary);
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225,37,27,0.15);
}

textarea.form-control {
    min-height: 140px;
}

/* ============ ABOUT PAGE ============ */
.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    padding: 120px 0 80px;
    color: #fff;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    padding: 80px 0;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============ STATS STRIP ============ */
.stats-strip {
    background: var(--primary);
    padding: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 16px;
}

.stat-item .stat-icon {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-item .stat-label-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    padding: 100px 0 50px;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
}

/* ============ FILTER TABS ============ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============ PAGINATION ============ */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 16px;
    border: none;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.page-link:hover {
    background: var(--accent);
    color: #fff;
}

.page-item.active .page-link {
    background: var(--accent);
    color: #fff;
}

/* ============ DETAIL PAGE ============ */
.article-detail {
    padding: 80px 0;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.article-cover img {
    width: 100%;
    height: auto;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

.article-content h2 { font-size: 1.5rem; margin: 32px 0 16px; font-weight: 700; }
.article-content h3 { font-size: 1.25rem; margin: 24px 0 12px; font-weight: 600; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: var(--radius-sm); margin: 20px 0; max-width: 100%; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 20px; }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary);
    padding: 70px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.social-links { display: flex; gap: 12px; }

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-contact li i {
    color: var(--accent-light);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 40px 0 24px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    padding-bottom: 24px;
}

.footer-copyright a { color: rgba(255,255,255,0.5); }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat .stat-value { font-size: 1.5rem; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .navbar-collapse {
        background: rgba(160,20,14,0.98);
        padding: 16px;
        border-radius: var(--radius-sm);
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    body { padding-top: 66px; }
    .hero-section { min-height: auto; padding: 40px 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 16px; }
    .hero-stat .stat-value { font-size: 1.3rem; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .contact-info-card, .contact-form-card { padding: 28px 20px; }
    .stats-strip { padding: 30px 0; }
    .stat-item .stat-number { font-size: 1.8rem; }
    .page-header { padding: 80px 0 30px; }
    .page-header h1 { font-size: 1.5rem; }
    .article-detail { padding: 40px 0; }
    .article-header h1 { font-size: 1.5rem; }
}

/* ============ 新增样式 ============ */
/* 服务封面图 */
.service-cover {
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 200px;
}
.service-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 可点击卡片悬停效果 */
.hover-card {
    transition: var(--transition);
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.hover-card:hover img {
    transform: scale(1.05);
}

/* 案例内容区（服务子项） */
.case-content {
    padding: 20px;
}
.case-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

/* 深色背景 */
.bg-darker {
    background: #1a0202;
}

/* 自定义文本颜色 */
.text-primary-custom {
    color: var(--accent) !important;
}
.text-muted-custom {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero 角标 */
.hero-badge {
    display: inline-block;
    background: rgba(225, 37, 27, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

/* 圆角工具类 */
.rounded-4 {
    border-radius: var(--radius) !important;
}

/* ============ 产品资源库页面 ============ */

/* Page Header Sub */
.page-header-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Brand Navigation */
.brand-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--bg-white);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.brand-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
    color: var(--accent);
}

.brand-nav-item.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(225,37,27,0.3);
}

.brand-nav-item.active .brand-nav-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.brand-nav-flag {
    font-size: 1.3rem;
}

.brand-nav-label {
    font-weight: 600;
}

.brand-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 8px;
}

/* Search Box Modern */
.search-box-modern {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.search-box-modern:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225,37,27,0.1);
}

.search-box-modern .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 10px 12px 10px 8px;
    font-size: 0.95rem;
}

.search-box-modern .search-icon {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-left: 16px;
}

.search-box-modern .btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Filter Scroll Modern */
.filter-scroll-modern {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.filter-scroll-modern::-webkit-scrollbar {
    height: 4px;
}

.filter-scroll-modern::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.filter-chip-modern {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-white);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.filter-chip-modern:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-chip-modern.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(225,37,27,0.25);
}

/* Product Grid New */
.product-grid-new {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 576px) {
    .product-grid-new { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .product-grid-new { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .product-grid-new { grid-template-columns: repeat(4, 1fr); }
}

/* Product Card New */
.product-card-new {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--border);
}

.product-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.product-card-new:active {
    transform: translateY(-2px);
}

.product-card-img {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5, #e5e8ed);
}

.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-new:hover .product-card-img img {
    transform: scale(1.08);
}

.product-card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(0,0,0,0.1);
}

.product-card-brand {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}

.product-card-brand--domestic { background: rgba(225,37,27,0.88); }
.product-card-brand--hongkong { background: rgba(201,169,110,0.9); color: #4a3000; }
.product-card-brand--international { background: rgba(13,43,94,0.88); }
.product-card-brand--other { background: rgba(107,114,128,0.85); }

.product-card-type {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
}

.product-card-body {
    padding: 16px 18px 18px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-card-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.product-card-new:hover .product-card-link {
    opacity: 1;
    transform: translateX(0);
}

/* Product Detail Modal */
.product-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1050;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.product-modal-mask.show {
    display: flex;
}

.product-modal-panel {
    background: var(--bg-white);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

@media (min-width: 768px) {
    .product-modal-mask {
        align-items: center;
    }
    .product-modal-panel {
        border-radius: 20px;
        max-height: 85vh;
    }
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.product-modal-close {
    position: sticky;
    top: 12px;
    right: 12px;
    float: right;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
    color: var(--text);
}

.product-modal-close:hover {
    background: rgba(0,0,0,0.12);
}

.product-modal-hero {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    cursor: zoom-in;
}

.product-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 350px;
}

.product-modal-loading {
    text-align: center;
    padding: 60px 20px;
}

.product-modal-body {
    padding: 24px 28px 36px;
}

.product-modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-modal-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-modal-tag.brand {
    background: rgba(201,169,110,0.15);
    color: #8B6914;
}

.product-modal-tag.type {
    background: rgba(13,43,94,0.08);
    color: var(--primary);
}

.product-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-modal-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 8px 16px;
    background: rgba(225,37,27,0.06);
    border-radius: 8px;
    display: inline-block;
}

.product-modal-summary {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.product-modal-content {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.9;
}

.product-modal-content p {
    margin-bottom: 12px;
}

.product-modal-cases {
    margin-top: 24px;
}

.product-modal-cases h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.case-show-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
}

.case-show-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1060;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-mask.show {
    display: flex;
}

.lightbox-mask img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    animation: lightboxZoom 0.25s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(225,37,27,0.8);
    border-color: var(--accent);
}

/* Empty State Icon */
.empty-state-icon {
    opacity: 0.5;
}

/* ============ 服务项目页 V2 ============ */

/* Service Category Section */
.service-category-section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.service-category-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.service-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(196,30,36,0.1), rgba(196,30,36,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.service-category-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.service-category-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.service-category-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(225,37,27,0.08);
    padding: 5px 14px;
    border-radius: 50px;
}

/* Service Card V2 */
.service-card-v2 {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
    border: 1px solid var(--border);
}

.service-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.service-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5, #e5e8ed);
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-v2:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-content {
    padding: 20px 22px 22px;
    position: relative;
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(196,30,36,0.1), rgba(196,30,36,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 14px;
    margin-top: -38px;
    position: relative;
    z-index: 1;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.service-card-title-v2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.service-card-subtitle {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.service-card-desc-v2 {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}

.service-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.service-card-v2:hover .service-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============ 产品页重构样式 ============ */

/* -- Hero 增强 -- */
.products-hero .page-header-sub {
    font-size: 1.05rem;
    line-height: 2;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.products-hero .hero-stats {
    justify-content: center;
}

/* -- 能力卡片 -- */
.ability-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.ability-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.ability-card--domestic::after { background: var(--accent); }
.ability-card--hk::after { background: var(--gold); }
.ability-card--intl::after { background: #3b5998; }
.ability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    color: inherit;
    border-color: transparent;
}
.ability-card:hover::after {
    transform: scaleX(1);
}

.ability-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.ability-card--domestic .ability-card-icon { background: rgba(225,37,27,0.1); color: var(--accent); }
.ability-card--hk .ability-card-icon       { background: rgba(201,169,110,0.12); color: var(--gold); }
.ability-card--intl .ability-card-icon     { background: rgba(59,89,152,0.1); color: #3b5998; }

.ability-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
}
.ability-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0 0 20px 0;
    flex: 1;
}
.ability-card-count {
    display: inline-flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.ability-card-count::after {
    content: "个资源点位";
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 8px;
    align-self: flex-end;
    padding-bottom: 2px;
}
.ability-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: auto;
    transition: all 0.3s;
}
.ability-card:hover .ability-card-link {
    gap: 10px;
}

/* -- 产品分组 -- */
.product-group {
    margin-bottom: 56px;
}
.product-group:last-child {
    margin-bottom: 0;
}
.product-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}
.product-group-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(225,37,27,0.1), rgba(225,37,27,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}
.product-group-info {
    flex: 1;
    min-width: 200px;
}
.product-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}
.product-group-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 4px 0 0 0;
}
.product-group-count {
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* -- 城市卡片网格 -- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.city-card {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
}
.city-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.city-card-cover {
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5, #e5e8ed);
}
.city-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.city-card:hover .city-card-cover img {
    transform: scale(1.08);
}
.city-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(0,0,0,0.08);
}
.city-card-body {
    padding: 18px;
    text-align: center;
}
.city-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px 0;
}
.city-card-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* -- 响应式 -- */
@media (max-width: 767.98px) {
    .ability-card {
        padding: 28px 22px;
    }
    .ability-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    .ability-card-title {
        font-size: 1.05rem;
    }
    .ability-card-count {
        font-size: 1.6rem;
    }
    .product-group {
        margin-bottom: 36px;
    }
    .product-group-header {
        gap: 10px;
    }
    .product-group-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .product-group-title {
        font-size: 1.1rem;
    }
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .city-card-cover {
        height: 110px;
    }
}

/* ============ 强制覆盖 Bootstrap 蓝色 ============ */
/* 防止任何未覆盖的 Bootstrap 默认蓝色出现 */
.text-primary { color: var(--accent) !important; }
a { color: var(--text); }
a:hover { color: var(--accent); }
a:visited { color: var(--text); }
.ability-card,
.ability-card:hover,
.ability-card:visited { color: var(--text); text-decoration: none; }
.ability-card-title { color: var(--text) !important; }
