/* 首页专用样式 */

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 50%, #2d5a87 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(30, 58, 95, 0.9) 50%, rgba(45, 90, 135, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.gear-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

.gear-large {
    font-size: 10rem;
    left: 20%;
    top: 20%;
    animation: rotateClockwise 8s linear infinite;
}

.gear-small {
    font-size: 6rem;
    right: 25%;
    bottom: 25%;
    animation: rotateCounterClockwise 6s linear infinite;
}

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

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

/* 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;
}

/* 添加旋转光环效果 */
.floating-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: spinRing 10s linear infinite;
}

.floating-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border: 2px dashed rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    animation: spinRing 15s linear infinite reverse;
}

@keyframes spinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 特色产品 */
.featured-products {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.section-badge {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0a2540;
    margin-bottom: 0.5rem;
}

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

/* 公司优势 */
.advantages {
    padding: 6rem 0;
    background: white;
}

.advantage-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

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

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

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

.advantage-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* 服务流程 */
.service-process {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.process-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-number {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.process-card .process-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #3b82f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.process-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* 最新新闻 */
.latest-news {
    padding: 6rem 0;
    background: white;
}

/* CTA区域 */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* 页脚 */
.footer {
    background: #0a2540;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer h3 i {
    margin-right: 0.5rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

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

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

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

.footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

.newsletter-form button {
    width: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* 产品卡片美化 */
.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-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;
}

/* 导航栏美化 */
.navbar {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.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%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        text-align: center;
    }

    .hero-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .floating-icon {
        font-size: 5rem;
    }

    .hero-image {
        min-height: 200px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s 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-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #0a2540;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: #0a2540;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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