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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 0;
}

.page-header h1 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.page-header p {
    color: #7f8c8d;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #e2231a;
    background: white;
    border: 1px solid #e1e4e8;
    border-bottom: 2px solid #e2231a;
    margin-bottom: -1px;
}

.tab-btn:not(.active):hover {
    background: #edf1f5;
}

.tool-panel {
    display: none;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tool-panel.active {
    display: block;
}

.panel-header {
    background: linear-gradient(to right, #000000, #000000);
    color: white;
    padding: 18px 25px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.panel-header.sogou {
    background: linear-gradient(to right, #ff5900, #ff8c60);
}

.panel-header h2 {
    font-weight: 500;
    font-size: 20px;
}

.container {
    padding: 25px;
}

.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #e2231a;
    background-color: #fff9f9;
}

.sogou-section .upload-area:hover {
    border-color: #ff5900;
    background-color: #fff6f2;
}

.upload-icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #495057;
    margin-bottom: 10px;
}

.upload-note {
    font-size: 14px;
    color: #6c757d;
}

input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    margin-top: 20px;
    display: none;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    display: block;
    margin: 12px auto 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.upload-btn {
    display: block;
    width: 100%;
    background-color: #e2231a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.upload-btn:hover {
    background-color: #c81e16;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(225, 35, 26, 0.2);
}

.sogou-section .upload-btn {
    background-color: #ff5900;
}

.sogou-section .upload-btn:hover {
    background-color: #e65000;
    box-shadow: 0 4px 8px rgba(255, 89, 0, 0.2);
}

.upload-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 25px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e2231a;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 0 auto 15px;
}

.sogou-section .loading-spinner {
    border-top-color: #ff5900;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.result-panel {
    margin-top: 25px;
    display: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #4CAF50;
}

.result-panel.error {
    border-left-color: #f44336;
}

.result-title {
    color: #4CAF50;
    margin-bottom: 15px;
}

.error .result-title {
    color: #f44336;
}

.info-card {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.info-item {
    padding: 16px;
    border-radius: 6px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.info-item:hover {
    background-color: #edf2f9;
}

.info-label {
    font-weight: bold;
    color: #495057;
    min-width: 100px;
    font-size: 15px;
}

.info-value {
    flex-grow: 1;
    word-break: break-all;
    color: #2c3e50;
    font-size: 15px;
    padding-right: 15px;
}

.copy-btn {
    background-color: #3a86ff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

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

.copy-btn svg {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    fill: white;
}

.copy-btn.copied {
    background-color: #4CAF50;
}

.image-preview {
    max-width: 100%;
    margin: 25px auto;
    text-align: center;
}

.result-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.beauty-section {
    margin-top: 35px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.beauty-header {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.beauty-image-container {
    padding: 15px;
    background: #f8f9fa;
    text-align: center;
}

.beauty-image {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.seo-content {
    margin: 30px 0;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.seo-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e4e8;
}

.seo-content h3 {
    color: #3a86ff;
    margin: 20px 0 10px;
}

.seo-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3a86ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 35px;
    color: #7f8c8d;
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid #e1e4e8;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #3a86ff;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .info-item {
        flex-wrap: wrap;
    }

    .info-label {
        min-width: 100%;
        margin-bottom: 8px;
    }

    .info-value {
        padding-right: 0;
        margin-bottom: 12px;
        width: 100%;
    }

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

    .beauty-image {
        max-height: 300px;
    }

    .seo-content {
        padding: 15px;
    }
}