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

:root {
    --primary: #0f298b;
    --secondary: #ff6b00;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: '微软雅黑', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 41, 139, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    padding-left: 0;
    padding-right: 0;
    margin-left: -80px;
    margin-right: -80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: -80px;
    margin-right: -80px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6b00;
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    min-width: 300px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    border-radius: 0;
    z-index: 20;
    transition: all 0.3s;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: auto;
    min-height: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.carousel-prev:hover,
.carousel-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.category-section {
    margin-bottom: 2rem;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 0;
}

.category-header .label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-header .label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.category-header .count {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    background: rgba(15, 41, 139, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 0.6rem 0;
    width: 100%;
    box-sizing: border-box;
}

.category-tab {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e8e8e8;
    background: white;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(15, 41, 139, 0.35);
    transform: translateY(-2px);
}

.category-tab:hover:not(.active) {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 41, 139, 0.15);
    transform: translateY(-1px);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.case-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

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

.case-id-text {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.case-info {
    padding: 1rem;
}

.case-info h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-info p {
    color: var(--text-light);
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .current-page {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 98%;
    width: auto;
    max-height: 98vh;
    min-width: 80%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.modal-content img {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    min-height: 60vh;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-info {
    padding: 1.2rem 1.5rem;
    background: white;
}

.modal-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.modal-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.float-service {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: 68px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.float-service .service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.float-service .service-item:last-child {
    border-bottom: none;
}

.float-service .service-item.orange {
    background: #ff6b00;
    color: #fff;
}

.float-service .service-item.orange:hover {
    background: #f56300;
}

.float-service .service-item.white {
    background: #fff;
    color: #666;
}

.float-service .service-item.white:hover {
    background: #f5f5f5;
}

.float-service .service-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
}

.float-service .service-item .label {
    font-size: 12px;
    line-height: 1.2;
}

.float-service .service-item .popover {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: normal;
    text-align: center;
}

.float-service .service-item .popover::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

.float-service .service-item:hover .popover {
    opacity: 1;
    visibility: visible;
}

.float-service .service-item .popover img {
    width: 120px;
    height: 120px;
    display: block;
}

.float-service .service-item .popover.popover-phone {
    white-space: nowrap;
    padding: 10px 16px;
}

.float-service .service-item .popover.popover-phone p {
    white-space: nowrap;
}

.float-service .service-item .popover p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.float-service .service-item .popover .popover-desc {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .case-card img {
        height: 120px;
    }
    
    .category-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
