/* ─── CSS Variables ─── */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --accent: #FF6F00;
    --accent-light: #FFB300;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
}

/* ─── Base ─── */
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    transition: all 0.3s ease;
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* ─── Top Bar ─── */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 0.875rem;
}

.top-bar a:hover {
    color: var(--accent-light) !important;
}

/* ─── Navbar ─── */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.8rem 1rem !important;
    position: relative;
    color: var(--gray-800);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar .nav-link.active {
    color: var(--primary) !important;
}

.brand-text {
    color: var(--primary-dark);
    letter-spacing: 1px;
}

/* ─── Hero Section ─── */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .highlight {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ─── Buttons ─── */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: #e65100;
    border-color: #e65100;
    color: #fff;
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ─── Section Styles ─── */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto;
}

.section-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light-custom {
    background-color: var(--gray-100);
}

/* ─── Feature Cards ─── */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 2rem;
}

.category-icon-letter {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Georgia', serif;
    line-height: 1;
}

/* ─── Product Cards ─── */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.product-card-img {
    height: 240px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

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

.product-card-img .placeholder-icon {
    font-size: 4rem;
    color: var(--gray-300);
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-body h5 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.product-card-body .product-subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-card-body .product-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
}

/* ─── Product Detail ─── */
.product-detail-hero {
    background: linear-gradient(135deg, var(--dark), #16213e);
    color: #fff;
    padding: 3rem 0;
}

.product-detail-img {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.product-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.product-gallery img:hover {
    opacity: 0.8;
    border-color: var(--primary);
}

.product-gallery img.active {
    border-color: var(--primary);
}

/* ─── Image Magnifier ─── */
.img-magnifier-container {
    position: relative;
    cursor: crosshair;
    overflow: hidden;
}

.img-magnifier-container::after {
    content: '🔍';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 5;
    line-height: 44px;
    text-align: center;
}

.img-magnifier-container:hover::after {
    opacity: 0.5;
}

.img-magnifier-container .magnifier-lens {
    display: none;
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background-repeat: no-repeat;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 10;
    background-color: #fff;
}

.img-magnifier-container:hover .magnifier-lens {
    display: block;
}

.img-magnifier-container .magnifier-result {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    width: 400px;
    height: 400px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background-repeat: no-repeat;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 20;
    background-color: #fff;
    overflow: hidden;
}

.img-magnifier-container:hover .magnifier-result {
    display: block;
}

/* Responsive: hide magnifier result on small screens */
@media (max-width: 992px) {
    .img-magnifier-container .magnifier-result {
        display: none !important;
    }
    .img-magnifier-container .magnifier-lens {
        display: none !important;
    }
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
}

.content-table th,
.content-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.content-table th {
    background: var(--gray-100);
    font-weight: 600;
    width: 40%;
    color: var(--dark);
}

/* ─── News Cards ─── */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 1.25rem;
}

.news-card-body .news-date {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
}

.news-card-body .news-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary);
}

.news-card-body h5 {
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--dark);
}

.news-card-body p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ─── Contact Page ─── */
.contact-info-card {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.contact-info-card h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.contact-info-label {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
    margin-bottom: 0.3rem;
}

.contact-info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-word;
}

.contact-info-desc {
    font-size: 0.85rem;
    color: var(--bs-gray-500);
}

/* ─── Breadcrumb ─── */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

/* ─── Pagination ─── */
.page-link {
    color: var(--primary);
    border-radius: 6px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: var(--gray-200);
}

/* ─── Admin Login ─── */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    display: flex;
    align-items: center;
}

