/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ===== 通用布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-grey {
    background-color: #f5f5f5;
}

.section-white {
    background-color: white;
}

/* ===== 顶部横幅 ===== */
.top-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Logo样式 ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 保留文字样式作为备用 */
.logo-text {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-reg {
    font-size: 14px;
    vertical-align: super;
    color: #ff9800;
}

/* ===== 搜索框样式 ===== */
.search-box {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-box input {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: white;
    width: 280px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.search-box button:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== 导航栏样式 ===== */
.navbar {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f, #ff9800);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #d32f2f;
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.05) 0%, rgba(211, 47, 47, 0.02) 100%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links li.active a {
    color: #d32f2f;
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.05) 100%);
}

.nav-links li.active a::after {
    width: 80%;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #d32f2f;
    color: #d32f2f;
}

.btn-outline:hover {
    background: #d32f2f;
    color: white;
}

/* ===== 主横幅区域 ===== */
.main-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%), 
                url('https://images.unsplash.com/photo-1600566752355-35792bedcfea?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banner-text {
    max-width: 800px;
    padding: 40px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
    line-height: 1.2;
}

.banner-text p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ===== 区块标题样式 ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 38px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ff9800);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== 产品展示区域 ===== */
.products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ff9800);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-img::after {
    opacity: 1;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.product-content p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== 特性区域 ===== */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #0097a7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 48px;
    color: #00bcd4;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0,188,212,0.1) 0%, rgba(0,188,212,0.05) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0,188,212,0.2) 0%, rgba(0,188,212,0.1) 100%);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== 页脚 ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ddd;
    padding: 60px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ff9800, #00bcd4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #d32f2f;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
    color: #d32f2f;
}

.footer-links a:hover {
    color: #d32f2f;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* ===== 公司简介页面样式 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 50px;
}

.about-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.about-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211,47,47,0.1) 0%, rgba(0,188,212,0.1) 100%);
}

.about-text {
    padding: 20px 0;
}

.about-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f, #ff9800);
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-text ul {
    margin: 20px 0;
    padding-left: 0;
}

.about-text li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 15px;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
}

/* ===== 标签切换样式 ===== */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    justify-content: center;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 25px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    color: #666;
}

.tab-btn:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #d32f2f 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.tab-pane {
    display: none;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .banner-text h1 {
        font-size: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .search-box {
        order: 2;
        width: 100%;
        max-width: 300px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    
    .nav-links a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .main-banner {
        height: 400px;
        background-attachment: scroll;
    }
    
    .banner-text {
        padding: 20px;
    }
    
    .banner-text h1 {
        font-size: 32px;
    }
    
    .banner-text p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .tab-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .product-img {
        height: 200px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .tab-pane {
        padding: 20px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d32f2f, #ff9800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
}

/* ===== 选择文本样式 ===== */
::selection {
    background-color: rgba(211, 47, 47, 0.2);
    color: #333;
}

::-moz-selection {
    background-color: rgba(211, 47, 47, 0.2);
    color: #333;
}

/* ===== 加载动画 ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}