:root {
    --primary-color: #0a2540;
    --secondary-color: #1e3a5f;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 76px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6 !important;
}

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

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

/* Logo双齿轮转动 */
.logo-gears {
    display: inline-flex;
    position: relative;
    margin-right: 0.5rem;
    width: 28px;
    height: 20px;
}

.gear-left {
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
    animation: rotateClockwise 3s linear infinite;
}

.gear-right {
    font-size: 0.9rem;
    position: absolute;
    right: 0;
    bottom: 0;
    animation: rotateCounterClockwise 2s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 50%, #2d5a87 100%);
    color: white;
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    text-align: center;
    opacity: 0.2;
}

/* 特性展示 */
.features {
    background: white;
}

.feature-card {
    padding: 3rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* 产品预览 */
.products-preview {
    background: var(--light-bg);
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.product-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 3rem;
}

.product-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

/* 新闻预览 */
.news-preview {
    background: white;
}

.news-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.news-body {
    padding: 1.5rem;
}

.news-date {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.news-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* 页脚 */
.footer {
    background: #0a2540 !important;
    color: white;
}

.footer h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #3b82f6;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 50%, #2d5a87 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* 内容区域 */
.content-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

/* 产品卡片图片 */
.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

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

.product-image {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* 产品卡片美化 */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.product-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: 2.5rem;
    text-align: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.product-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.product-body {
    padding: 2rem;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0a2540;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

/* 新闻卡片图片 */
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

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

.news-image {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* 新闻卡片美化 */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.news-body {
    padding: 2rem;
}

.news-date {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0a2540;
    line-height: 1.4;
}

.news-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* 产品详情页 */
.product-detail {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-detail-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2540;
}

.product-detail-meta {
    color: #9ca3af;
    margin-top: 0.5rem;
}

.product-detail-content h2,
.product-detail-content h3,
.product-detail-content h4 {
    color: #0a2540;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-detail-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.product-detail-content li {
    margin-bottom: 0.5rem;
}

/* 新闻详情页 */
.news-detail {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-detail-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2540;
}

.news-detail-meta {
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Markdown内容样式 */
.markdown-content {
    line-height: 1.8;
}

.markdown-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.markdown-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

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

.markdown-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}

.markdown-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.markdown-content pre {
    background: #1f2937;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: white;
}

/* Markdown 图片样式 */
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 新闻和产品内容中的图片 */
.news-detail-content img,
.product-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 联系表单 */
.contact-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: none;
}

.contact-info-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
    color: #0a2540;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .nav-link::after {
        display: none;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 按钮美化 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 关于我们页面样式 */
.about-image-container {
    perspective: 1000px;
}

.about-image-card {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 50%, #2d5a87 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.3);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.image-icon {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.image-icon i {
    font-size: 6rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.image-stats {
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

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

.culture-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.culture-card i {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.culture-card h4 {
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.culture-card p {
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

.timeline {
    position: relative;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #60a5fa, #93c5fd);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 2rem;
}

.timeline-content h4 {
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

/* 响应式 - 移动端时间线 */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-year {
        left: 30px;
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }

    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
        padding: 1.5rem !important;
    }

    .about-image-card {
        padding: 2rem 1rem;
    }

    .image-icon i {
        font-size: 4rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .culture-card i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* 联系我们页面样式 */
.contact-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.contact-info-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.contact-info-card h4 {
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: #6b7280;
    margin: 0;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.support-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.support-card i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.support-card h4 {
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1rem;
}

.support-card p {
    color: #6b7280;
    margin: 0;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
