/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: #fff;
    padding: 20px 0;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #64ffda;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #64ffda 0%, #4f97ff 100%);
    color: #0a192f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #a8b2d1;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 特性区域 */
.features {
    padding: 100px 0;
    background: #fff;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #0a192f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #f5f7fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64ffda 0%, #4f97ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #0a192f;
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0a192f;
}

.feature-item p {
    color: #666;
}

/* 新闻区域 */
.news {
    padding: 100px 0;
    background: #f5f7fa;
}

.news h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #0a192f;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #64ffda 0%, #4f97ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a192f;
    font-size: 32px;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0a192f;
}

.news-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.news-link {
    color: #64ffda;
    text-decoration: none;
    font-weight: bold;
}

.news-link:hover {
    text-decoration: underline;
}

/* 产品区域 */
.products {
    padding: 100px 0;
    background: #fff;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #0a192f;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background: #f5f7fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64ffda 0%, #4f97ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #0a192f;
}

.product-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0a192f;
}

.product-item p {
    color: #666;
    margin-bottom: 20px;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f5f7fa;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #0a192f;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0a192f;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: linear-gradient(135deg, #64ffda 0%, #4f97ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a192f;
    font-size: 32px;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #0a192f;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #0a192f;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0a192f;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    margin-right: 15px;
    color: #64ffda;
    font-size: 20px;
}

.contact-item p {
    color: #666;
}

/* 新闻详情 */
.news-detail {
    padding: 100px 0;
    background: #fff;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #64ffda;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0a192f;
}

.news-detail-date {
    color: #999;
    margin-bottom: 30px;
    font-size: 14px;
}

.news-detail-body {
    line-height: 1.8;
    color: #333;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #0a192f;
}

/* 页脚 */
footer {
    background: #0a192f;
    color: #fff;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #64ffda;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #64ffda;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #172a45;
    text-align: center;
    color: #a8b2d1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .features h2,
    .news h2,
    .products h2,
    .about h2,
    .contact h2 {
        font-size: 28px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #64ffda;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 面包屑导航 */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #64ffda;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* 强调文本 */
.emphasis {
    color: #64ffda;
    font-weight: bold;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 文本居中 */
.text-center {
    text-align: center;
}

/* 文本左对齐 */
.text-left {
    text-align: left;
}

/* 文本右对齐 */
.text-right {
    text-align: right;
}

/* 边距 */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* 内边距 */
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

/* 背景色 */
.bg-primary {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: #fff;
}

.bg-secondary {
    background: #f5f7fa;
}

.bg-white {
    background: #fff;
}

/* 颜色 */
.text-primary {
    color: #0a192f;
}

.text-secondary {
    color: #666;
}

.text-accent {
    color: #64ffda;
}

/* 字体大小 */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-md { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.text-2xl { font-size: 36px; }

/* 字体粗细 */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }