  /* --- 全局变量 --- */
   /* --- 字体与变量 --- */
        @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&family=Playfair+Display:ital,wght@0,700;0,900;1,400&display=swap');
  
  
        :root {
            --color-primary-start: #00C853; /* 核心绿 */
            --color-primary-end: #2979FF;   /* 影视蓝 */
            --primary-gradient: linear-gradient(90deg, #00C853 0%, #2979FF 100%);
            --text-dark: #333333;
            --text-light: #888888;
            --safe-area-top: env(safe-area-inset-top, 20px);
            --bg-color: #F4F6F9;
            --text-main: #333333;
            --text-sub: #888888;
            --safe-top: env(safe-area-inset-top, 0px);
        }
        
        

        /* --- 基础重置 --- */
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        a { text-decoration: none; color: inherit; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
           overflow-y: auto;
            color: var(--text-main);
            
            margin: 0 auto;
            width: 100%;
            max-width: 550px;
}

        /* --- 头部导航 --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            /* 调整内边距：左右24px，上下15px + 状态栏高度 */
            padding: calc(var(--safe-top) + 15px) 24px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center; /* 关键：垂直居中 */
            
            background-color: var(--bg-color);
            z-index: 100;
            /* 添加一点底部阴影，增加层次感 */
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
        }

        /* Logo 样式 */
        .logo {
            font-size: 24px; /* 增大字体 */
            font-weight: 900;
            letter-spacing: 1px;
            background: var(--color-primary-gradient);
            background: linear-gradient(90deg, #2ecc71 0%, #3498db 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
        }

        /* 菜单按钮 */
        .menu-btn {
            width: 32px; /* 增大点击区域 */
            height: 32px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 102; /* 确保在遮罩之上 */
            position: relative;
        }

        /* 汉堡图标线条 */
        .hamburger, .hamburger::before, .hamburger::after {
            content: '';
            display: block;
            width: 24px;
            height: 2px;
            background-color: var(--text-main);
            border-radius: 2px;
            transition: all 0.3s ease-in-out;
            position: absolute;
        }

        .hamburger::before { top: -8px; }
        .hamburger::after { top: 8px; }

        /* 菜单激活状态 (变为 X) */
        .menu-btn.active .hamburger { background-color: transparent; }
        .menu-btn.active .hamburger::before { top: 0; transform: rotate(45deg); }
        .menu-btn.active .hamburger::after { top: 0; transform: rotate(-45deg); }

        /* --- 下拉菜单 --- */
        .dropdown-menu {
            position: absolute;
            top: calc(var(--safe-top) + 60px); /* 从 Header 下方开始 */
            left: 0;
            width: 100%;
            background-color: #fff;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            padding: 20px;
            z-index: 99;
            transform: translateY(-20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .dropdown-menu.show {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .menu-item {
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 16px;
            color: var(--text-main);
            text-align: center;
            transition: background 0.2s;
        }
        
        .menu-item:last-child { border-bottom: none; }
        .menu-item:active { background-color: #f9f9f9; color: var(--color-primary-end); }

        /* --- 遮罩层 --- */
        .overlay {
            position: absolute;
            top: calc(var(--safe-top) + 60px); /* 与菜单顶部对齐 */
            left: 0;
            width: 100%;
            height: calc(100% - var(--safe-top) - 60px);
            background-color: rgba(0, 0, 0, 0.3); /* 半透明黑色 */
            z-index: 98;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
            backdrop-filter: blur(2px); /* 毛玻璃效果 */
        }

        .overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* --- 主体内容 --- */
        main {
            font-family: sans-serif;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 10px;
            padding-top: 100px;
            margin-top: -20px; /* 微调视觉重心 */
            background-color: var(--bg-color);
            
           
        }

        /* 插画区域 */
        .hero-image {
            width: 280px;
            margin-bottom: 30px;
            /* 简单的呼吸动画 */
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* 描述文字 */
        .hero-text {
            font-size: 18px;
            color: var(--text-sub);
            margin-bottom: 30px;
            font-weight: 500;
            letter-spacing: 2px;
        }

        /* 搜索框 */
        .search-box {
            width: 100%;
            max-width: 400px;
            height: 50px;
            background-color: #fff;
            border-radius: 50px;
            display: flex;
            align-items: center;
            padding: 0 25px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.06);
            border: 1px solid transparent;
            transition: all 0.3s;
        }

        .search-box:focus-within {
            border-color: var(--color-primary-end);
            box-shadow: 0 8px 25px rgba(41, 121, 255, 0.15);
            transform: scale(1.02);
        }

        .search-box input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            margin-right: 10px;
            color: var(--text-main);
        }

        .search-box input::placeholder { color: #ccc; }

        .search-icon {
            color: var(--color-primary-end);
            font-size: 20px;
            display: flex;
            align-items: center;
        }

        /* 热门标签 */
        .tags {
            margin-top: 25px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .tag {
            font-size: 14px;
            color: var(--text-sub);
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: color 0.2s;
        }

        .tag:active { color: var(--color-primary-start); }

        .tag.fire { color: #FF3D00; margin-right: 5px; }

        /* --- 底部 --- */
        footer {
            text-align: center;
            padding: 30px 0;
            color: #aaa;
            font-size: 12px;
            line-height: 1.6;
        }