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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #fff5f3 0%, #f5d5cf 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-y: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(192, 96, 80, 0.3);
    position: relative;
}

.header-logo {
    position: absolute;
    top: 16px;
    left: 20px;
    height: 48px;
    width: auto;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: normal;
}

.notice-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ffcc80;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.notice-icon {
    font-size: 1.3rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-text {
    display: inline-block;
    color: #e65100;
    font-size: 0.95rem;
    font-weight: bold;
    animation: noticeScroll 18s linear infinite;
}

@keyframes noticeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

main {
    flex: 1;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.department-title {
    text-align: center;
    margin-bottom: 10px;
}

.department-title h2 {
    font-size: 2rem;
    color: #c06050;
    margin-bottom: 5px;
    font-weight: bold;
}

.department-title p {
    font-size: 1rem;
    color: #666;
}

.function-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.function-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #c06050, #d48a7f);
}

.function-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(192, 96, 80, 0.25);
}

.function-card.active {
    border: 2px solid #c06050;
}

.dept-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 1;
}

.dept-tag-xueguan {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.dept-tag-xueguan-yingxiao {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

.dept-tag-jiaoxue-xueguan {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
}

.dept-tag-jiaoxue {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.function-card h3 {
    font-size: 1.6rem;
    color: #c06050;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.coming-soon {
    display: inline-block;
    padding: 10px 25px;
    background: #e0e0e0;
    color: #999;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: not-allowed;
}

.portal-card {
    background: linear-gradient(135deg, #0f0c29, #1a1040, #302b63);
    border: 2px solid rgba(138, 100, 255, 0.3);
    box-shadow: 0 4px 20px rgba(100, 60, 255, 0.25), inset 0 0 40px rgba(138, 100, 255, 0.08);
}

.portal-card::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #6d28d9);
    height: 5px;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 40px rgba(100, 60, 255, 0.4), inset 0 0 60px rgba(138, 100, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.5);
}

.portal-card h3 {
    color: #c4b5fd;
}

.portal-card .card-desc {
    color: rgba(196, 181, 253, 0.7);
}

.dept-tag-portal {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #e9d5ff;
    border: 1px solid rgba(167, 139, 250, 0.4);
}

.portal-icon {
    position: relative;
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0) 70%);
    animation: portalPulse 2.5s ease-in-out infinite;
}

.portal-emoji {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

@keyframes portalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

.portal-enter {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #e9d5ff;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portal-enter:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
    transform: scale(1.05);
}

.beta-tag {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
}

.enter-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: linear-gradient(135deg, #a85048, #bb7a70);
    transform: scale(1.05);
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: #666;
}

footer p {
    margin: 5px 0;
}

.version-info {
    font-size: 0.9rem;
    color: #999;
}

.suggestion-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.suggestion-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.5);
    background: linear-gradient(135deg, #d35400, #e67e22);
}

.suggestion-btn .icon {
    font-size: 20px;
}

.update-modal {
    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: 9999;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

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

.update-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
}

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

.update-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.update-modal-icon {
    font-size: 1.8rem;
}

.update-modal-header h2 {
    font-size: 1.3rem;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.update-modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.update-modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

.update-modal-body {
    padding: 20px 24px;
}

.update-system-status {
    margin-bottom: 20px;
}

.update-system-status h3,
.update-changelog h3 {
    font-size: 1rem;
    color: #c06050;
    margin-bottom: 12px;
    font-weight: bold;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdf2f0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-online .status-dot {
    background: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.status-beta .status-dot {
    background: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.status-pending .status-dot {
    background: #95a5a6;
    box-shadow: 0 0 0 3px rgba(149, 165, 166, 0.2);
}

.status-info strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
}

.status-info span {
    font-size: 0.8rem;
    color: #888;
}

.update-changelog ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-changelog li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.9rem;
}

.update-changelog li:last-child {
    margin-bottom: 0;
}

.update-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.update-tag.tag-new,
.update-tag.tag-feature {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.update-tag.tag-opt,
.update-tag.tag-optimize {
    background: #fde8e5 !important;
    color: #c06050 !important;
}

.update-tag.tag-fix {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

.update-changelog .changelog-group {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.update-changelog .changelog-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.update-changelog .changelog-group-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.update-changelog .group-exam {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.update-changelog .group-home {
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: white;
}

.update-changelog .group-profile {
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
}

.update-changelog .group-stu {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
}

.update-changelog .group-student {
    background: linear-gradient(135deg, #00b894, #81ecec);
    color: white;
}

.update-changelog .group-analysis {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: #2d3436;
}

.update-changelog .group-sys {
    background: linear-gradient(135deg, #636e72, #b2bec3);
    color: white;
}

.update-changelog .group-student-exam {
    background: linear-gradient(135deg, #e17055, #fab1a0);
    color: white;
}

.update-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.update-btn-primary {
    padding: 10px 40px;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(192, 96, 80, 0.4);
}

.changelog-section {
    margin-top: 50px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5e0dc;
}

.changelog-icon {
    font-size: 1.8rem;
}

.changelog-header h2 {
    font-size: 1.5rem;
    color: #c06050;
    font-weight: bold;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-item {
    padding: 20px;
    border-radius: 10px;
    background: #fdf8f7;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.changelog-item:hover {
    background: #fbf0ee;
}

.changelog-latest {
    border-left-color: #c06050;
    background: linear-gradient(135deg, #fff8f6, #fef0ec);
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.version-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.changelog-latest .version-tag {
    background: linear-gradient(135deg, #c06050, #d48a7f);
}

.version-date {
    color: #999;
    font-size: 0.85rem;
}

.changelog-group {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e8e8e8;
}

.changelog-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.changelog-group-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.group-sea {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
}

.group-exam {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.group-home {
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: white;
}

.group-profile {
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
}

.group-stu {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
}

.group-student {
    background: linear-gradient(135deg, #00b894, #81ecec);
    color: white;
}

.group-analysis {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: #2d3436;
}

.group-sys {
    background: linear-gradient(135deg, #636e72, #b2bec3);
    color: white;
}

.group-student-exam {
    background: linear-gradient(135deg, #e17055, #fab1a0);
    color: white;
}

.changelog-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.changelog-content li:last-child {
    margin-bottom: 0;
}

.changelog-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.changelog-tag.tag-new,
.changelog-tag.tag-feature {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.changelog-tag.tag-optimize {
    background: #fde8e5 !important;
    color: #c06050 !important;
}

.changelog-tag.tag-fix {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

.changelog-content strong {
    color: #333;
}

.changelog-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #fdf2f0;
    border: 1px solid #e8c5be;
    border-radius: 8px;
    color: #c06050;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.changelog-toggle-btn:hover {
    background: #fbe5e1;
    border-color: #c06050;
}

.changelog-toggle-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

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

    .header-logo {
        height: 36px;
        padding: 4px 7px;
        border-radius: 8px;
        top: 10px;
        left: 12px;
    }
    
    .notice-bar {
        padding: 8px 14px;
    }
    
    .notice-text {
        font-size: 0.85rem;
    }
    
    .function-cards {
        grid-template-columns: 1fr;
    }
    
    .function-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .function-card h3 {
        font-size: 1.4rem;
    }
    
    .dept-tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .suggestion-float {
        bottom: 20px;
        right: 20px;
    }
    
    .suggestion-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .changelog-section {
        padding: 20px;
    }
    
    .changelog-header h2 {
        font-size: 1.3rem;
    }
    
    .changelog-item {
        padding: 15px;
    }
    
    .changelog-content li {
        font-size: 0.9rem;
    }
    
    .changelog-toggle-btn {
        max-width: 160px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .update-modal-content {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .update-modal-header {
        padding: 16px 18px;
    }
    
    .update-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .update-modal-body {
        padding: 16px 18px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .status-item {
        padding: 8px 10px;
    }
    
    .update-changelog li {
        font-size: 0.85rem;
    }
    
    .update-btn-primary {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
}

.api-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.api-setting-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #c06050, #e08a7a);
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 96, 80, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-setting-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(192, 96, 80, 0.5);
    background: linear-gradient(135deg, #d48a7f, #f0a090);
}

.api-active .api-setting-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.api-modal {
    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: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.api-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
}

.api-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.api-modal-icon {
    font-size: 1.6rem;
}

.api-modal-header h2 {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.api-modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.api-modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

.api-modal-body {
    padding: 20px 24px;
}

.api-modal-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.api-input-group {
    margin-bottom: 16px;
}

.api-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.api-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.api-input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: monospace;
    transition: border-color 0.3s;
    outline: none;
}

.api-input-wrapper input:focus {
    border-color: #c06050;
}

.api-pass-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.api-pass-input:focus {
    border-color: #c06050;
}

.api-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    font-size: 16px;
    transition: color 0.2s;
}

.api-eye-btn:hover {
    color: #555;
}

.api-status {
    font-size: 0.85rem;
    margin-bottom: 20px;
    min-height: 20px;
}

.api-status-ok { color: #27ae60; }
.api-status-default { color: #999; }
.api-status-error { color: #e74c3c; }

.api-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.api-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.api-btn-primary {
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: white;
}

.api-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(192, 96, 80, 0.4);
}

.api-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.api-btn-secondary:hover {
    background: #eee;
}

@media (max-width: 768px) {
    .api-float {
        bottom: 20px;
        left: 20px;
    }

    .api-setting-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .api-modal-content {
        max-width: 100%;
        margin: 0 10px;
    }
}

.user-corner {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 1000;
}

.login-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: #fff !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.login-link:hover {
    opacity: 0.85;
}

.user-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.user-avatar:hover {
    transform: scale(1.08);
}

.user-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #c06050;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    user-select: none;
}

.user-arrow:hover {
    background: #fff5f3;
    color: #a04838;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    overflow: hidden;
}

.user-card-info {
    padding: 16px;
    background: linear-gradient(135deg, #c06050, #d48a7f);
    color: #fff;
}

.user-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-card-username {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.user-card-title {
    font-size: 12px;
    opacity: 0.85;
}

.user-menu-divider {
    height: 1px;
    background: #f0f0f0;
}

.user-menu-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background: #f5f5f5;
}

.user-menu-logout {
    color: #d32f2f;
}
