:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --text-light: #ffffff;
    --text-dark: #333333;
    --padding-desktop: 4rem;
    --padding-mobile: 2rem;
    --max-width: 1200px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f5f5;
}

/* 通用样式 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

/* 导航栏 */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--padding-desktop);
}

.logo {
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

nav {
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 主要内容区域 */
#hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    background-color: rgba(0,0,0,0.6);
    padding: 3rem;
    border-radius: 10px;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.main-text {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* 产品区域 */
.product-section {
    padding: 6rem var(--padding-desktop);
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(4, 123, 248, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(28, 199, 255, 0.03) 0%, transparent 50%);
}

.product-section h2 {
    color: var(--text-dark);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.product-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #047bf8, #1cc7ff);
    margin: 1rem auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #047bf8, #1cc7ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: #fff;
}

.card-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
}

.card-content p {
    color: #666666;
    line-height: 1.6;
    font-size: 1rem;
}

.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(4, 123, 248, 0.2), transparent);
    height: 1px;
    width: 100%;
    top: 50%;
    transform: scaleX(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.tech-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(4, 123, 248, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.product-card:hover .tech-line {
    transform: scaleX(1);
    opacity: 0.2;
}

.product-card:hover .tech-circle {
    transform: scale(1);
    opacity: 1;
}

/* 页脚 */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

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

footer a {
    color: var(--text-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --padding-desktop: var(--padding-mobile);
    }

    header {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0.5rem 1rem;
    }

    .hero-content {
        margin: 0 var(--padding-mobile);
        padding: 2rem;
    }

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

    .main-text {
        font-size: 1.2rem;
    }

    .product-section {
        padding: 4rem var(--padding-mobile);
    }

    .product-section h2 {
        font-size: 2rem;
    }

    .product-card {
        padding: 1.5rem;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
    margin: 0 auto 1rem;
}

.qr-code p {
    color: #666;
    font-size: 14px;
}

/* 添加弹出动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
} 