/* ==================== 全局样式重置 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==================== Header 导航样式 ==================== */

:root {
    --header-bg: #0f0f1a;
    --header-text: #ffffff;
    --primary-color: #e5091d;
    --hover-color: #ff4158;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* 主 Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
}

/* Logo 区域 */
.header-logo {
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-icon {
    position: relative;
    display: block;
    width: fit-content;
    height: 50px;
    animation: logoFloat 3s ease-in-out infinite;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-icon i {
    position: absolute;
    left: 0;
    bottom: 0;
    width: fit-content;
    font-size: 1.2rem;
    color: #fff;
    white-space: nowrap;
    transform: rotate(6deg);
    font-family: Brush Script MT,cursive;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e5091d 0%, #ff4158 50%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(229, 9, 29, 0.5);
    position: relative;
}

.logo-text::before {
    content: 'Film2';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, rgba(229, 9, 29, 0.3) 0%, rgba(255, 65, 88, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    z-index: -1;
}

/* 导航菜单 */
.header-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.header-nav li a {
    color: var(--header-text);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.header-nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 9, 29, 0.1) 0%, rgba(255, 65, 88, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.header-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: transform 0.3s;
}

.header-nav li a:hover,
.header-nav li a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(229, 9, 29, 0.5);
}

.header-nav li a:hover::before,
.header-nav li a.active::before {
    opacity: 1;
}

.header-nav li a:hover::after,
.header-nav li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 搜索框 */
.header-search {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-search input {
    width: 300px;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--header-text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.header-search input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(229, 9, 29, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search button {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(229, 9, 29, 0.3);
}

.header-search button:hover {
    background: linear-gradient(135deg, var(--hover-color) 0%, #ff6b7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 29, 0.5);
}

.header-search button:active {
    transform: translateY(0);
}

/* 移动端按钮组 */
.mobile-buttons {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* 移动端搜索按钮 */
.mobile-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    color: var(--header-text);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.mobile-search-btn:hover {
    background: rgba(229, 9, 29, 0.15);
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-search-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--header-text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(229, 9, 29, 0.15);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--primary-color);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

/* 移动端搜索面板 */
.mobile-search-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-search-panel.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.search-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-header h3 {
    color: var(--header-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--header-text);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-search-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.search-box {
    display: flex;
    gap: 0.75rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--header-text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.mobile-search-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(229, 9, 29, 0.2);
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(229, 9, 29, 0.3);
}

.mobile-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 29, 0.5);
}

.mobile-search-submit:active {
    transform: translateY(0);
}

/* 移动端菜单面板 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: hidden;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

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

.mobile-nav li {
    margin-bottom: 0.5rem;
}

.mobile-nav li a {
    display: block;
    color: var(--header-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-nav li a:hover,
.mobile-nav li a.active {
    background: linear-gradient(135deg, rgba(229, 9, 29, 0.2) 0%, rgba(255, 65, 88, 0.2) 100%);
    color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 2px 8px rgba(229, 9, 29, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0 1.5rem;
    }

    .header-nav {
        gap: 1.5rem;
    }

    .header-search input {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .header-inner {
        height: 64px;
    }

    .header-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-buttons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-icon {
        font-size: 2.2rem;
    }

    .logo-text {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
        gap: 1rem;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .mobile-nav li a {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .search-content {
        width: 95%;
        padding: 1.5rem;
    }

    .mobile-buttons {
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 60px;
    }

    .logo-icon {
        font-size: 1.75rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .mobile-menu {
        top: 60px;
    }

    .search-header h3 {
        font-size: 1.25rem;
    }

    .search-box {
        flex-direction: column;
    }

    .mobile-search-submit {
        padding: 0.75rem 1.5rem;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 0.5rem;
    }
}

/* ==================== 响应式设计 ==================== */

/* 桌面端 (1400px) */
@media (max-width: 1400px) {
    .navbar-container {
        max-width: 1200px;
    }

    .search-box {
        min-width: 260px;
    }
}

/* 平板端 (1200px) */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .search-box {
        min-width: 220px;
    }

    .menu-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 平板端 (992px) - 切换到移动端布局 */
@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }

    .navbar-search {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        transition: all var(--transition-normal);
    }

    .mobile-search-btn:hover {
        background: rgba(229, 9, 29, 0.2);
        transform: scale(1.1);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        margin-left: 0.5rem;
        transition: all var(--transition-normal);
    }

    .mobile-menu-btn:hover {
        background: rgba(229, 9, 29, 0.2);
        transform: scale(1.1);
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .navbar-container {
        gap: 1rem;
    }
}

/* 平板端 (768px) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 60px;
        gap: 0.75rem;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .search-content {
        width: 95%;
        padding: 1.5rem;
    }

    .mobile-menu-panel {
        width: 280px;
    }

    .menu-overlay {
        right: 280px;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
}

/* 移动端 (480px) */
@media (max-width: 480px) {
    .navbar-container {
        height: 56px;
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo-icon {
        font-size: 1.75rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
    }

    .mobile-search-input {
        font-size: 0.9rem;
    }

    .mobile-menu-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .mobile-menu-panel {
        width: 260px;
    }

    .menu-overlay {
        right: 260px;
    }
}

/* 小屏手机 (360px) */
@media (max-width: 360px) {
    .navbar-container {
        height: 52px;
        padding: 0 0.5rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
    }

    .search-content {
        width: 98%;
        padding: 1rem;
    }

    .mobile-menu-panel {
        width: 240px;
    }

    .menu-overlay {
        right: 240px;
    }
}

/* ==================== 回到顶部按钮样式 ==================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(229, 9, 29, 0.4);
    outline: none;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(229, 9, 29, 0.6);
    background: linear-gradient(135deg, var(--hover-color) 0%, #ff6b7a 100%);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        height: 50px;
    }

    .navbar-container {
        height: 50px;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .mobile-menu-content {
        padding: 1rem;
    }
}

/* ==================== Footer 页脚样式 ==================== */

.footer {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    text-align: left;
}

.footer-logo .logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e5091d 0%, #ff4158 50%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(229, 9, 29, 0.5);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo .tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(229, 9, 29, 0.5);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.copyright {
    flex: 1;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0.25rem 0;
    line-height: 1.6;
}

.copyright .disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(229, 9, 29, 0.4);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo .logo-text {
        font-size: 2rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-main {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
    
    .copyright .disclaimer {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer-logo .logo-text {
        font-size: 1.75rem;
    }
    
    .footer-logo .tagline {
        font-size: 0.85rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column ul li a {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* ==================== 移动端优化 ==================== */

/* 防止移动端双击缩放 */
* {
    touch-action: manipulation;
}

/* 移除移动端点击高亮 */
a, button, input {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 改进移动端滚动性能 */
.navbar {
    will-change: transform, background, box-shadow;
}

.mobile-menu-panel {
    will-change: transform;
}

/* 移动端输入框优化 */
@media (max-width: 992px) {
    /* 防止 iOS 输入框自动放大 */
    input[type="text"],
    input[type="search"] {
        font-size: 16px !important;
    }

    /* 移动端搜索面板优化 */
    .mobile-search-panel {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* 移动端菜单列表优化 */
    .mobile-menu-list {
        padding-bottom: 2rem;
    }

    /* 增加移动端链接点击区域 */
    .mobile-menu-link {
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    /* 移动端按钮最小尺寸 */
    .mobile-search-btn,
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 安全区域适配（iPhone X+） */
@supports (padding: max(0px)) {
    @media (max-width: 992px) {
        .navbar-container {
            padding-left: max(0.75rem, env(safe-area-inset-left));
            padding-right: max(0.75rem, env(safe-area-inset-right));
        }

        .mobile-menu-panel {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ==================== 移动端增强功能 ==================== */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 移动端 body 锁定 */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* 菜单打开时的背景滚动位置保持 */
@media (max-width: 992px) {
    body {
        position: relative;
    }
}

/* 加载状态指示器 */
.navbar-loading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        #ff4158 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar.loading .navbar-loading {
    opacity: 1;
}

@keyframes loading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 通知徽章（可用于显示未读消息等） */
.nav-notification {
    position: relative;
}

.nav-notification::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
