/* 全局样式 */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-color: #f59e0b;
    --secondary-color: #64748b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #e2e8f0;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 50px;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.phone-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    20% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.9;
    }
    80% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

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

.count-up {
    animation: countUp 1s ease-out forwards;
    opacity: 0;
}

/* Hero区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
}

.particle:nth-child(2) {
    width: 30px;
    height: 30px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent);
}

.particle:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
}

.particle:nth-child(4) {
    width: 25px;
    height: 25px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
}

.particle:nth-child(5) {
    width: 35px;
    height: 35px;
    top: 30%;
    left: 40%;
    animation-delay: 8s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent);
}

.particle:nth-child(6) {
    width: 45px;
    height: 45px;
    top: 70%;
    left: 15%;
    animation-delay: 1s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent);
}

.particle:nth-child(7) {
    width: 20px;
    height: 20px;
    top: 15%;
    left: 70%;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent);
}

.particle:nth-child(8) {
    width: 55px;
    height: 55px;
    top: 50%;
    left: 85%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
}

.particle:nth-child(9) {
    width: 30px;
    height: 30px;
    top: 85%;
    left: 60%;
    animation-delay: 7s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
}

.particle:nth-child(10) {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 30%;
    animation-delay: 9s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent);
}

.particle:nth-child(11) {
    width: 25px;
    height: 25px;
    top: 15%;
    left: 60%;
    animation-delay: 1s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent);
}

.particle:nth-child(12) {
    width: 50px;
    height: 50px;
    top: 70%;
    left: 40%;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
}

.particle:nth-child(13) {
    width: 30px;
    height: 30px;
    top: 40%;
    left: 15%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent);
}

.particle:nth-child(14) {
    width: 45px;
    height: 45px;
    top: 20%;
    left: 75%;
    animation-delay: 7s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
}

.particle:nth-child(15) {
    width: 35px;
    height: 35px;
    top: 65%;
    left: 85%;
    animation-delay: 9s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
}

.particle:nth-child(16) {
    width: 55px;
    height: 55px;
    top: 50%;
    left: 5%;
    animation-delay: 11s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent);
}

.particle:nth-child(17) {
    width: 20px;
    height: 20px;
    top: 80%;
    left: 55%;
    animation-delay: 13s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
}

.particle:nth-child(18) {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 90%;
    animation-delay: 15s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
}

.particle:nth-child(19) {
    width: 60px;
    height: 60px;
    top: 85%;
    left: 25%;
    animation-delay: 17s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent);
}

.particle:nth-child(20) {
    width: 30px;
    height: 30px;
    top: 5%;
    left: 50%;
    animation-delay: 19s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent);
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s infinite;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

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

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

.stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 产品列表 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-code {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-desc {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* 技术支持 */
.support-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.support-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.support-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.support-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.support-item p {
    color: var(--secondary-color);
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--primary-color);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

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

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

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .contact-phone {
        display: none;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .support-items {
        grid-template-columns: 1fr;
    }

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