.mobile-container {
    max-width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
}

/* 公告顶栏 */
.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.announcement-bar span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-close:active {
    background: rgba(255,255,255,0.3);
}

/* 顶部导航栏 */
.mobile-header {
    background: #2c3e50;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
}

.mobile-header h1 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 下拉导航菜单 */
.mobile-nav {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

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

.nav-section {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav a:active {
    opacity: 0.7;
}

.mobile-nav .login-link {
    color: #3498db;
}

.mobile-nav .logout-link {
    color: #e74c3c;
}

.badge {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.mobile-search {
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.mobile-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #0f172a;
    border-radius: 0;
    font-size: 14px;
    background: #fff;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.05);
}

.mobile-search input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 4px 4px 0 rgba(37, 99, 235, 0.2);
}

.mobile-categories {
    background: #fff;
    padding: 12px 15px;
    border-bottom: 2px solid #0f172a;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 2px solid #0f172a;
    border-radius: 0;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 2px 2px 0 #0f172a;
}

.category-tag.active {
    background: #2563eb;
    color: #fff;
    box-shadow: none;
    transform: translate(2px, 2px);
}

.mobile-content {
    padding: 16px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    border-left: 6px solid #2563eb;
    padding-left: 12px;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card {
    background: #fff;
    border: 2px solid #0f172a;
    border-radius: 0;
    padding: 12px;
    box-shadow: 6px 6px 0 #0f172a;
    display: flex;
    gap: 12px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.app-card:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 #0f172a;
}

.app-card .icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border: 2px solid #0f172a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.app-card .content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.app-card .summary {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.app-card .meta {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.app-card .download-btn {
    display: none; /* 在列表中隐藏按钮，由卡片点击触发 */
}

.featured-section {
    margin-bottom: 25px;
}

.mobile-footer {
    background: #34495e;
    color: #bdc3c7;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #95a5a6;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}
