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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

/* 应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 80px; /* 为底部导航留出空间 */
}

/* 顶部标题 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.header h1 {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.apply-btn {
    background: #409eff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.apply-btn:hover {
    background: #66b1ff;
}

/* 顶部图标区域 */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
}

.icon-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.icon-item .title {
    font-size: 14px;
    margin-bottom: 2px;
}

.icon-item .subtitle {
    font-size: 12px;
    color: #999;
}

/* 分类标签栏 */
.category-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 8px 0;
}

.category-tab {
    padding: 8px 32px;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 1px;
}

.category-tab.active {
    background: #409eff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(64,158,255,0.08);
}

.category-tab:hover:not(.active) {
    background: #f0f7ff;
    color: #409eff;
}

.category-tab img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 4px;
}

.category-tab span {
    font-size: 14px;
}

/* 主题列表 */
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.theme-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.theme-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.theme-info {
    flex: 1;
}

.theme-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 4px 0;
    font-weight: normal;
}

.theme-author {
    font-size: 13px;
    color: #666;
}

.theme-right {
    margin-left: 20px;
    position: static;
    transform: none;
    display: flex;
    align-items: center;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.nav-item.active {
    color: #409eff;
}

.nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    border-radius: 4px;
}

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

.nav-item span {
    font-size: 12px;
    text-align: center;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.close-btn:hover {
    color: #666;
}

/* 表单样式 */
.apply-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #409eff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-submit {
    background: #409eff;
    color: #fff;
}

.btn-submit:hover {
    background: #66b1ff;
}

/* 复制成功提示 */
.copy-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.buy-btn {
    background: #409eff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.buy-btn:hover {
    background: #66b1ff;
}

.buy-btn:active {
    transform: scale(0.98);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-bottom: 80px;
    }

    .header h1 {
        font-size: 18px;
    }

    .apply-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .theme-item {
        padding: 12px;
    }

    .theme-icon {
        width: 45px;
        height: 45px;
    }

    .theme-title {
        font-size: 15px;
    }

    .buy-btn {
        padding: 6px 15px;
        font-size: 13px;
    }

    .nav-item {
        padding: 6px 2px;
    }

    .nav-item img {
        width: 20px;
        height: 20px;
    }

    .nav-item i {
        font-size: 18px;
    }

    .nav-item span {
        font-size: 11px;
    }
}

.apply-form select,
.apply-form select:focus {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fafbfc;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.apply-form select:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64,158,255,0.15);
}

.apply-form select option {
    background: #fff;
    color: #333;
} 