/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.8rem;
    }
    .top-bar .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
    text-decoration: none;
}

.navbar-brand .logo-img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.navbar-brand:hover .logo-img {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.navbar-brand .company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.navbar-brand small {
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.navbar-brand:hover .company-name {
    color: var(--primary-color);
}

.navbar-brand:hover small {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .navbar-brand {
        margin-right: 1rem;
    }
    
    .navbar-brand .logo-img {
        max-height: 50px;
    }
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .navbar-nav {
        padding: 0.5rem 0;
    }
    .nav-item {
        border-bottom: 1px solid #eee;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .dropdown-menu {
        border: none;
        padding-left: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand .logo-img {
        max-height: 45px;
    }
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Swiper */
.main-swiper {
    height: 600px;
    position: relative;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    padding: 0 1rem;
}

.swiper-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.swiper-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Titles */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background-color: white;
    padding: 4rem 0;
}

.about-section img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Products Section */
.product-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    border-radius: 5px;
    margin-bottom: 1rem;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* News Section */
.news-card.featured {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.news-card.featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-list {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.news-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Advantages Section */
.advantages-section {
    background-color: var(--light-color);
}

.advantage-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.advantage-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-image img {
    transform: scale(1.05);
}

.advantage-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0;
    color: var(--dark-color);
}

.advantage-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .advantage-card {
        padding: 1.2rem;
    }
    
    .advantage-image img {
        height: 180px;
    }
    
    .advantage-card h4 {
        font-size: 1.1rem;
        margin: 0.8rem 0;
    }
    
    .advantage-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .advantage-image img {
        height: 160px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-swiper {
        height: 400px;
    }

    .swiper-content h2 {
        font-size: 2rem;
    }

    .swiper-content p {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-section img {
        margin-bottom: 1.5rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-card img {
        height: 180px;
    }

    .news-card.featured img {
        height: 200px;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .main-swiper {
        height: 300px;
    }

    .swiper-content h2 {
        font-size: 1.5rem;
    }

    .swiper-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-section {
        padding: 2rem 0;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .product-card img {
        height: 160px;
    }

    .news-card.featured img {
        height: 180px;
    }

    .news-content h4 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* 核心资源卡片美化升级 */
.core-resources-section .resource-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    position: relative;
    min-height: 340px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    padding-top: 0;
    margin-bottom: 0.5rem;
}
.core-resources-section .resource-card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.core-resources-section .resource-bar {
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 72px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    margin-bottom: 1.2rem;
}
.resource-card-1 .resource-bar { background: #1677ff; }
.resource-card-2 .resource-bar { background: #ffc800; }
.resource-card-3 .resource-bar { background: #6c757d; }
.resource-card-4 .resource-bar { background: #00cfff; }
.core-resources-section .resource-icon {
    position: absolute;
    left: 24px;
    top: 8px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 2;
    border: 4px solid #fff;
}
.core-resources-section .resource-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-right: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
}
.core-resources-section .resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 0;
}
.core-resources-section .resource-content {
    padding: 0 1.2rem 1.2rem 1.2rem;
}
.core-resources-section .resource-subtitle {
    font-weight: 600;
    margin-top: 0.7rem;
    color: #222;
    font-size: 1.05rem;
}
.core-resources-section .resource-desc {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.7;
}
@media (min-width: 768px) {
    .core-resources-section .row.g-4 {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem 0;
    }
    .core-resources-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 767.98px) {
    .core-resources-section .resource-card {
        min-height: 0;
        margin-bottom: 1.5rem;
    }
    .core-resources-section .resource-bar {
        height: 44px;
        padding-left: 60px;
    }
    .core-resources-section .resource-icon {
        left: 12px;
        top: 4px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .core-resources-section .resource-number {
        font-size: 1.1rem;
    }
    .core-resources-section .resource-title {
        font-size: 1rem;
    }
    .core-resources-section .resource-content {
        padding: 0 0.7rem 1rem 0.7rem;
    }
} 