/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 响应式字体大小基础设置 */
:root {
    --base-font-size: 16px;
}

@media (max-width: 768px) {
    :root {
        --base-font-size: 14px;
    }
}

@media (max-width: 480px) {
    :root {
        --base-font-size: 13px;
    }
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #ffffff;
    background-color: #121212;
    line-height: 1.7;
    font-size: var(--base-font-size);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 确保移动设备容器宽度正确 */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background-color: #d4af37;
    color: #121212;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #f0c14b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 额外添加：确保导航栏在任何情况下都不会变为白色 */
.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    margin-right: 16px;
}

.logo-text h1 {
    font-size: 26px;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #d4af37;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding: 15px 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links.active li {
    margin: 0;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.nav-links.active li:last-child {
    border-bottom: none;
}

.nav-links.active a {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    display: block;
    width: 100%;
}

.nav-links.active a:hover {
    color: #d4af37;
    background-color: #2a2a2a;
    border-radius: 6px;
}

/* 页脚样式 */
footer {
    background-color: #121212;
    color: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-icon {
    background-color: #d4af37;
}

.footer-logo .logo-icon::after {
    background-color: #121212;
}

.footer-logo .logo-text h3 {
    font-size: 1.25rem;
    color: #d4af37;
}

.footer-logo .logo-text p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    color: #d4af37;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* 通用部分标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.title-line {
    width: 100px;
    height: 3px;
    background-color: #d4af37;
    margin: 0 auto;
    border-radius: 3px;
}

/* 响应式设计 - 通用部分 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    /* 确保所有元素不超出屏幕 */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}