/* 基础变量定义 - 深蓝与金色主题 */
:root {
    --primary-color: #0d1b2a; /* 深海军蓝 */
    --secondary-color: #1b263b;
    --accent-gold: #c5a059; /* 优雅的金色 */
    --accent-gold-hover: #e0b668;
    --text-main: #e0e1dd;
    --text-muted: #778da9;
    --bg-main: #0a1118; /* 极深蓝黑背景 */
    --bg-alt: #121d2b;
    --card-bg: rgba(27, 38, 59, 0.7);
    --border-color: rgba(197, 160, 89, 0.2);
}

/* 全局样式 */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 600;
}

/* 导航栏重写 */
.header-custom {
    background-color: rgba(13, 27, 42, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    float: left;
    line-height: 60px;
}

.logo a {
    color: var(--accent-gold);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-custom {
    float: right;
    background-color: transparent !important;
}

.nav-custom .layui-nav-item a {
    color: var(--text-main) !important;
    font-weight: 500;
}

.nav-custom .layui-nav-item a:hover {
    color: var(--accent-gold) !important;
}

.nav-custom .layui-this a {
    color: var(--accent-gold) !important;
}

.nav-custom .layui-this:after {
    background-color: var(--accent-gold) !important;
}

/* 英雄区 (Hero Section) */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('./assets/hero_banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 17, 24, 0.9) 0%, rgba(10, 17, 24, 0.6) 50%, rgba(10, 17, 24, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-left: 5px solid var(--accent-gold);
    padding-left: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
    margin-left: 25px;
}

/* 按钮样式 */
.btn-gold {
    background-color: var(--accent-gold) !important;
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.btn-outline-gold {
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: rgba(197, 160, 89, 0.1) !important;
    border-color: var(--accent-gold-hover) !important;
    color: var(--accent-gold-hover) !important;
}

/* 区块通用样式 */
.section-container {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 弹性等高辅助类 */
.flex-stretch {
    display: flex;
    flex-wrap: wrap;
}
.flex-stretch::before, .flex-stretch::after {
    display: none !important;
}
.flex-stretch > [class*="layui-col-"] {
    display: flex;
}

/* 卡片样式重写 */
.card-custom {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card-custom .layui-card-body {
    flex: 1;
}

.card-title {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--accent-gold) !important;
    font-size: 1.2rem !important;
    font-weight: 600;
}

.card-title i {
    margin-right: 8px;
}

.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 160, 89, 0.2);
}

/* 模型盒子样式 */
.model-box {
    background-color: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

.model-box h3 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.model-box .tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(197, 160, 89, 0.2);
    color: var(--accent-gold);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.model-box p:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hover-glow:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2) inset;
}

/* 时间线重写 */
.timeline-custom h3 {
    color: var(--accent-gold) !important;
    font-size: 1.3rem !important;
}

.timeline-custom p {
    color: var(--text-main) !important;
}

.layui-timeline-axis {
    color: var(--accent-gold) !important;
    background-color: var(--bg-main) !important;
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
