/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid #1a252f;
}

header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    font-size: 16px;
    opacity: 0.8;
}

/* 标签页样式 */
.tabs {
    display: flex;
    background-color: #ecf0f1;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: #dfe6e9;
    color: #2c3e50;
}

.tab-btn.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
    background-color: white;
}

/* 标签内容样式 */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 6px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.card-description {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 15px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s;
    background-color: #fafafa;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.input-with-icon input {
    padding-left: 15px;
}

/* 文件上传区域 */
.file-label {
    display: block;
    cursor: pointer;
}

.file-area {
    border: 2px dashed #bdc3c7;
    border-radius: 6px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.2s;
    background-color: #f8f9fa;
}

.file-area:hover {
    border-color: #3498db;
    background-color: #edf7ff;
}

.file-area p {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 10px;
}

.file-size {
    font-size: 14px;
    color: #7f8c8d;
}

#file-input {
    display: none;
}

.file-info {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #edf7ff;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    padding: 13px 25px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #7f8c8d;
    color: white;
}

.btn-secondary:hover {
    background-color: #6c7b7d;
}

.btn-download {
    background-color: #27ae60;
    color: white;
    padding: 13px 35px;
    font-size: 16px;
}

.btn-download:hover {
    background-color: #219653;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
}

.copy-btn {
    background-color: #ecf0f1;
    color: #34495e;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #d5dbdb;
}

/* 结果卡片样式 */
.result-card, .error-card {
    margin-top: 25px;
    padding: 20px;
    border-radius: 6px;
}

.result-card {
    background-color: #f1f8e9;
    border: 1px solid #c5e1a5;
}

.error-card {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.hidden {
    display: none;
}

.code-display {
    background-color: #2c3e50;
    color: white;
    padding: 18px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
}

.link-box {
    display: flex;
    margin-top: 10px;
}

.link-box input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    font-size: 14px;
}

.link-box .copy-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 文件详情样式 */
.file-details {
    margin: 18px 0;
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.file-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}

.file-info p {
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.download-action {
    text-align: center;
    margin-top: 22px;
}

/* 文件列表样式 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f8f9fa;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f1f3f4;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px;
}

.list-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* 页脚样式 */
footer {
    padding: 20px 30px;
    text-align: center;
    color: #7f8c8d;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.disclaimer {
    font-size: 13px;
    margin-top: 5px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }
    
    body {
        padding: 0;
    }
    
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 14px;
        text-align: center;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .code-display {
        font-size: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    th, td {
        padding: 10px 12px;
    }
}