.admin-login-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ─── Admin Sidebar ─── */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .sidebar-brand {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.admin-sidebar .sidebar-brand h5 {
    color: #fff;
    margin: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.8rem 1.2rem;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary-light);
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-header {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-body {
    padding: 1.5rem;
}

/* ─── Stat Cards ─── */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card .stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ─── Form Styling ─── */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(21,101,192,0.15);
}

.form-label {
    font-weight: 500;
    color: var(--gray-800);
}

/* ─── Image Preview ─── */
.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gallery-preview .gallery-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.gallery-preview .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview .gallery-item .remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 24px;
    height: 24px;
    background: rgba(220,53,69,0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── About Page ─── */
.about-hero {
    background: linear-gradient(135deg, var(--dark), #16213e);
    color: #fff;
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Hero Carousel ─── */
.hero-carousel .hero-carousel-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-carousel .hero-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(22,33,62,0.5) 50%, rgba(15,52,96,0.4) 100%);
    z-index: 1;
}

.hero-carousel .hero-content {
    position: relative;
    z-index: 2;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    margin: 0 6px;
}

.hero-carousel .carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.6;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* ─── Hero Slide Full (designed banner images) ─── */
.hero-carousel .hero-slide-full {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-carousel .hero-slide-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.3) 70%, transparent 100%);
    z-index: 1;
}

.hero-carousel .hero-overlay-left {
    display: none;
}

.hero-carousel .hero-text-col {
    position: relative;
    z-index: 2;
}

.hero-carousel .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-carousel .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-carousel .hero-desc {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0;
}

.hero-carousel .hero-btn-custom {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .hero-carousel .hero-slide-full {
        min-height: 50vh;
    }
    .hero-carousel .hero-slide-full::before {
        width: 80%;
    }
    .hero-carousel .hero-title {
        font-size: 2rem;
    }
    .hero-carousel .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-carousel .hero-desc {
        font-size: 0.9rem;
    }
}

/* ─── Animations ─── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* ─── Back to Top ─── */
#backToTop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: all 0.3s ease;
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .product-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .product-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* ─── Markdown Content Styling ─── */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.markdown-content h2 {
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.3rem;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--gray-100);
    border-radius: 0 8px 8px 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid var(--gray-300);
    padding: 0.6rem 0.8rem;
}

.markdown-content th {
    background: var(--gray-100);
    font-weight: 600;
}

.markdown-content code {
    background: var(--gray-100);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ═══════════════════════════════════════════════
   NEW: Stats Ribbon — 浮动数据条
   ═══════════════════════════════════════════════ */
.stats-ribbon {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.stats-ribbon-item {
    text-align: center;
    color: #fff;
    padding: 0.5rem;
}

.stats-ribbon-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: var(--accent-light);
}

.stats-ribbon-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stats-ribbon-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════
   NEW: Product Category Cards（重新设计）
   ═══════════════════════════════════════════════ */
.categories-section {
    position: relative;
}

.product-category-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.product-category-card .category-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--cat-bg, rgba(21,101,192,0.05));
    border-radius: 50%;
    transition: all 0.5s ease;
    pointer-events: none;
}

.product-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.product-category-card:hover .category-card-bg {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.category-icon-wrapper {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(21,101,192,0.25);
}

.product-category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 35px rgba(21,101,192,0.35);
}

.product-category-card h5 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.product-category-card p {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-category-card:hover p {
    color: var(--gray-800);
}

.category-card-link {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.category-card-link i {
    transition: transform 0.3s ease;
}

.product-category-card:hover .category-card-link i {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════
   NEW: 企业实力卡片
   ═══════════════════════════════════════════════ */
.strength-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 50%, #f0f4ff 100%);
}

.strength-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    border-color: transparent;
}

.strength-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    font-size: 2.2rem;
    transition: all 0.4s ease;
}

.strength-card:hover .strength-icon {
    transform: scale(1.1) rotate(5deg);
}

