/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', sans-serif;
}

/* 全局变量 */
:root {
    --primary-blue: #0a192f; /* 深蓝星空色 */
    --gold: #d4af37; /* 金黄色 */
    --light-gold: #f0e68c; /* 浅金色 */
    --dark-blue: #051029;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--primary-blue);
    color: var(--text-white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    z-index: 999;
    padding: 15px 0;
    border-bottom: 1px solid var(--gold);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    color: var(--gold);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--light-gold);
}

.menu-btn {
    display: none;
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
}

/* Banner样式 */
.banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner-bg.jpg') center/cover no-repeat;
    background-color: var(--primary-blue);
    background-blend-mode: overlay;
    z-index: 1;
}

#stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.banner-content p {
    font-size: 20px;
    color: var(--light-gold);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 18px;
}

.btn:hover {
    background-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--gold);
    margin: 20px auto 0;
}

/* 核心业务样式 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(5, 16, 41, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card i {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--light-gold);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 核心优势样式 */
.advantage-section {
    background-color: var(--dark-blue);
}

.advantage-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.advantage-item i {
    font-size: 30px;
    color: var(--gold);
    margin-top: 5px;
}

.advantage-item h3 {
    color: var(--light-gold);
    margin-bottom: 10px;
    font-size: 22px;
}

.advantage-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 衍生业务样式 */
.derivative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.derivative-card {
    background-color: rgba(5, 16, 41, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    text-align: center;
    transition: transform 0.3s;
}

.derivative-card:hover {
    transform: translateY(-5px);
}

.derivative-card i {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.derivative-card h3 {
    color: var(--light-gold);
    margin-bottom: 15px;
    font-size: 20px;
}

.derivative-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 合作伙伴样式 */
.partner-section {
    background-color: var(--dark-blue);
}

.partner-list {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.partner-list p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: var(--gold);
    font-size: 16px;
}

/* 成功案例样式 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: rgba(5, 16, 41, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gold);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    color: var(--light-gold);
    margin-bottom: 10px;
    font-size: 18px;
}

.case-info p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 联系方式样式 */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 30px;
    color: var(--gold);
}

.contact-item p {
    color: var(--text-gray);
    font-size: 18px;
}

.qrcode {
    width: 120px;
    height: 120px;
    margin-top: 10px;
    border: 2px solid var(--gold);
    border-radius: 5px;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-blue);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--gold);
}

.footer p {
    color: var(--gold);
    font-size: 14px;
}

/* 响应式样式 - 平板 */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px;
    }

    .banner-content h1 {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* 响应式样式 - 手机 */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--dark-blue);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 30px;
        transition: right 0.3s;
        border-left: 1px solid var(--gold);
    }

    .nav-links.active {
        right: 0;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 修复页面高度计算问题 */
html {
    height: auto !important;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100% !important;
    height: auto !important;
}

/* 确保所有区块可见 */
.section {
    position: relative;
    z-index: 10; /* 确保内容在星星之上且被正确识别 */
}

/* 修复移动端菜单可能导致的高度问题 */
.nav-links.active {
    height: auto;
    min-height: calc(100vh - 80px);
}