/* 全局样式 */
:root {
    --primary-color: #ca141d;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --border-color: #eee;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 通用布局 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 通用标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.section-desc {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #b01118;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 卡片样式 */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 图片样式 */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 24px;
    }
}

/* 导航栏样式 */
.nav {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: 66px;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-item {
    position: relative;
    height: 66px;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 20px;
    padding: 8px;
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--primary-color);
}

.contact-btn {
    padding: 8px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.contact-btn:hover {
    background: #b01118;
    transform: translateY(-2px);
}

/* 页面通用布局 */
.page-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg-light);
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.hero-desc {
    font-size: 20px;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
}

/* 内容区域通用样式 */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

/* 产品卡片样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.product-info p {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* 新闻卡片样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.news-image {
    position: relative;
    height: 200px;
}

.news-content {
    padding: 24px;
}

.news-date {
    color: var(--lighter-text);
    font-size: 14px;
    margin-bottom: 12px;
}

/* 响应式导航 */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-desc {
        font-size: 18px;
    }
    
    .content-section {
        padding: 60px 0;
    }
}

/* 页脚样式优化 */
.footer {
    background: var(--bg-white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    margin-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-info {
    text-align: center;
    color: var(--lighter-text);
    font-size: 14px;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--primary-color);
}

/* 特性展示样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--bg-white);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.feature-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(202, 20, 29, 0.1);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 40px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumb-item {
    color: var(--light-text);
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--lighter-text);
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
} 