.strength-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Gradient helpers */
.bg-accent-gradient { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.bg-primary-gradient { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.bg-success-gradient { background: linear-gradient(135deg, #66bb6a, #2e7d32); }
.bg-info-gradient { background: linear-gradient(135deg, #4fc3f7, #0288d1); }

/* ═══════════════════════════════════════════════
   NEW: 行业应用卡片
   ═══════════════════════════════════════════════ */
.industry-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.industry-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(21,101,192,0.08);
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-card-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    transform: scale(1.1);
}

.industry-card h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════
   CTA 区域 - 重新设计
   ═══════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, #0c1a32 0%, #16213e 40%, #1a2d50 70%, #0f3460 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* 装饰：半透明圆圈 */
.cta-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-deco-1 {
    top: -120px;
    left: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,111,0,0.08), transparent 70%);
}
.cta-deco-2 {
    bottom: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(43,108,176,0.12), transparent 70%);
}

/* 装饰：点阵 */
.cta-deco-dots {
    position: absolute;
    top: 40px;
    right: 8%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
}

/* 左侧 Badge */
.cta-badge {
    display: inline-block;
    background: rgba(255,111,0,0.12);
    color: var(--accent);
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* 左侧标题 */
.cta-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 36px;
    line-height: 1.35;
}
.cta-heading.text-accent {
    color: var(--accent);
}
.cta-heading .text-accent {
    font-size: 1.8rem;
    margin-top: 4px;
    color: var(--accent);
}

/* 左侧信息网格 — 纯文字排版 */
.cta-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    max-width: 620px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.cta-info-item {
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    transition: background 0.25s;
}
.cta-info-item:nth-child(1),
.cta-info-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cta-info-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.06);
}
.cta-info-item:hover {
    background: rgba(255,255,255,0.08);
}

.cta-info-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.cta-info-item span {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* 右侧联系卡片 */
.cta-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}
.cta-card:hover {
    transform: translateY(-4px);
}

.cta-card-header {
    padding: 18px 28px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-card-body {
    padding: 28px;
}

.cta-phone-block {
    text-align: center;
    margin-bottom: 18px;
}

.cta-phone-label {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.cta-phone-number {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.cta-phone-number:hover {
    color: var(--accent);
}

.cta-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 18px 0;
}

.cta-card-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: center;
}

.cta-card-actions .btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 12px 20px;
    letter-spacing: 0.5px;
}
.cta-card-actions .btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
}
.cta-card-actions .btn-accent:hover {
    background: #e65c00;
    color: #fff;
    transform: translateY(-1px);
}
.cta-card-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.cta-card-footer-text {
    margin-top: 16px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* 响应式 */
@media (max-width: 991px) {
    .cta-section { padding: 60px 0; }
    .cta-heading { font-size: 1.7rem; }
    .cta-heading .text-accent { font-size: 1.4rem; }
    .cta-info-grid { grid-template-columns: 1fr; }
    .cta-info-item:nth-child(odd) { border-right: none; }
    .cta-card { margin-top: 10px; }
}
@media (max-width: 576px) {
    .cta-section { padding: 40px 0; }
    .cta-heading { font-size: 1.4rem; }
    .cta-phone-number { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════
   NEW: Hero overlay fix for banner carousel
   ═══════════════════════════════════════════════ */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.78) 0%, rgba(22,33,62,0.55) 50%, rgba(15,52,96,0.4) 100%);
    z-index: 1;
}

.hero-carousel .hero-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════
   Responsive adjustments for new sections
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .stats-ribbon-number {
        font-size: 1.5rem;
    }
    .stats-ribbon-icon {
        font-size: 1.4rem;
    }
    .stats-ribbon {
        padding: 1.2rem 0;
    }
    .product-category-card {
        padding: 1.5rem 1rem;
    }
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .strength-card {
        padding: 1.8rem 1rem;
    }
    .strength-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════════════
   完整的移动端适配 (Mobile First)
   ═══════════════════════════════════════════════ */

/* ≥1200px — 大屏幕：保持默认桌面尺寸 */

/* 992–1199px — 中等屏幕 */
@media (max-width: 1199px) {
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-stat-number { font-size: 1.6rem; }
    .hero-carousel .hero-slide-full { min-height: 65vh; }
    .product-card-img { height: 200px; }
    .news-card-img { height: 170px; }
    .cta-heading { font-size: 1.8rem; }
    .cta-phone-number { font-size: 1.5rem; }
    .stats-ribbon-number { font-size: 1.6rem; }
}

