/* 极简清爽风 - 风格3 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 公告卡片 */
.announcement-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 项目选择器 */
.module-selector {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.module-selector label {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
}

.module-selector select {
    background: #f5f5f7;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
    padding: 10px 14px;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.2s;
    appearance: none;
    text-align: right;
}

.module-selector select:hover {
    background: #ebebeb;
}

.announcement-card h3 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.announcement-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 4px 0;
}

.announcement-card .note {
    color: #86868b;
    font-size: 13px;
    margin-top: 8px;
}

/* 应用模块 */
.app-module {
    display: none;
}

.app-module[style*="display: block"] {
    display: block;
}

/* 应用头部 */
.app-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 头部第一行：图标和信息 */
.header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f7;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.version-text {
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 500;
}

.version-badge {
    background: #f5f5f7;
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

.time-text {
    color: #86868b;
    font-size: 13px;
}

.update-time {
    color: #86868b;
    font-size: 13px;
}

/* 下载类型选择器 */
.download-type-selector {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-type-selector label {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    min-width: 80px;
}

.selector-buttons {
    display: flex;
    gap: 8px;
    flex: 1;
}

.selector-btn {
    flex: 1;
    padding: 10px 16px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #86868b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.selector-btn:hover {
    background: #ebebeb;
    color: #1a1a1a;
}

.selector-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* 设置区域 */
.settings-section {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f7;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
}

.setting-item select {
    background: #f5f5f7;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
    padding: 10px 14px;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.2s;
    appearance: none;
    text-align: right;
}

.setting-item select:hover {
    background: #ebebeb;
}

/* 下载区域 */
.download-section {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.download-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
}

/* Action 运行信息 */
.run-info {
    font-size: 12px;
    color: #86868b;
    text-align: center;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 8px;
    margin-bottom: 12px;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.download-item:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.download-item .item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.download-item .item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.download-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.download-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* 更新日志 */
.changelog-section {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.changelog-section summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.changelog-section summary::-webkit-details-marker {
    display: none;
}

.changelog-section summary::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}

.changelog-section[open] summary::after {
    transform: rotate(180deg);
}

.changelog-content {
    padding: 16px 20px;
    border-top: 1px solid #f5f5f7;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
/* 菜单按钮 */
.menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.menu-toggle:hover {
    background: #f5f5f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* 侧边菜单 */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1999;
    transition: right 0.3s ease;
}

.side-menu.active {
    right: 0;
}

.menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e5e5e7;
    color: #1a1a1a;
}

.menu-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.menu-items a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 10px;
    margin: 4px 0;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 4px;
}

.menu-items a:hover {
    background: #f5f5f7;
}

.menu-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 16px 0;
}

/* 遮罩 */
.side-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

@media (max-width: 600px) {
    .container {
        padding: 16px 12px;
    }
    
    .header h1 { 
        font-size: 24px; 
    }
    
    .menu-toggle {
        top: 12px;
        right: 12px;
    }
    
    .side-menu {
        width: 85vw;
    }
}