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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(to bottom,
        #e8dcc8 0%,
        #f5e6d3 20%,
        #ffd98e 40%,
        #ffb347 60%,
        #8b7355 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* 背景装饰效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 115, 85, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 179, 71, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(139, 115, 85, 0.5) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 710px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .container {
        padding: 16px;
    }
}

@media screen and (max-width: 375px) {
    .container {
        padding: 12px;
    }
}

/* 顶部搜索和菜单 */
.header {
    position: relative;
}

.header-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 710px;
    background: rgba(255, 255, 255, 0);
    border-radius: 32px;
    padding: 8px 14px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

/* 滚动时的样式 */
.header-controls.scrolled {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-icon,
.menu-icon {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.search-icon:hover,
.menu-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* 品牌区域 */
.brand {
    text-align: center;
    padding: 80px 20px 30px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #fff;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    display: none;
}

.brand-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.brand-desc {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.brand-contact {
    font-size: 16px;
    color: #555;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 导航卡片 */
.nav-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
}

.nav-card:active {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
}

.card-icon {
    font-size: 24px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

/* 图片图标样式 */
.card-icon-image {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.card-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

.card-subtitle {
    font-size: 13px;
    color: #999;
    font-weight: normal;
    text-align: center;
}

.card-arrow {
    font-size: 24px;
    color: #ccc;
    font-weight: 300;
}

/* 分类标题 */
.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 0 2px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.category-title:hover {
    color: #1e5fdd;
}

.category-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.dropdown-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.category-title.collapsed .dropdown-icon {
    transform: rotate(180deg);
}

/* 收起时的提示文字 */
.category-collapsed-hint {
    text-align: center;
    padding: 3px 20px;
    font-size: 18px;
    color: #666;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 可折叠的内容容器 */
.category-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 5000px;
    opacity: 1;
    margin-bottom: 0;
    -webkit-transition: max-height 0.4s ease, opacity 0.3s ease;
    -moz-transition: max-height 0.4s ease, opacity 0.3s ease;
}

.category-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

/* 导航卡片 - 两列布局 */
.category-content .nav-card {
    width: calc(50% - 6px);
    flex-shrink: 0;
}

/* 小屏幕优化 */
@media screen and (max-width: 480px) {
    .category-content {
        gap: 10px;
    }

    .category-content .nav-card {
        width: calc(50% - 5px);
        padding: 8px 12px;
    }
}

@media screen and (max-width: 360px) {
    .category-content {
        gap: 8px;
    }

    .category-content .nav-card {
        width: calc(50% - 4px);
        padding: 6px 10px;
    }
}

/* 推广卡片 */
.promo-card {
    background: linear-gradient(135deg, #1e5fdd 0%, #4a90e2 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-top: 0;
    box-shadow: 0 4px 16px rgba(30, 95, 221, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 95, 221, 0.4);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-content {
    flex: 1;
    z-index: 1;
}

.promo-center-image {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0 10px;
}

.promo-center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.promo-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.promo-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.promo-button {
    background: #fff;
    color: #1e5fdd;
    border: none;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.promo-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.promo-icon {
    font-size: 45px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* 底部信息 */
.footer {
    text-align: center;
    padding: 30px 20px 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 底部图片横向布局 */
.bottom-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.bottom-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.bottom-image-wrapper .bottom-image {
    width: 100%;
    height: 100%;
}

.bottom-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bottom-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-text {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header-controls {
        width: calc(100% - 30px);
        top: 15px;
        padding: 6px 10px;
    }

    .search-icon,
    .menu-icon {
        font-size: 13px;
        padding: 8px 14px;
    }

    .brand {
        padding: 70px 15px 20px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .brand-title {
        font-size: 20px;
    }

    .nav-card {
        padding: 8px 16px;
    }

    .card-icon {
        font-size: 20px;
        width: 34px;
        height: 34px;
    }

    .card-title {
        font-size: 14px;
    }

    .promo-card {
        padding: 14px;
        flex-wrap: wrap;
    }

    .promo-content {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }

    .promo-center-image {
        width: 90px;
        height: 90px;
        margin: 0 5px;
    }

    .promo-title {
        font-size: 17px;
    }

    .bottom-images {
        gap: 8px;
    }

    .bottom-image-wrapper {
        width: 110px;
        height: 110px;
    }

    .bottom-image {
        width: 110px;
        height: 110px;
    }

    .image-text {
        font-size: 10px;
        padding: 4px 8px;
        bottom: 30px;
    }
}
