:root {
    --primary-color: #4CAF50;
    --error-color: #f44336;
    --text-color: #333;
    --bg-color: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fcfcfc;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background-color: #ffffff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.file-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s;
    background: white;
}

.file-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.file-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    border-radius: 8px;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
}

.file-preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.file-icon {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    align-items: center;
}

.file-icon:before {
    content: "📄";
    font-size: 48px;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.file-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    word-break: break-all;
    line-height: 1.4;
    text-align: center;
}

.file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.file-actions .btn {
    min-width: 100px;
    text-align: center;
}

.remove-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

.loading:after {
    content: "...";
    animation: loading 1.5s infinite;
    width: 30px;
    display: inline-block;
    text-align: left;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* 其他样式保持原样... */

.url-input-container {
    margin-top: 15px;
}

.url-input-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.url-input-item input {
    flex: 1;
    min-width: 200px;
}

.url-input-item .url-input {
    flex: 2;
    margin-right: 10px;
}

.url-input-item .name-input {
    flex: 1;
    margin-right: 10px;
}

.url-input-item .type-select {
    width: auto;
    min-width: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.share-success-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.share-success-content {
    background: white;
    padding: 25px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.share-success-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.share-url-wrapper {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.share-url-container {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    position: relative;
    overflow: hidden;
}

.share-url {
    font-family: monospace;
    font-size: 14px;
    color: #495057;
    width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.copy-btn {
    padding: 0 20px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 自适应样式 */
@media (max-width: 600px) {
    .container, .admin-container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
} 