:root {
    --primary-color: #f86d7d;
    --primary-gradient: linear-gradient(90deg, #f86d7d, #fb8b81);
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-sub: #999999;
    --border-color: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* Header */
header {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    width: 90px;
    height: 90px;
}

.search-bar {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-left: 5px;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Category Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 5px;
    background: #F6F7F8;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    /*gap: 5px;*/
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.category-icon {
    width: 45px;
    height: 45px;
    background: #fff5f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffebeb;
}

.category-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

/* App List */
.section-title {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 18px;
    font-weight: bold;
}

.title-tabs {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
    background-color: #F6F7F8;
    border-radius: 5px;
}

.title-tabs button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.app-list {
    padding: 0 15px;
    min-height: 200px; /* 最小高度，确保即使没有内容也有一定高度 */
}

.app-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.app-icon {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 12px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
}

.app-name {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
}

.app-desc {
    font-size: 12px;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-btn {
    color: var(--primary-color);
    border: 1px solid #ffccd3;
    background: #fff9fa;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    align-self: center;
}

/* Form Styles */
.form-container {
    background: #fff;
    padding: 20px;
    min-height: calc(100vh - 150px);
}

.form-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-group label span {
    color: #ff4d4f;
    margin-left: 4px;
}

.form-input, .form-select {
    width: 100%;
    background: #f0f0f0;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.form-textarea {
    width: 100%;
    background: #f0f0f0;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    min-height: 100px;
    resize: none;
}

.upload-box {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.captcha-row {
    display: flex;
    gap: 10px;
}

.captcha-img {
    height: 40px;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(248, 109, 125, 0.3);
}

/* Footer */
footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 11px;
    color: #999;
    background: #fdf2f3;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 40px;
}

.footer-logo span {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.footer-info p {
    margin-bottom: 5px;
    line-height: 1.8;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}

.menu-content {
    background: #fff;
    padding: 20px;
    border-radius: 0 0 20px 20px;
}

/* Custom Dropdown */
.custom-select-wrapper {
    position: relative;
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 10;
}

.option-item {
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.option-item:last-child {
    border-bottom: none;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.radio-item span {
    color: var(--text-main);
}

.mt-2 {
    margin-top: 10px;
}
