/* ============================================
   企业官网基础样式 - 华为风格
   参考：www.huawei.com
   ============================================ */

:root {
    /* 华为风格配色 */
    --primary-red: #C8102E;        /* 华为红 */
    --primary-dark: #A00D26;       /* 深红 */
    --text-black: #1A1A1A;         /* 主黑色 */
    --text-gray: #666666;          /* 灰色文字 */
    --text-light: #999999;         /* 浅灰文字 */
    --bg-light: #F5F5F5;           /* 浅灰背景 */
    --bg-white: #FFFFFF;           /* 白色背景 */
    --border-color: #E5E5E5;       /* 边框色 */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-black);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   头部导航 - 华为风格
   ============================================ */

.header {
    background: var(--bg-white);
    box-shadow: 0 1px 0 var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: 1px;
}

.logo h1 span {
    color: var(--primary-red);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar a {
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    color: var(--text-black);
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-red);
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
}

/* ============================================
   轮播图/Banner 区域
   ============================================ */

.banner {
    margin-top: 72px;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    padding: 100px 0;
    color: white;
}

.banner-wrapper {
    text-align: center;
}

.banner h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.banner-placeholder {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
}

/* ============================================
   通用区块样式
   ============================================ */

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    max-width: 700px;
    margin: -40px auto 60px;
}

/* ============================================
   新闻中心 - 华为风格卡片
   ============================================ */

.news-section {
    background: var(--bg-white);
}

.news-list {
    display: grid;
    gap: 24px;
}

.news-item {
    background: var(--bg-white);
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary-red);
    transition: height 0.3s ease;
}

.news-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.news-item:hover::before {
    height: 100%;
}

.news-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-item h3 a {
    color: var(--text-black);
}

.news-item h3 a:hover {
    color: var(--primary-red);
}

.news-summary {
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.news-date::before {
    content: '📅';
    margin-right: 6px;
}

.news-views::before {
    content: '👁';
    margin-right: 6px;
}

/* ============================================
   产品中心 - 华为风格卡片
   ============================================ */

.product-section {
    background: var(--bg-light);
}

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

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-4px);
}

.product-img {
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-name a {
    color: var(--text-black);
}

.product-name a:hover {
    color: var(--primary-red);
}

.product-desc {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--primary-red);
    font-size: 22px;
    font-weight: 700;
}

.product-price::before {
    content: '¥';
    font-size: 16px;
    margin-right: 2px;
}

/* ============================================
   关于我们
   ============================================ */

.content-section {
    background: var(--bg-white);
}

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

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-black);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-image {
    background: var(--bg-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* ============================================
   联系我们
   ============================================ */

.contact-section {
    background: var(--bg-white);
}

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

.contact-item {
    background: var(--bg-light);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--primary-red);
    color: white;
}

.contact-item:hover h3,
.contact-item:hover p {
    color: white;
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-black);
}

.contact-item p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 0;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-black);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-black);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-group textarea {
    height: 160px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-red);
    color: white;
    padding: 14px 40px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   页脚 - 华为风格
   ============================================ */

.footer {
    background: var(--text-black);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

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

.footer-bottom p {
    margin-bottom: 8px;
}

/* ============================================
   分页样式
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    color: var(--text-black);
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pagination .current {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* ============================================
   按钮样式
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 992px) {
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .banner h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 16px 24px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 16px;
    }

    .banner {
        margin-top: 120px;
        padding: 60px 0;
    }

    .banner h2 {
        font-size: 28px;
    }

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

    section {
        padding: 50px 0;
    }

    .contact-form {
        padding: 24px;
    }
}
