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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.logo h1 i {
    color: #e94560;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 首页轮播图 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(15,52,96,0.5) 100%);
}

.carousel-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.carousel-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 2px;
}

.carousel-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.cta-btn {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: white;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233,69,96,0.5);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 18px 22px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

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

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

.carousel-indicator.active {
    background: #e94560;
    transform: scale(1.2);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    color: #1a1a2e;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: #555;
    font-size: 1.05rem;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    padding: 12px 0;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.about-text li i {
    color: #e94560;
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid #e94560;
    border-radius: 15px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* 新闻资讯 */
.news {
    padding: 80px 0;
    background: #fff;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    min-width: 150px;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #e94560;
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(233,69,96,0.3);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.article-excerpt {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.article-meta {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-meta i {
    margin-right: 5px;
    color: #e94560;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-btn {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 14px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26,26,46,0.3);
}

.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,26,46,0.4);
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #e94560;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.4rem;
}

.contact-item h4 {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* 文章详情弹窗 */
.article-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.article-modal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.article-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s;
}

.article-modal .close:hover {
    color: #e94560;
    background: white;
}

.modal-article-header {
    position: relative;
}

.modal-article-header img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.modal-article-body {
    padding: 30px;
}

.modal-article-body h2 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-article-category {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.modal-article-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-article-content {
    line-height: 2;
    color: #444;
    font-size: 1.05rem;
}

.modal-article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .about-content {
        gap: 40px;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        margin: 5px 0;
    }

    .nav-links a {
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: rgba(233,69,96,0.2);
    }

    .hamburger {
        display: flex;
    }

    .hero {
        margin-top: 60px;
        height: calc(100vh - 60px);
    }

    .carousel-content h1 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-prev,
    .carousel-next {
        padding: 12px 16px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .about {
        padding: 50px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-image::before {
        display: none;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .news {
        padding: 50px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .article-modal .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }

    .modal-article-header img {
        height: 200px;
    }

    .modal-article-body {
        padding: 20px;
    }

    .modal-article-body h2 {
        font-size: 1.4rem;
    }
}

/* 小屏手机 */
@media (max-width: 375px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .carousel-content h1 {
        font-size: 1.5rem;
    }

    .cta-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .article-card:active {
        transform: scale(0.98);
    }

    .cta-btn:active {
        transform: scale(0.95);
    }

    .carousel-prev:active,
    .carousel-next:active {
        background: rgba(255,255,255,0.4);
    }
}
