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

:root {
    --primary-color: #003d7a;
    --secondary-color: #0066cc;
    --accent-color: #e63946;
    --text-color: #1f2937;
    --light-bg: #f8f9fb;
    --border-color: #e5e7eb;
    --success-color: #00a86b;
    --garlock-blue: #003d7a;
    --garlock-red: #e63946;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

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

/* 导航栏 */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger:focus {
    outline: none;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        list-style: none;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        max-height: 300px;
    }
    
    .nav-links li {
        padding: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background-color: rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar .container {
        position: relative;
    }
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease;
}

.cta-button:hover {
    background-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 特色部分 */
.features {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: #6b7280;
    line-height: 1.8;
}

/* 行业应用场景 */
.industry-applications {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.industry-applications h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.industry-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 61, 122, 0.12);
    border-top-color: var(--accent-color);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.industry-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 授权资质 */
.certifications {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.certifications h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.cert-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--success-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cert-card:hover {
    box-shadow: 0 8px 20px rgba(0, 61, 122, 0.12);
    transform: translateY(-4px);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.cert-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.cert-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 规格参数面板 */
.specs-panel {
    margin-top: 1.5rem;
    padding: 0 2rem 1rem 2rem;
}

.specs-toggle {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-toggle:hover {
    background-color: var(--secondary-color);
    color: white;
}

.specs-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.specs-toggle.active .arrow {
    transform: rotate(180deg);
}

.specs-table {
    display: none;
    margin-top: 1rem;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.specs-table.active {
    display: table;
}

.specs-table th,
.specs-table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: #e8eef5;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.specs-table td {
    color: #4b5563;
}

.specs-table tr:hover td {
    background-color: #f0f4fa;
}

/* 资料库分类筛选 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.filter-btn .count {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.4rem;
}

.filter-btn.active .count {
    background-color: rgba(255, 255, 255, 0.25);
}

.document-card.hidden-by-filter {
    display: none;
}

/* 统计部分 */
.stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 关于页面内容 */
.about-content {
    padding: 60px 20px;
}

.about-text,
.about-section {
    margin-bottom: 3rem;
}

.about-text h2,
.about-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p,
.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    margin-top: 1.5rem;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

/* 团队部分 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #6b7280;
}

/* 服务页面 */
.services-content {
    padding: 60px 20px;
}

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

.service-card {
    background: white;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 61, 122, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--garlock-red) 0%, var(--garlock-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 61, 122, 0.2);
    border-color: var(--garlock-blue);
}

.product-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef5 0%, #d4dce8 100%);
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,61,122,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.92) contrast(1.05);
}

.service-card:hover .product-image img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--garlock-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 2rem;
    margin-top: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 2rem;
    width: 50px;
    height: 3px;
    background: var(--garlock-red);
    transition: width 0.4s ease;
}

.service-card:hover h3::after {
    width: 80px;
}

.service-card p {
    color: #4b5563;
    margin-bottom: 2rem;
    padding: 0 2rem;
    line-height: 1.8;
    font-size: 1.02rem;
    margin-top: 1.5rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.service-card ul li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: #6b7280;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-card:hover ul li {
    color: #4b5563;
}

.service-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--garlock-red);
    font-weight: bold;
    font-size: 1.15rem;
}

/* 联系页面 */
.contact-content {
    padding: 60px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.contact-form-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6b7280;
    line-height: 1.8;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.contact-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* 地图部分 */
.map-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.map-placeholder {
    background-color: var(--light-bg);
    padding: 80px 20px;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 61, 122, 0.35);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.45);
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .features h2,
    .page-header h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .footer .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 50px 20px;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .stats .container {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
