/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0e17;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #f0b90b;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffd700;
}

ul {
    list-style: none;
}

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

/* 顶部栏 */
.top-bar {
    background-color: #131a2c;
    padding: 10px 0;
    border-bottom: 1px solid #1e2a4a;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #f0b90b;
}

.logo span {
    color: #4dabf7;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: #a0a0a0;
    font-size: 14px;
}

.contact-info a:hover {
    color: #f0b90b;
}

/* 导航菜单 */
.navbar {
    background-color: #1a2238;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #f0b90b;
}

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

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

.nav-menu a {
    color: #c0c0c0;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f0b90b;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f0b90b;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #f0b90b;
    font-size: 24px;
    cursor: pointer;
}

/* 主要按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f0b90b, #ffd700);
    color: #0a0e17;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(135deg, #ffd700, #f0b90b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 185, 11, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #4dabf7, #1c7ed6);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, #1c7ed6, #4dabf7);
    box-shadow: 0 5px 15px rgba(29, 126, 214, 0.3);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: #131a2c;
    margin-bottom: 30px;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #666;
}

.breadcrumb a {
    color: #a0a0a0;
}

.breadcrumb a:hover {
    color: #f0b90b;
}

/* 页头 */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a2238, #0a0e17);
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    color: #f0b90b;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #c0c0c0;
    max-width: 800px;
    margin: 0 auto;
}

/* 主要内容 */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    color: #4dabf7;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e2a4a;
}

/* 特色区块 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #131a2c;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #f0b90b;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: #f0b90b;
    margin-bottom: 15px;
    font-size: 22px;
}

/* 新闻卡片 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #131a2c;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background-color: #1e2a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    color: #f0b90b;
    font-size: 20px;
    margin-bottom: 10px;
}

.news-title a {
    color: inherit;
}

.news-excerpt {
    color: #b0b0b0;
    margin-bottom: 15px;
}

/* 页脚 */
.footer {
    background-color: #131a2c;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-column h3 {
    color: #f0b90b;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0a0a0;
}

.footer-links a:hover {
    color: #f0b90b;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e2a4a;
    color: #888;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
    }

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

    .nav-menu li {
        border-bottom: 1px solid #2a3a5a;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 移动端按钮增强 */
.mobile-buttons {
    display: none;
}

@media (max-width: 480px) {
    .mobile-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 20px 0;
    }

    .mobile-buttons .btn {
        flex: 1;
        max-width: 200px;
    }
}

/* 桌面端按钮固定 */
.desktop-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

@media (max-width: 768px) {
    .desktop-buttons {
        display: none;
    }
}

/* 产品列表 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #131a2c;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #1e2a4a;
}

.product-card h3 {
    color: #4dabf7;
    margin-bottom: 15px;
}

/* 联系表单 */
.contact-form {
    background-color: #131a2c;
    padding: 30px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #c0c0c0;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #1a2238;
    border: 1px solid #2a3a5a;
    border-radius: 4px;
    color: #e0e0e0;
}

.form-control:focus {
    outline: none;
    border-color: #f0b90b;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 关于页面 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* 新闻详情 */
.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-meta {
    color: #888;
    margin-bottom: 20px;
}

.news-detail-content {
    font-size: 18px;
    line-height: 1.8;
}

.news-detail-content h2,
.news-detail-content h3 {
    color: #f0b90b;
    margin: 25px 0 15px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.news-detail-content li {
    margin-bottom: 10px;
}