/* ========== 主应用 - main.js ========== */

/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

input, textarea {
    user-select: auto;
    -webkit-user-select: auto;
    cursor: text;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.app-main-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
}

.app-main-title h1 {
    color: #333;
    margin: 0;
    font-size: 2em;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    position: relative;
}

.app-header h1 {
    color: #333;
    margin: 0;
    font-size: 2em;
    text-align: center;
}

.back-button {
    position: absolute;
    left: 20px;
    background-color: transparent;
    color: #000000;
    border: none;
    padding: 6px 10px;
    font-size: 30px;
    font-weight: 550;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1;
}

.back-button:hover {
    opacity: 0.6;
}

#audio-tool .app-header h1 {
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#audio-tool .back-button {
    background-color: transparent;
    color: #F8FAFC;
    border: none;
}

#audio-tool .back-button:hover {
    opacity: 0.6;
}

/* 主菜单样式 */
.main-menu {
    text-align: center;
    padding: 30px;
}

.main-menu h2 {
    margin-bottom: 20px;
    color: #495057;
}

.main-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.main-menu-button {
    padding: 15px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.main-menu-button:hover {
    background-color: #0069d9;
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

/* 下拉菜单移动端兼容性修复 */
select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
}

select::-ms-expand {
    display: block;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

select:active, select:hover {
    background-color: #f8f9fa;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    body {
        padding: 2px;
        margin: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 3px;
        border-radius: 3px;
    }
    
    .app-header {
        padding-top: 10px;
        margin-bottom: 3px;
    }
    
    .app-header h1 {
        font-size: 14px;
    }
    
    /* 移动端下拉菜单优化 */
    select {
        -webkit-appearance: menulist-button;
        -moz-appearance: menulist-button;
        appearance: menulist-button;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 16px;
        line-height: 1.5;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
    
    /* 移动端按钮点击区域放大 */
    select, button {
        min-height: 44px;
        min-width: 44px;
    }
}
