/* CSS变量定义 - 用于主题统一管理
 * --primary-color: 主题蓝色，用于重点突出和交互元素
 * --text-color: 主要文本颜色，确保良好的可读性
 * --background-light: 浅色背景，用于区分不同区域
 * --transition: 统一的过渡效果，确保平滑的动画体验
 */
:root {
    --primary-color: #007AFF;    /* 主题蓝色 */
    --text-color: #333333;       /* 文本颜色 */
    --background-light: #f5f5f7; /* 浅色背景 */
    --transition: all 0.3s ease; /* 统一过渡效果 */
}

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* 基础排版设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* 导航栏样式
 * 1. 使用固定定位确保始终可见
 * 2. 应用毛玻璃效果提升视觉层次
 * 3. 添加阴影提供深度感
 */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 导航容器 - 限制最大宽度并居中 */
.nav-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* 汉堡菜单按钮 */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

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

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 新闻区域样式
 * 1. 卡片式布局，响应式网格
 * 2. 优雅的阴影和过渡效果
 * 3. 图片优化显示
 * 4. 分页控制样式
 */
.news {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.news-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition);
}

.news-link:hover {
    color: #0056b3;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: #ffffff;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #ffffff;
}

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

.page-info {
    font-size: 1rem;
    color: var(--text-color);
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .nav-container {
        padding: 0.1rem 10px;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-link {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .stats-item {
        padding: 15px;
    }

    .stats-number {
        font-size: 24px;
    }

    .stats-label {
        font-size: 14px;
    }

    .product-card {
        width: 100%;
        margin: 10px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 8px;
    }

    .footer {
        padding: 20px 10px;
    }
}

/* Logo样式设置 */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 200px;
    width: 200px;
    object-fit: contain;
}

/* 导航链接样式
 * 1. 使用flex布局实现均匀分布
 * 2. 添加过渡效果增强交互体验
 */
.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 英雄区域整体样式 */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%);
}

/* 标题区域样式 */
.section-header {
    text-align: center;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
    max-width: 1200px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
}

/* 轮播展示区域 */
.hero-showcase {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.hero-carousel {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-top: 41.67%; /* 1440:600的比例 */
    overflow: hidden;
}

.carousel-slides {
    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 0.5s ease;
    will-change: opacity;
}

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

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

/* 轮播控制按钮 */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 8px;
    border-radius: 100px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

.carousel-indicator:hover {
    background: rgba(255,255,255,0.8);
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 内容区域样式 */
.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

/* 特性卡片样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .carousel {
        height: calc(600px * (100vw / 1440));
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .carousel {
        height: 400px;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
} 

/* 产品展示区域样式 */
.products {
    padding: 6rem 2rem;
    background: var(--background-light);
    width: 100%;
    box-sizing: border-box;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    margin-bottom: 1.5rem;
}

.product-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.product-features li {
    margin: 0.5rem 0;
    color: #666;
}

.product-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 团队介绍样式 */
.team {
    padding: 6rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.team-member {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.team-member:hover {
    background: var(--background-light);
}

.member-avatar {
    margin-bottom: 1.5rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.member-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 团队成员删除按钮样式 */
.member-delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.team-member:hover .member-delete-btn {
    opacity: 1;
}

.member-delete-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.1);
}

.member-delete-btn svg {
    width: 1rem;
    height: 1rem;
    fill: #FF3B30;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .product-container,
    .team-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
} 

/* 联系我们样式 */
.contact {
    padding: 6rem 2rem;
    background: var(--background-light);
    width: 100%;
    box-sizing: border-box;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.contact-card p a,
.contact-card p.address {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-card p a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
} 

/* 企业介绍样式 */
.company-intro {
    padding: 0 2rem;
    background: var(--background-light);
    min-height: auto;
    display: flex;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    padding-top: 0;
    box-sizing: border-box;
    width: 100%;
}

.intro-content {
    padding-right: 1rem;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.intro-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image svg {
    max-width: 100%;
    height: auto;
}

/* 响应式调整 */
@media (max-width: 968px) {
    .carousel {
        height: 400px;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .intro-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
}

/* 新闻弹窗样式 */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.news-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.news-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.news-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.news-modal-body {
    padding: 0 20px 20px;
}

.news-modal-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.news-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-modal-info {
    margin-bottom: 20px;
}

.news-modal-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-modal-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.news-modal-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 新闻内容HTML元素样式 */
.news-modal-content-text h1,
.news-modal-content-text h2,
.news-modal-content-text h3,
.news-modal-content-text h4,
.news-modal-content-text h5,
.news-modal-content-text h6 {
    color: #333;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.news-modal-content-text h3 {
    font-size: 18px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.news-modal-content-text p {
    margin: 12px 0;
    text-align: justify;
}

.news-modal-content-text ul,
.news-modal-content-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.news-modal-content-text li {
    margin: 8px 0;
    line-height: 1.6;
}

.news-modal-content-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.news-modal-content-text blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.news-modal-content-text blockquote p {
    margin: 0;
    color: #555;
}

.news-modal-content-text cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: right;
    font-style: normal;
}

/* 新闻卡片点击效果 */
.news-card {
    cursor: pointer;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .news-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .news-modal-title {
        font-size: 20px;
    }
    
    .news-modal-content-text {
        font-size: 14px;
    }
    
    .news-modal-header {
        padding: 10px 15px;
    }
    
    .news-modal-body {
        padding: 0 15px 15px;
    }
}
