body {
    margin: 0;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f2f5;
    color: #333;
}   

.container {
    display: flex;
    min-height: 100vh;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-width: 1400px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: #67ABD6;
    padding: 25px 0;
    color: #fff;
}

.sidebar h2 {
    padding: 0 20px;
    margin-bottom: 25px;
    font-size: 22px;
    color: #fff;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

.sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.3));
    border-radius: 2px;
}

.api-list {
    list-style: none;
    padding: 0;
    margin: 0 12px;
}

.api-list li {
    padding: 10px 15px;
    margin: 6px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.api-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.api-list li:hover {
    background: rgba(255,255,255,0.2);
}

.api-list li:hover:before {
    opacity: 1;
}

.api-list li.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 500;
}

.api-list li.active:before {
    opacity: 1;
}

.content {
    flex: 1;
    padding: 40px;
    background: white;
}

.api-info {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.api-info h2 {
    margin: 0 0 15px 0;
    color: #1565c0;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-info h2 i {
    font-size: 28px;
}

.api-info p {
    margin: 0;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-info p i {
    color: #1976d2;
}

.api-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.video-js {
    width: 100%;
    height: 400px;
}

.vjs-default-skin {
    border-radius: 12px;
}

.vjs-default-skin .vjs-big-play-button {
    background-color: rgba(25,118,210,0.9);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    line-height: 70px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.vjs-default-skin:hover .vjs-big-play-button {
    background-color: #1976d2;
    transform: translate(-50%, -50%) scale(1.1);
}

.vjs-default-skin .vjs-control-bar {
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .content {
        padding: 20px;
    }
    
    .video-js {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px 0;
    }
    
    .api-list {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        margin: 0;
    }
    
    .api-list li {
        white-space: nowrap;
        margin: 0 5px;
    }
    
    .content {
        padding: 15px;
    }
    
    .video-js {
        height: 300px;
    }
    
    .api-info {
        padding: 15px;
    }
    
    .video-container {
        max-width: 100%;
        border-radius: 8px;
        aspect-ratio: 9/16;
        height: auto;
    }
    
    .video-container video {
        width: 100%;
        height: 100%;
    }
    
    .next-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .next-button i {
        font-size: 18px;
    }
    
    .image-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .sidebar.collapsed {
        transform: none;
    }
    
    .sidebar.collapsed + .content {
        padding-left: 15px;
    }
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-grid.single-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.image-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-image .image-item {
    padding-bottom: 75%;
}

.image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: transform 0.3s ease;
}

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

.image-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 100%;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 14px;
    z-index: 1;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .image-grid.single-image {
        grid-template-columns: 1fr;
    }
}

button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.next-button {
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25,118,210,0.3);
    flex: 1;
    max-width: 150px;
    justify-content: center;
}

.next-button:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25,118,210,0.4);
}

.next-button:disabled {
    background: rgba(0,0,0,0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.next-button i {
    font-size: 20px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.cosplay-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cosplay-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .cosplay-title {
        font-size: 18px;
        margin: 0 0 15px;
    }
}

.category-list {
    padding: 0 12px;
}

.category-item {
    margin-bottom: 18px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.category-header {
    padding: 10px 15px;
    font-size: 15px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.category-header::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-header:hover::after {
    transform: translateX(100%);
}

.category-header i:first-child {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    transition: transform 0.3s ease;
}

.category-header:hover i:first-child {
    transform: scale(1.2);
}

.api-list {
    margin: 0;
    padding: 0 5px;
    transition: all 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.api-list[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.api-list li {
    padding: 8px 12px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
}

.api-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.9);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.api-list li:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.1);
}

.api-list li.active {
    background: rgba(255,255,255,0.15);
    color: #64b5f6;
    font-weight: 500;
    padding-left: 20px;
    border-color: rgba(100,181,246,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.api-list li.active::before {
    opacity: 1;
}

.category-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header i.mdi-chevron-up {
    transform: rotate(180deg);
}

.api-result {
    animation: fadeIn 0.3s ease;
}

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

.next-button {
    position: relative;
    overflow: hidden;
}

.next-button::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.next-button:hover::after {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .category-item {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .api-list {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 5px 0;
    }
    
    .api-list::-webkit-scrollbar {
        display: none;
    }
    
    .api-list li {
        flex: 0 0 auto;
        margin: 0 5px;
        white-space: nowrap;
    }
}

.control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.video-container + .control-buttons {
    margin-top: 20px;
}

.auto-play-button {
    background: #455a64;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(69,90,100,0.3);
    flex: 1;
    justify-content: center;
    max-width: 200px;
}

.auto-play-button:hover {
    background: #37474f;
    transform: translateY(-2px);
}

.auto-play-button.active {
    background: #2196f3;
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}

.auto-play-button i {
    font-size: 20px;
} 