* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --success-color: #28a745;
    --background: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #4a90e2, #667eea, #764ba2);
    color: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    transform: rotate(45deg);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--card-background);
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: rgba(74, 144, 226, 0.05);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #5b9bd5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.3);
}

.tab-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.admin-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-link:hover {
    background: linear-gradient(135deg, #5568d3 0%, #654391 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.main-content {
    min-height: 600px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-section,
.result-section {
    background: linear-gradient(135deg, var(--card-background), #f9fafc);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 25px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-section:hover,
.result-section:hover {
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.input-section h2,
.result-section h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    position: relative;
    display: inline-block;
}

.input-section h2::after,
.result-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    animation: underlineGrow 1.5s ease forwards;
}

@keyframes underlineGrow {
    0% { width: 0; }
    100% { width: 100%; }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

#location-input {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

#location-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2), inset 0 2px 8px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
    background: white;
}

#location-input::placeholder {
    color: rgba(102, 102, 102, 0.6);
    font-style: italic;
    transition: color 0.3s ease;
}

#location-input:focus::placeholder {
    color: rgba(74, 144, 226, 0.6);
}

.upload-area {
    border: 3px dashed rgba(74, 144, 226, 0.3);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.08);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
    transform: translateY(-3px);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.15);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.25);
    transform: translateY(-5px);
}

.upload-placeholder {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.upload-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.upload-placeholder p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-placeholder p {
    color: var(--primary-color);
}

.upload-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.8;
    max-width: 80%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-hint {
    opacity: 1;
    color: var(--text-primary);
}

.model-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.model-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.model-name {
    font-size: 1rem;
    font-weight: 700;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.25);
    border-color: var(--primary-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.05);
}

.preview-item .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
}

.preview-item:hover .remove-btn {
    opacity: 1;
    transform: scale(1);
}

.preview-item .remove-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
}

.preview-item .remove-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.result-container {
    min-height: 250px;
    padding: 30px;
    background: linear-gradient(135deg, var(--background), #f0f4f8);
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-container:hover {
    box-shadow: inset 0 3px 12px rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.result-container .placeholder {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 80px 20px;
    position: relative;
}

.result-container .placeholder::before {
    content: '📝';
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.generated-text {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.generated-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.generated-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-container .generated-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.generated-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.generated-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-primary);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.result-container-inner {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.image-group {
    background: linear-gradient(135deg, var(--card-background), #f9fafc);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.image-group:hover {
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    transform: translateY(-3px);
}

.group-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-item {
    background: var(--card-background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.result-item:hover {
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.25);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.result-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-item:hover img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(74, 144, 226, 0.9));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.result-item:hover .image-label {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.result-item .item-actions {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.result-item .item-actions .btn {
    flex: 1;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.action-buttons .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

/* 通用按钮样式 */
.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5b9bd5);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b9bd5, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* 复制按钮样式 - 绿色 */
#copy-title-btn, #copy-content-btn, .btn-download {
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#copy-title-btn:hover:not(:disabled), #copy-content-btn:hover:not(:disabled), .btn-download:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #28a745);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* 生成按钮样式 */
#generate-text-btn, #generate-image-btn {
    width: 100%;
    justify-content: center;
    padding: 20px 30px;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* 按钮加载状态 */
.btn-loading {
    display: none !important;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 提示信息样式 */
.alert {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.alert:hover::before {
    left: 100%;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffc107;
    color: #856404;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #4a90e2, #667eea, #764ba2);
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    transform: rotate(45deg);
    animation: shimmer 10s infinite;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 15px 20px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-copyright:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 15px 20px;
    }
    
    .input-section,
    .result-section {
        padding: 25px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        min-width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: rgba(74, 144, 226, 0.3);
    color: var(--text-primary);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #667eea, var(--primary-color));
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 信息框样式 */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.info-modal.show {
    display: flex;
}

.info-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #4a90e2, #667eea);
    border-radius: 15px 15px 0 0;
}

.info-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.info-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.info-modal-body p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.info-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    border-radius: 0 0 15px 15px;
}

.info-modal-ok {
    padding: 12px 40px;
    font-size: 1rem;
    background: linear-gradient(135deg, #4a90e2, #667eea);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.info-modal-ok:hover {
    background: linear-gradient(135deg, #667eea, #4a90e2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 小屏幕设备响应式设计 */
@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .input-section,
    .result-section {
        padding: 20px;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .upload-area {
        padding: 20px;
    }

    .upload-icon {
        font-size: 2rem;
    }
}

/* 配置管理页面样式 */
.config-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.config-input-group {
    margin-bottom: 25px;
    position: relative;
}

.config-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.config-input {
    width: 100%;
    padding: 18px 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.config-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    background: white;
    transform: translateY(-2px);
}

.input-hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.config-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #5b9bd5);
    border: none;
    color: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.config-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), #4a8bc8);
}

.config-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

.config-message {
    padding: 20px 25px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.config-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.config-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: var(--radius);
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow);
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.config-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-left-width: 8px;
}

.config-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-label::before {
    content: "⚙️";
    font-size: 1.2rem;
}

.config-value {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--background);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    word-break: break-all;
    max-width: 60%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.config-value:hover {
    background: #f0f4f8;
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 8px rgba(74, 144, 226, 0.1);
}

/* 配置项动画效果 */
.config-item {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.config-item:nth-child(1) {
    animation-delay: 0.1s;
}

.config-item:nth-child(2) {
    animation-delay: 0.2s;
}

.config-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .config-form {
        max-width: 100%;
        padding: 20px;
    }

    .config-input {
        padding: 15px 20px;
    }

    .config-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .config-value {
        max-width: 100%;
        width: 100%;
        padding: 12px;
    }

    .config-info {
        padding: 20px;
    }
}

/* 配置页面标题样式 */
#config-section .input-section h2,
#config-section .result-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
}

#config-section .input-section h2::after,
#config-section .result-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #5b9bd5);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* 加载动画效果 */
.config-btn.loading {
    position: relative;
    pointer-events: none;
}

.config-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 用户信息样式 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-left {
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 20px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.user-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.user-info:hover .user-name {
    transform: scale(1.05);
}

.member-status {
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.member-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.member-status:hover::before {
    left: 100%;
}

.member-status.active {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.4), rgba(33, 136, 56, 0.6));
    color: white;
    border: 1px solid rgba(40, 167, 69, 0.7);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.member-status.expired {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.4), rgba(185, 28, 28, 0.6));
    color: white;
    border: 1px solid rgba(220, 53, 69, 0.7);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.member-status.normal {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.4), rgba(85, 93, 100, 0.6));
    color: white;
    border: 1px solid rgba(108, 117, 125, 0.7);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* 管理员标识 */
.user-name.admin {
    position: relative;
    padding-right: 25px;
}

.user-name.admin::after {
    content: 'ADMIN';
    position: absolute;
    top: -5px;
    right: 0;
    font-size: 0.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
}

/* 退出登录按钮 */
#logout-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

#logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.admin-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.admin-link:hover {
    background: linear-gradient(135deg, #5568d3 0%, #654391 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-left {
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        width: 100%;
        max-width: 300px;
    }
    
    .user-details {
        align-items: center;
        min-width: auto;
    }
    
    .user-name.admin::after {
        position: static;
        display: inline-block;
        margin-left: 10px;
        top: 0;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #5b9bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.login-box {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.login-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid #dc3545;
}

@media (max-width: 768px) {
    .login-header h1 {
        font-size: 2rem;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-box h2 {
        font-size: 1.5rem;
    }
}