/* ========== 全局变量 ========== */
:root {
    --bg-color: #0a192f;
    --secondary-color: #112240;
    --text-color: #8892b0;
    --text-light: #ccd6f6;
    --heading-color: #e6f1ff;
    --accent-color: #ff6600;
    --accent-glow: rgba(255, 102, 0, 0.4);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

a:hover {
    color: #ff8533;
}

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

/* ========== 导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-color);
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > .nav-link {
    cursor: default;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 47, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 170px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: rgba(255, 102, 0, 0.2);
    color: var(--accent-color);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    width: 180px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--accent-color);
    width: 220px;
    background: rgba(255, 255, 255, 0.12);
}

.search-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #ff8533;
    transform: scale(1.1);
}

/* ========== Banner轮播 ========== */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a192f 0%, #112240 40%, #0d2847 100%);
    margin-top: 70px;
}

.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.banner-particles::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,102,0,0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.banner-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100,255,218,0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -50px;
    animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.banner-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.banner-slider {
    position: relative;
    z-index: 2;
    height: 100%;
}

.banner-slide {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-slide.active {
    display: flex;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-content {
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff6600, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 16px;
    color: #ccd6f6;
}

.banner-content p {
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto 28px;
    color: #8892b0;
}

.banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.banner-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: white;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.5);
    color: white;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.banner-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ========== 通用区块 ========== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--accent-color);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-color);
    font-size: 16px;
}

/* ========== 关于我们 ========== */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 0 0 380px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 24px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 15px;
}

.feature-icon {
    font-size: 20px;
}

/* ========== 卡片网格 ========== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.15);
}

.card h3 {
    color: var(--heading-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.card-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.card-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(10, 25, 47, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: var(--heading-color);
    font-size: 16px;
    margin-bottom: 20px;
}

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

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

.footer-section a,
.footer-section li {
    color: var(--text-color);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    color: var(--text-color);
    font-size: 13px;
}

.footer-bottom a {
    color: var(--text-color);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ========== 页面头部 ========== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), #112240);
    padding: 110px 0 50px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-size: 28px;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-color);
    font-size: 15px;
}

/* ========== 文章详情 ========== */
.article-meta {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body {
    color: var(--text-light);
    line-height: 2;
    font-size: 15px;
}

.article-body h2, .article-body h3 {
    color: var(--heading-color);
    margin: 24px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body pre {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.article-body code {
    background: rgba(255, 102, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.article-body th, .article-body td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.article-body th {
    color: var(--text-color);
    font-weight: 500;
}

.article-body td {
    color: var(--text-light);
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

/* ========== 联系我们 ========== */
.contact-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 40px;
}

.contact-image {
    flex: 0 0 380px;
}

.contact-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: rgba(17, 34, 64, 0.6);
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 14px;
    color: #8892b0;
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 15px;
    color: #ccd6f6;
    margin: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 968px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .about-content { flex-direction: column; }
    .about-image { flex: none; width: 100%; }
    .contact-layout { flex-direction: column; }
    .contact-image { flex: none; width: 100%; }
    .nav { gap: 16px; }
    .header-search { display: none; }
}

@media (max-width: 640px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .banner-content h1 { font-size: 32px; }
    .banner-content h2 { font-size: 18px; }
    .section-header h2 { font-size: 28px; }
    .nav { display: none; }
}
