/* 现代科技风主题样式 */
:root {
    --primary-color: #d71920;
    --secondary-color: #f58220;
    --accent-color: #ffb347;
    --text-color: #2f2f2f;
    --text-light: #6b5b55;
    --bg-color: #fff;
    --border-color: #f0ded6;
    --shadow: 0 2px 10px rgba(126, 43, 24, 0.12);
    --gradient-primary: linear-gradient(135deg, #d71920 0%, #f58220 100%);
    --gradient-secondary: linear-gradient(135deg, #f58220 0%, #ffcf7a 100%);
    --tint-color: rgba(215, 25, 32, 0.1);
    --tint-strong: rgba(245, 130, 32, 0.18);
    --surface-warm: #fff7f2;
    --surface-soft: #fff1e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 14px rgba(126, 43, 24, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(245, 130, 32, 0.18);
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.nav-brand img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

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

.theme-switcher select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

/* 轮播图 */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(83, 19, 13, 0.62), rgba(120, 35, 16, 0.38), rgba(0, 0, 0, 0.28));
}

.hero-default {
    background: var(--gradient-primary);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 180px;
    color: #fff;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #b9151b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(215, 25, 32, 0.32);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* 通用section */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* 公司简介section */
.about-section {
    background: #fff;
}

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

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.company-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(245, 130, 32, 0.14));
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.media-placeholder {
    min-height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.1), rgba(245, 130, 32, 0.16));
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow);
}

.product-image .media-placeholder,
.news-image .media-placeholder,
.business-image .media-placeholder,
.qualification-image .media-placeholder {
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.product-gallery .media-placeholder.main-image {
    min-height: 360px;
}

/* 核心业务section */
.business-section {
    background: linear-gradient(135deg, #fff7f2 0%, #ffe2cf 100%);
}

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

.business-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.business-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    background: linear-gradient(145deg, #fff8f2, #ffe1cf);
    border: 1px solid rgba(215, 25, 32, 0.16);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(126, 43, 24, 0.12);
}

.business-icon svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.business-icon-testing {
    color: #d71920;
}

.business-icon-power {
    color: #f58220;
    background: linear-gradient(145deg, #fff7ed, #ffd9b8);
}

.business-icon-consult {
    color: #c2410c;
    background: linear-gradient(145deg, #fff8f2, #ffe8d6);
}

.business-icon-product {
    color: #b91c1c;
    background: linear-gradient(145deg, #fff4f2, #ffd6cc);
}

.business-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.business-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.business-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.business-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.business-link:hover {
    color: var(--secondary-color);
}

/* 产品section */
.products-section {
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tint-color);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 新闻section */
.news-section {
    background: var(--surface-warm);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
}

.news-content {
    padding: 20px;
}

.news-title a {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-summary {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: #42130f;
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    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: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 20px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .navbar .container {
        position: relative;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 8px;
    }

    .theme-switcher select {
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-content {
        padding-top: 130px;
    }

    .hero-section {
        height: 480px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 24px;
    }

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


/* 行内 SVG 图标（页脚联系方式、列表/详情元信息等） */
.inline-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    flex-shrink: 0;
}