/* 768–991px — 平板 */
@media (max-width: 991px) {
    /* Navbar */
    .navbar .brand-text { font-size: 1.1rem !important; }
    .navbar .nav-link { padding: 0.5rem 1rem !important; }
    .navbar-brand small { font-size: 0.6rem !important; }
    .navbar .navbar-brand .fs-1 { font-size: 1.5rem !important; }

    /* Hero */
    .hero-section { min-height: auto; padding: 3rem 0; }
    .hero-title { font-size: 2rem; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-stats { margin-top: 1.5rem; padding-top: 1rem; }
    .hero-stat-number { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.8rem; }
    .hero-carousel .hero-slide-full { min-height: 45vh; }
    .hero-carousel .hero-title { font-size: 1.6rem; }
    .hero-carousel .hero-subtitle { font-size: 1rem; }
    .hero-carousel .hero-desc { font-size: 0.85rem; }
    .hero-carousel .hero-btn-custom { font-size: 0.85rem; padding: 10px 24px !important; }

    /* Section */
    .section-padding { padding: 2.5rem 0; }
    .section-title h2 { font-size: 1.5rem; }
    .section-title { margin-bottom: 2rem; }
    .section-title p { max-width: 100%; font-size: 0.9rem; }

    /* Feature cards */
    .feature-card { padding: 1.8rem 1rem; }
    .feature-icon { width: 64px; height: 64px; font-size: 1.5rem; }

    /* Product cards */
    .product-card-img { height: 180px; }
    .product-card-body { padding: 1rem; }
    .product-card-body h5 { font-size: 1rem; }

    /* Product detail */
    .product-detail-hero { padding: 2rem 0; }
    .product-detail-img { max-height: 350px; }
    .product-gallery { grid-template-columns: repeat(3, 1fr); }
    .product-gallery img { height: 80px; }
    .content-table th,
    .content-table td { padding: 0.5rem; font-size: 0.85rem; }

    /* Category cards */
    .product-category-card { padding: 1.2rem 0.8rem; }
    .category-icon-wrapper { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 0.8rem; }
    .product-category-card h5 { font-size: 0.95rem; }

    /* News */
    .news-card-img { height: 150px; }

    /* About */
    .about-hero { padding: 2.5rem 0; }
    .about-image { min-height: 200px; }

    /* Contact */
    .contact-info-card { padding: 1.5rem; }
    .contact-info-value { font-size: 1.1rem; }

    /* Industry cards */
    .industry-card { padding: 1.2rem 1rem; }
    .industry-card-icon { width: 50px; height: 50px; font-size: 1.2rem; }

    /* Breadcrumb */
    .breadcrumb-section { padding: 0.8rem 0; }

    /* Admin sidebar */
    .admin-sidebar { width: 220px; }
    .admin-body { padding: 1rem; }
    .admin-header { padding: 0.8rem 1rem; }
    .stat-card .stat-number { font-size: 1.5rem; }

    /* Footer */
    .footer { padding-top: 2.5rem !important; }
}

/* 576–767px — 大屏手机 */
@media (max-width: 767px) {
    /* Navbar */
    .navbar .brand-text { font-size: 0.95rem !important; }
    .navbar .navbar-brand .fs-1 { font-size: 1.2rem !important; }
    .navbar-brand small { font-size: 0.55rem !important; }

    /* Hero */
    .hero-section { padding: 2rem 0; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 1rem; }
    .hero-stat-number { font-size: 1.2rem; }
    .hero-stats .row .col-4 { padding: 0 5px; }
    .hero-carousel .hero-slide-full { min-height: 35vh; }
    .hero-carousel .hero-title { font-size: 1.3rem; }
    .hero-carousel .hero-subtitle { font-size: 0.9rem; }

    /* Section */
    .section-padding { padding: 2rem 0; }
    .section-title h2 { font-size: 1.3rem; }

    /* Feature cards */
    .feature-card { padding: 1.2rem 0.8rem; }
    .feature-icon { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 1rem; }

    /* Product cards */
    .product-card-img { height: 160px; }
    .product-card-body { padding: 0.8rem; }
    .product-card-body h5 { font-size: 0.9rem; }
    .product-card-body .product-subtitle { font-size: 0.8rem; }

    /* Product detail */
    .product-detail-hero { padding: 1.5rem 0; }
    .product-detail-img { max-height: 250px; }
    .product-gallery { grid-template-columns: repeat(2, 1fr); }
    .product-gallery img { height: 70px; }

    /* Category cards */
    .product-category-card { padding: 1rem 0.6rem; }
    .category-icon-wrapper { width: 48px; height: 48px; font-size: 1.1rem; margin-bottom: 0.6rem; }
    .product-category-card h5 { font-size: 0.85rem; }
    .product-category-card p { font-size: 0.78rem; margin-bottom: 0; }

    /* News */
    .news-card-img { height: 130px; }
    .news-card-body { padding: 1rem; }
    .news-card-body h5 { font-size: 0.95rem; }

    /* About */
    .about-hero { padding: 2rem 0; }
    .about-image { min-height: 180px; }

    /* Contact */
    .contact-info-card { padding: 1.2rem; }
    .contact-info-card .icon { width: 48px; height: 48px; font-size: 1.2rem; }

    /* Stats ribbon */
    .stats-ribbon { padding: 1rem 0; }
    .stats-ribbon-number { font-size: 1.3rem; }
    .stats-ribbon-icon { font-size: 1.2rem; }
    .stats-ribbon-label { font-size: 0.75rem; }

    /* Strength */
    .strength-card { padding: 1.2rem 0.8rem; }
    .strength-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .strength-card h5 { font-size: 0.95rem; }

    /* Industry */
    .industry-card { padding: 1rem 0.8rem; }
    .industry-card-icon { width: 44px; height: 44px; font-size: 1rem; }
    .industry-card h6 { font-size: 0.85rem; }

    /* CTA */
    .cta-section { padding: 30px 0; }
    .cta-heading { font-size: 1.2rem; margin-bottom: 20px; }
    .cta-heading .text-accent { font-size: 1.1rem; }
    .cta-card-header { padding: 14px 20px; font-size: 1.1rem; }
    .cta-card-body { padding: 20px; }
    .cta-phone-number { font-size: 1.3rem; }
    .cta-info-item { padding: 12px 14px; }
    .cta-info-item strong { font-size: 0.8rem; }
    .cta-info-item span { font-size: 0.78rem; }

    /* Footer */
    .footer { padding-top: 2rem !important; }
    .footer h5 { font-size: 1rem; }
    .footer h6 { font-size: 0.9rem; }
    .footer p, .footer li { font-size: 0.85rem; }

    /* Tables on mobile */
    .table-responsive table { font-size: 0.85rem; }

    /* Back to top */
    #backToTop { width: 38px !important; height: 38px !important; bottom: 20px !important; right: 20px !important; }

    /* Breadcrumb */
    .breadcrumb-section .breadcrumb { font-size: 0.85rem; }
}

/* <576px — 小屏手机 */
@media (max-width: 575px) {
    /* Navbar */
    .navbar .brand-text { font-size: 0.85rem !important; }
    .navbar .navbar-brand .fs-1 { font-size: 1rem !important; }
    .navbar-brand small { font-size: 0.5rem !important; }

    /* Hero */
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .hero-carousel .hero-slide-full { min-height: 30vh; }
    .hero-carousel .hero-title { font-size: 1.1rem; }
    .hero-carousel .hero-subtitle { font-size: 0.85rem; }
    .hero-carousel .hero-desc { font-size: 0.8rem; }

    /* Product cards */
    .product-card-img { height: 140px; }
    .product-gallery { grid-template-columns: repeat(2, 1fr); }
    .product-gallery img { height: 60px; }

    /* Section */
    .section-padding { padding: 1.5rem 0; }
    .section-title h2 { font-size: 1.2rem; }

    /* Stats ribbon */
    .stats-ribbon-number { font-size: 1.1rem; }

    /* CTA */
    .cta-heading { font-size: 1.1rem; }
    .cta-section { padding: 24px 0; }

    /* Footer */
    .footer .row > div { margin-bottom: 1rem; }

    /* Pagination */
    .pagination { font-size: 0.85rem; }
    .pagination .page-link { padding: 0.35rem 0.6rem; }
}
