/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

/* 导航样式 */
.nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

.nav a {
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    color: #3498db;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav a:hover {
    background-color: #e9ecef;
}

.nav a.active {
    background-color: #3498db;
    color: white;
}

/* 文本选项样式 */
.text-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.text-option {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-option:hover {
    background-color: #f0f0f0;
}

.text-option.selected {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

/* APK下载特定样式 */
.domain-info {
    background: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.apk-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apk-item:hover {
    background-color: #f9f9f9;
}

/* 按钮样式 */
.btn {
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-download {
    background: #4CAF50;
}

.btn-download:hover:not(:disabled) {
    background: #45a049;
}

.btn-batch {
    background: #2196F3;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
}

.btn-batch:hover:not(:disabled) {
    background: #0b7dda;
}

.control-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.btn-start {
    background: #4CAF50;
    padding: 10px 20px;
}

.btn-pause {
    background: #FF9800;
    padding: 10px 20px;
}

.btn-stop {
    background: #F44336;
    padding: 10px 20px;
}

/* 状态显示 */
.status {
    padding: 12px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.progress {
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    min-width: 50px; /* 设置最小宽度 */
    max-width: 300px; /* 设置最大宽度 */
    word-wrap: break-word; /* 允许长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器的长单词换行属性 */
    white-space: normal; /* 允许文本自动换行 */
}

th {
    background-color: #3498db;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 辅助类 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-options, .apk-list {
        grid-template-columns: 1fr;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav a {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}
/* 查看记录页面的按钮 */
.button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.button:hover {
    background-color: #45a049;
}