/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* 顶部导航栏 */
.header {
    background-color: #000000;
    border-bottom: 2px solid #ff9000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

/* Logo样式 */
.logo a {
    text-decoration: none;
    font-size: 36px;
    font-weight: bold;
}

.logo-text {
    color: #ffffff;
}

.logo-hub {
    color: #ff9000;
}

.logo-emoji {
    font-family: 'Noto Color Emoji', sans-serif;
    margin-left: 8px;
    font-size: 40px;
    vertical-align: baseline;
}

/* 搜索框样式 */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #333333;
    border-radius: 25px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff9000;
    background-color: #222222;
}

.search-input::placeholder {
    color: #888888;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff9000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ffb000;
    transform: translateY(-50%) scale(1.05);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: #ff9000;
    color: #000000;
}



/* 主要内容区域 */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff9000, #ffb000);
    border-radius: 2px;
}

/* 筛选按钮 */
.section-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #333333;
    background-color: #2a2a2a;
    color: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #ff9000;
    background-color: #ff9000;
    color: #000000;
}

/* 图片网格 - 强制所有屏幕都显示至少2列 */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5px !important;
}

/* 响应式断点 */
@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
}

@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px !important;
        padding: 0 20px !important;
    }
}

.gallery-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 144, 0, 0.3);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: all 0.3s ease;
    background-color: #000;
    display: block;
}

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

.gallery-info {
    padding: 12px;
    min-height: 50px;
    max-height: 75px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.gallery-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888888;
}

.gallery-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-duration {
    background-color: #ff9000;
    color: #000000;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(45deg, #ff9000, #ffb000);
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 144, 0, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* 页脚 */
.footer {
    background-color: #000000;
    border-top: 2px solid #ff9000;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ff9000;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section li {
    color: #cccccc;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff9000;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #888888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        margin: 0;
        max-width: 100%;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .categories-wrapper {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .logo a {
        font-size: 24px;
    }

    /* 隐藏图片类型标签，节省空间 */
    .gallery-duration {
        display: none;
    }

    /* 统计容器占满宽度 */
    .stats-container {
        width: 100%;
        justify-content: space-between;
    }

    /* 调整信息区域高度 */
    .gallery-info {
        min-height: 60px;
        max-height: 80px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333333;
    border-radius: 50%;
    border-top-color: #ff9000;
    animation: spin 1s ease-in-out infinite;
}

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

/* 悬浮效果 */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 144, 0, 0.1), rgba(255, 176, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* 总数显示样式 */
.total-count {
    font-size: 18px;
    font-weight: normal;
    color: #ff9000;
    margin-left: 8px;
}

/* 上传页面样式 */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.upload-form {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #333333;
}

.upload-area {
    border: 2px dashed #ff9000;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #0f0f0f;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #ffb000;
    background-color: #1a1a1a;
}

.upload-area.dragover {
    border-color: #ffb000;
    background-color: rgba(255, 144, 0, 0.1);
}

.upload-icon {
    color: #ff9000;
    margin-bottom: 15px;
}

.upload-text h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 18px;
}

.upload-text p {
    color: #888888;
    font-size: 14px;
}

.preview-container {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 2px solid #333333;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background-color: #ff6666;
    transform: scale(1.1);
}

.upload-info {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #333333;
    border-radius: 8px;
    background-color: #0f0f0f;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.upload-actions {
    text-align: center;
    margin-bottom: 20px;
}

.upload-btn {
    background: linear-gradient(45deg, #ff9000, #ffb000);
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 144, 0, 0.4);
}

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

.upload-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #333333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff9000, #ffb000);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

.upload-result {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.upload-result.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
}

.upload-result.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
}

.result-message {
    color: #ffffff;
    font-weight: bold;
}

/* 加载状态和无更多内容提示 */
.loading-status,
.no-more-content {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
}

.loading-status p,
.no-more-content p {
    font-family: 'Noto Color Emoji', 'Arial', 'Helvetica', sans-serif;
    font-size: 18px;
    color: #cccccc;
    font-weight: 500;
}

/* 统计容器样式 */
.stats-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-count {
    font-size: 12px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-count svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* 下载按钮样式 */
.download-btn {
    background-color: #ff9000;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 60px;
    height: 28px;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: #ffb000;
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.download-count {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
}

/* 复制提示样式 */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ff9000;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    z-index: 10000;
    border: 2px solid #ff9000;
    box-shadow: 0 10px 30px rgba(255, 144, 0, 0.3);
    animation: copyNotificationShow 2.5s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes copyNotificationShow {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg); 
    }
    15% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg); 
    }
    25% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    }
    85% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8) rotate(3deg); 
    }
}

/* 图片点击提示效果已移除 */
.gallery-item {
    position: relative;
}

/* 复制成功时的闪烁效果 - 应用到图片元素 */
.gallery-image.copying {
    animation: copyFlash 0.6s ease-in-out;
}

@keyframes copyFlash {
    0%, 100% { 
        box-shadow: 0 10px 25px rgba(255, 144, 0, 0.3); 
    }
    50% { 
        box-shadow: 0 10px 40px rgba(255, 144, 0, 0.8), 
                    0 0 20px rgba(255, 144, 0, 0.6) inset; 
        transform: translateY(-5px) scale(1.02);
    }
}