/* ========================================
   金点轻站 - 全局样式表
   影视复古风 | 黑色 + 银灰 + 暗红
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #0a0a0a;
    color: #c0c0c0;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #8b0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a52a2a;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-bottom: 2px solid #8b0000;
    transition: all 0.4s ease;
    padding: 15px 0;
}

.header.scrolled {
    background: linear-gradient(180deg, rgba(5, 5, 5, 1) 0%, rgba(15, 15, 15, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
    padding: 10px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.5));
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #e0e0e0;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 50%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 15px;
    color: #c0c0c0;
    padding: 10px 0;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b0000, #a52a2a);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e0e0e0;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 40px 30px;
        gap: 25px;
        transition: right 0.4s ease;
        border-left: 2px solid #8b0000;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .header-container {
        padding: 0 20px;
    }
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
    border-top: 2px solid #8b0000;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8b0000;
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    color: #909090;
    line-height: 2;
}

.footer-section ul li a:hover {
    color: #a52a2a;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom p {
    font-size: 13px;
    color: #707070;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* ========================================
   通用组件
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: #e0e0e0;
    margin-bottom: 15px;
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #8b0000;
    font-size: 20px;
}

.section-title h2::before {
    left: -50px;
}

.section-title h2::after {
    right: -50px;
}

.section-title p {
    font-size: 16px;
    color: #909090;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 100%);
    color: #e0e0e0;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a52a2a 0%, #8b0000 100%);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 0;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #8b0000;
}

.btn-outline:hover {
    background: #8b0000;
}

/* ========================================
   动画效果
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 32px;
    }

    .section-title h2::before {
        left: -30px;
    }

    .section-title h2::after {
        right: -30px;
    }

    .container {
        padding: 0 20px;
    }
}
