/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* 导航栏样式 */
header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

header:hover {
    background-color: transparent;
}

nav {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    gap: 0;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    margin-right: -5px;
    transform: none;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    transform: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links li.active a {
    color: #e67e22;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    margin: 6px 0;
    transition: 0.4s;
}

/* 移动端导航样式 */
@media (max-width: 992px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    header {
        position: relative;
        overflow-x: hidden;
    }

    nav {
        padding: 0 15px;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 60px;
        overflow-x: hidden;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 100%;
        padding: 0;
        position: relative;
        width: 100%;
        overflow-x: hidden;
    }

    .logo {
        height: 40px;
        margin: 0;
        margin-left: 15px;
        position: static;
        transform: none;
        flex: 0 0 auto;
        overflow: visible;
    }

    .logo img {
        max-height: 40px;
        object-fit: contain;
    }

    .mobile-menu-btn {
        display: none; /* 隐藏菜单按钮 */
    }

    .nav-links {
        display: flex;
        position: static;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        max-height: none;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        white-space: nowrap;
        flex: 1;
        justify-content: flex-start;
        margin-left: 20px;
    }

    /* 隐藏滚动条 */
    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0 10px;
        width: auto;
        text-align: center;
        flex: 0 0 auto;
    }

    .nav-links a {
        padding: 10px 0;
        width: auto;
        display: block;
        font-size: 18px;
        white-space: nowrap;
        word-wrap: normal;
        font-weight: 500;
    }

    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
        min-height: calc(100vh - 60px);
    }
}

/* 小屏幕设备优化 */
@media (max-width: 576px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    nav {
        height: auto;
        min-height: 50px;
        padding: 10px 15px;
    }

    .nav-container {
        gap: 10px;
    }

    .logo {
        height: 30px;
        margin-left: 20px;
    }

    .logo img {
        max-height: 30px;
    }

    .nav-links {
        margin-left: 10px;
    }

    .nav-links li {
        margin: 0 8px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
        font-weight: 500;
    }

    main {
        min-height: calc(100vh - 50px);
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 360px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    nav {
        min-height: 45px;
        padding: 8px 10px;
    }

    .logo {
        height: 25px;
        margin-left: 20px;
    }

    .logo img {
        max-height: 25px;
    }

    .nav-links {
        margin-left: 5px;
    }

    .nav-links li {
        margin: 0 5px;
    }

    .nav-links a {
        font-size: 15px;
        padding: 6px 0;
        font-weight: 500;
    }

    main {
        min-height: calc(100vh - 45px);
    }
}

/* 主要内容区域 */
main {
    padding-top: 80px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
}

.hero {
    width: 100%;
    height: 100vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #f8f8f8;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-links li {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* 打印样式 */
@media print {
    header, footer {
        display: none;
    }

    main {
        margin-top: 0;
    }
} 