/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f5f5f7;
}

/* 导航栏 */
.navbar {
    background-color: rgba(22, 22, 23, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.nav-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-menu-btn span {
    width: 20px;
    height: 2px;
    background-color: #fff;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 44px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 28px;
    font-weight: 300;
}

/* 产品展示 */
.products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-info p {
    font-size: 16px;
    color: #6e6e73;
}

/* 产品详情页 */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.product-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5ea;
}

.product-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.product-model {
    font-size: 24px;
    color: #6e6e73;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.product-content .product-image {
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-content .product-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.product-content .product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.product-specs {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-specs h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-specs h2::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    margin-bottom: 20px;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.product-specs li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.product-specs li:hover {
    background-color: #fafafa;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

.product-specs li strong {
    color: #1d1d1f;
    font-weight: 600;
    flex: 0 0 200px;
}

.product-specs li span {
    color: #6e6e73;
    font-weight: 400;
    text-align: right;
    flex: 1;
}

/* 关于我们页面 */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.about h1 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5ea;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-text h2::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #424245;
    line-height: 1.8;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 联系我们页面 */
.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.contact h1 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5ea;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info h2::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #424245;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info p strong {
    color: #1d1d1f;
    font-weight: 600;
    flex: 0 0 150px;
    min-width: 150px;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form h2::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #424245;
    transition: color 0.2s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    background-color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #667eea;
}

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

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4090 100%);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 页脚 */
.footer {
    background-color: #1d1d1f;
    color: #f5f5f7;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 14px;
    color: #86868b;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #86868b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12px;
    color: #86868b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        width: 100%;
        background-color: rgba(22, 22, 23, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .product-content,
    .about-content,
    .contact-content,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-header h1,
    .about h1,
    .contact h1 {
        font-size: 36px;
    }

    .product-specs h2,
    .about-text h2,
    .contact-info h2,
    .contact-form h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .product-header h1,
    .about h1,
    .contact h1 {
        font-size: 28px;
    }

    .product-model {
        font-size: 20px;
    }
}