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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Cantarell', '中易黑体', SimHei, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1b1b1b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   容器和布局
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 984px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1160px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

/* ============================================
   头部导航
   ============================================ */
.header {
    background-color: #000000;
    position: relative;
}

.navbar {
    background-color: #161616;
    padding: 24px 0;
}

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

@media (min-width: 1024px) {
    .navbar-content {
        justify-content: center;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #e2e2e2;
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #db342a;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    display: inline-block;
    padding: 6px 16px;
    color: #e2e2e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.143em;
    transition: color 0.3s ease;
    border: none;
}

.nav-link:hover {
    color: #f78d8b;
}

.nav-link.active {
    color: #db342a;
    font-weight: 700;
}

.logo-container {
    text-align: center;
    width: 100%;
    margin: 24px 0;
}

@media (min-width: 768px) {
    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-family: 'Josefin Slab', '中易宋体', SimSun, '新宋体', NSimSun, serif;
    font-size: 42px;
    font-weight: 400;
    color: #db342a;
    letter-spacing: 4px;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 42px;
    }
}

/* ============================================
   移动端导航抽屉
   ============================================ */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #161616;
    z-index: 10002;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 56px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #f7f7f7;
    font-size: 28px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #eb3e34;
}

.mobile-nav {
    padding: 0 24px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(76, 76, 76, 0.5);
    padding: 16px 0;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f7f7f7;
    text-decoration: none;
    font-size: 22px;
    font-weight: 400;
    min-width: 200px;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #f8aba9;
}

.mobile-nav-link.active {
    color: #eb3e34;
    font-weight: 700;
}

/* ============================================
   Hero区域
   ============================================ */
.hero-section {
    background-color: #161616;
    padding: 40px 0;
    text-align: center;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 32px 0;
    }
}

.hero-tagline {
    font-family: 'Raleway', arial, Sans-Serif;
    font-size: 25px;
    font-weight: 400;
    color: #969696;
    line-height: 1.25;
    white-space: pre-line;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 26px;
    }
}

@media (min-width: 1280px) {
    .hero-tagline {
        font-size: 28px;
    }
}

@media (min-width: 1536px) {
    .hero-tagline {
        font-size: 32px;
    }
}

/* ============================================
   主要内容区域
   ============================================ */
.main-content {
    background-color: #ffffff;
    min-height: 60vh;
}

.about-section {
    padding: 40px 0;
}

@media (max-width: 767px) {
    .about-section {
        padding: 32px 0;
    }
}

.content-wrapper {
    max-width: 83.33333333333334%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .content-wrapper {
        max-width: 66.66666666666666%;
        margin-left: 16.666666666666664%;
    }
}

.section-title {
    font-family: 'Raleway', arial, Sans-Serif;
    font-size: 22px;
    font-weight: 400;
    color: #1b1b1b;
    line-height: 1.3em;
    margin-bottom: 24px;
    text-wrap: pretty;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 22px;
    }
}

@media (min-width: 1536px) {
    .section-title {
        font-size: 24px;
    }
}

.section-content {
    color: #5e5e5e;
    font-size: inherit;
    line-height: inherit;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   图片画廊
   ============================================ */
.gallery-section {
    background-color: #f6f6f6;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

@media (min-width: 1024px) {
    .gallery-item {
        height: 300px;
    }
    
    .gallery-item:hover {
        transform: scale(1.02);
    }
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background-color: #161616;
    padding: 56px 0 40px;
    border-top: 1px solid #2a2a2a;
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    margin-bottom: 16px;
    color: #a9a9a9;
    font-size: 12px;
}

.footer-copyright a {
    color: #eb3e34;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #fbd1d0;
}

.footer-powered {
    color: #a9a9a9;
    font-size: 12px;
    margin-top: 16px;
}

.footer-powered a {
    color: #eb3e34;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-powered a:hover {
    color: #fbd1d0;
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 65px;
    height: 65px;
    background-color: #d22f25;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 3px 18px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transform: translateZ(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #eb3e34;
}

/* ============================================
   工具类
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   响应式优化
   ============================================ */
@media (max-width: 767px) {
    .content-wrapper {
        max-width: 100%;
        margin-left: 0;
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* 禁用滚动（当移动菜单打开时） */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
