/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe WP', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #00aaff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00aaff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="grad"><stop offset="0%" style="stop-color:#00aaff;stop-opacity:0.1" /><stop offset="100%" style="stop-color:#0055aa;stop-opacity:0.1" /></linearGradient></defs><rect width="1200" height="400" fill="url(%23grad)"/></svg>');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.circle-logo {
    width: 150px;
    height: 150px;
    border: 3px solid #00aaff;
    border-radius: 50%;
    margin: 0 auto 40px;
    position: relative;
    animation: spin 20s linear infinite;
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.6), inset 0 0 40px rgba(0, 170, 255, 0.3);
}

.circle-logo::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #00aaff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #00aaff;
    width: 24px;
    border-radius: 4px;
}

/* Hero Banner 各页面通用 */
.hero-banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
}

.about-hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
}

.lab-hero, .news-hero, .contact-hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
}

/* 关于我们Section */
.about-content {
    padding: 80px 0;
    background-color: #fff;
}

.about-content h2 {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.about-content h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.about-content .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border: 8px solid #f0f0f0;
    border-radius: 8px;
}

.about-text p {
    margin: 15px 0;
    color: #666;
    line-height: 1.8;
}

/* 创装坊Section */
.lab-content {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.lab-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.lab-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.lab-content .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 0.95rem;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.lab-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.lab-card-image {
    width: 100%;
    height: 200px;
}

.lab-card h3 {
    padding: 20px 20px 10px;
    color: #333;
    font-size: 1.2rem;
}

.lab-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 新闻中心Section */
.news-content {
    padding: 80px 0;
    background-color: #fff;
}

.news-content h2 {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.news-content h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.news-content .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-content > .container > p:last-of-type {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.news-list {
    margin-bottom: 40px;
}

.news-article {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-article-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
}

.news-article-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.news-article-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #00aaff;
    color: #fff;
    border-color: #00aaff;
}

.pagination .current {
    background-color: #00aaff;
    color: #fff;
    border-color: #00aaff;
}

/* 联系我们Section */
.contact-content {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content h2 {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-content h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-content .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact-map {
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-map svg {
    width: 100%;
    height: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details p {
    color: #666;
    margin: 8px 0;
    font-size: 0.95rem;
}

.contact-qrcode {
    width: 180px;
    height: 180px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

.contact-qrcode svg {
    width: 100%;
    height: 100%;
}

/* 联系表单 */
.contact-form-section {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    grid-column: auto;
}

.contact-form textarea {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
}

.form-submit {
    grid-column: auto;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #00aaff;
}

/* 服务Section */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.services .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f7ff, #b3e5fc);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon {
    font-size: 2rem;
}

.service-card h3 {
    margin: 20px 0 10px;
    color: #333;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* 经验Section */
.experience {
    padding: 80px 0;
    background-color: #d3d3d3;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.experience .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 0.95rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.exp-item {
    height: 300px;
    background: linear-gradient(135deg, #5e35b1, #3949ab);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .services-grid,
    .lab-grid,
    .news-grid,
    .contact-section,
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-article {
        grid-template-columns: 1fr;
    }
    
    .news-article-image {
        width: 100%;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group:last-child,
    .form-submit {
        grid-column: auto;
    }
    
    .services h2,
    .lab-content h2,
    .news-content h3,
    .contact-content h3,
    .about-content h3 {
        font-size: 2rem;
    }
}
    position: fixed;
    width: 100%;
    bottom: 0;
}