:root {
            --primary-color: #e63946;
            --primary-light: #ffe3e5;
            --bg-color: #f7f9fa;
            --card-bg: #ffffff;
            --text-main: #333333;
            --text-muted: #777777;
            --accent-orange: #ff9f1c;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            background-color: var(--bg-color);
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            width: 100%;
            overflow-x: hidden;
        }

        .phone-container {
            width: 100%;
            max-width: 412px;
            min-height: 100vh;
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* 可滾動主內容區 */
        .app-content {
            flex: 1;
            padding-bottom: 90px;
            background: linear-gradient(to bottom, #eef3f0 0%, #f7f9fa 150px);
            width: 100%;
        }

        /* 1. 頂部搜尋列與位置 */
        .top-search-section {
            display: flex;
            align-items: center;
            padding: 15px 14px 10px 14px;
            gap: 10px;
        }

        .location-selector {
            display: flex;
            align-items: center;
            font-size: 15px;
            font-weight: bold;
            color: var(--text-main);
            white-space: nowrap;
            cursor: pointer;
        }

        .location-selector i {
            margin-left: 4px;
            font-size: 12px;
        }

        .search-bar-container {
            flex: 1;
            position: relative;
        }

        .search-bar-container i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .search-input {
            width: 100%;
            padding: 8px 12px 8px 36px;
            border: 1px solid #dce4dd;
            border-radius: 20px;
            font-size: 14px;
            background-color: #ffffff;
            outline: none;
        }

        .map-btn {
            background-color: #dbe4dd;
            border: none;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            color: #3d4a3e;
        }

        /* 2. 橫向分類金剛區 */
        .category-grid {
            display: flex;
            overflow-x: auto;
            padding: 15px 14px;
            gap: 16px;
        }

        .category-grid::-webkit-scrollbar {
            display: none;
        }

        .category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 64px;
            cursor: pointer;
        }

        .category-icon-wrapper {
            width: 54px;
            height: 54px;
            border-radius: 16px;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.04);
            margin-bottom: 8px;
            position: relative;
        }

        .category-icon-wrapper i {
            font-size: 22px;
        }

        .category-item span {
            font-size: 12px;
            color: var(--text-main);
            font-weight: 500;
            white-space: nowrap;
        }

        .badge-hot {
            position: absolute;
            top: -4px;
            right: -4px;
            background-color: #ff5252;
            color: white;
            font-size: 9px;
            padding: 1px 4px;
            border-radius: 8px;
            font-weight: bold;
        }

        /* 3. 廣告/宣導 Banner */
        .promo-banner {
            margin: 5px 14px 15px 14px;
            background: linear-gradient(135deg, #ff9f1c 0%, #ffbf69 100%);
            border-radius: 16px;
            padding: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #ffffff;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(255, 159, 28, 0.2);
        }

        .promo-text h3 {
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 4px;
            letter-spacing: 1px;
            color: #ffffff;
        }

        .promo-text p {
            font-size: 11px;
            opacity: 0.9;
        }

        .promo-btn {
            background-color: #ffffff;
            color: #ff9f1c;
            border: none;
            padding: 6px 14px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
        }

        .promo-mascot {
            position: absolute;
            right: 80px;
            bottom: -5px;
            font-size: 40px;
            opacity: 0.25;
        }

        /* 4. 篩選標籤頁籤 */
        .filter-tabs {
            display: flex;
            padding: 0 14px;
            gap: 8px;
            margin-bottom: 12px;
            align-items: center;
        }

        .tab-item {
            padding: 6px 14px;
            border-radius: 15px;
            font-size: 13px;
            font-weight: bold;
            background-color: #e9ecef;
            color: var(--text-muted);
            cursor: pointer;
        }

        .tab-item.active {
            background-color: #9cd1a4;
            color: #1e3822;
        }

        .tab-more {
            margin-left: auto;
            font-size: 13px;
            color: var(--text-muted);
            cursor: pointer;
        }

        /* 5. 橫向熱門排行榜區 */
        .top-cards-container {
            display: flex;
            overflow-x: auto;
            padding: 0 14px 15px 14px;
            gap: 12px;
        }

        .top-cards-container::-webkit-scrollbar {
            display: none;
        }

        .top-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            min-width: 180px;
            max-width: 180px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.04);
            position: relative;
        }

        .card-img-wrapper {
            height: 100px;
            background-color: #eaeaea;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #aaa;
        }

        .rank-tag {
            position: absolute;
            top: 6px;
            left: 6px;
            background-color: #f4b400;
            color: white;
            font-size: 10px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 4px;
        }

        .card-info {
            padding: 10px;
        }

        .card-title {
            font-size: 13px;
            font-weight: bold;
            color: var(--text-main);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: var(--accent-orange);
            font-weight: bold;
        }

        /* 6. 推薦列表區 */
        .section-title {
            font-size: 16px;
            font-weight: bold;
            padding: 10px 14px;
            color: var(--text-main);
        }

        .recommend-container {
            padding: 0 14px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .recommend-card {
            background-color: var(--card-bg);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.04);
        }

        .rec-img-placeholder {
            height: 150px;
            background-color: #e5ece6;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #9cb3a2;
            font-size: 32px;
        }

        .rec-info {
            padding: 12px;
        }

        .rec-title {
            font-size: 14px;
            font-weight: bold;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        .rec-desc {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* 7. 底部固定導覽列 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 412px;
            height: 75px;
            background-color: #ffffff;
            border-top: 1px solid #eef2ef;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-bottom: 10px;
            z-index: 10;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            flex: 1;
        }

        .nav-item.active {
            color: #2b5c32;
        }

        .nav-item i {
            font-size: 20px;
            margin-bottom: 4px;
        }

        .nav-item-center {
            position: relative;
            top: -12px;
            flex: 1.2;
        }

        .center-btn {
            background-color: #b2db44;
            color: #1e3a00;
            padding: 10px 16px;
            border-radius: 25px;
            font-weight: bold;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 4px 10px rgba(178, 219, 68, 0.4);
            border: none;
            white-space: nowrap;
        }
