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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #4a90e2;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand h1 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 0;
    white-space: nowrap;
}

.nav-brand .tagline {
    font-size: 12px;
    color: var(--text-light);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8fab);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #ffeef4, #fff5f8);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-color);
}

/* 特色功能 */
.features {
    padding: 80px 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: var(--bg-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 产品预览 */
.products-preview {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ffeef4, #e8f4ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--text-color);
}

.product-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.product-card .btn-secondary {
    margin: 0 20px 20px;
}

/* 知识科普预览 */
.knowledge-preview {
    padding: 80px 0;
    background: var(--white);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.knowledge-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--bg-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.knowledge-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.knowledge-card .date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: block;
}

.knowledge-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.knowledge-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.knowledge-card a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #ffeef4, #fff5f8);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* 产品页面 */
.products-section {
    padding: 60px 0;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: var(--text-color);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.product-detail-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #ffeef4, #e8f4ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-detail-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-right: 10px;
}

.product-description h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.product-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-description li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.8;
}

.product-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 知识科普页面 */
.knowledge-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.knowledge-article {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.article-header h2 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.article-meta .date,
.article-meta .category {
    font-size: 14px;
    color: var(--text-light);
}

.article-meta .category {
    padding: 3px 12px;
    background: var(--bg-light);
    border-radius: 12px;
}

.article-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.article-content h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.article-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.8;
}

.article-content .highlight {
    background: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    margin: 20px 0;
}

/* 关于我们页面 */
.about-section {
    padding: 60px 0;
}

.about-intro,
.about-values,
.about-advantages,
.about-timeline {
    margin-bottom: 60px;
}

.about-intro h2,
.about-values h2,
.about-advantages h2,
.about-timeline h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.about-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.advantage-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 联系我们页面 */
.contact-section {
    padding: 60px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-info-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 15px;
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-detail {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-time {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-form-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.form-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

.service-locations {
    margin-top: 60px;
}

.service-locations h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.location-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

.location-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.location-card ul {
    list-style: none;
}

.location-card li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.location-card li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-year {
        left: -30px;
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
}