/**
 * 管理员专属作者页面样式
 * 高端、大气、响应式设计
 */

:root {
    --admin-primary: #FF6A00;
    --admin-primary-dark: #E55D00;
    --admin-accent: #FFB800;
    --admin-gold: #FFD700;
    --admin-gradient: linear-gradient(135deg, #FF6A00 0%, #FF8533 50%, #FFB800 100%);
    --admin-shadow: 0 10px 40px rgba(255, 106, 0, 0.15);
    --admin-shadow-hover: 0 15px 50px rgba(255, 106, 0, 0.25);
}

/* ==================== 英雄区域 ==================== */
.vc-admin-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.vc-admin-hero .vc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.vc-admin-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.vc-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--admin-gradient);
    opacity: 1;
}

.vc-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 184, 0, 0.2) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.05); }
}

.vc-admin-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vc-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.vc-admin-badge svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vc-admin-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.vc-admin-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 60px 0;
    font-weight: 400;
    line-height: 1.6;
}

/* 统计卡片 */
.vc-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.vc-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.vc-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.vc-stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
}

.vc-stat-card:hover .vc-stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.vc-stat-content {
    text-align: center;
}

.vc-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.vc-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==================== 导航标签 ==================== */
.vc-admin-nav {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vc-admin-nav .vc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.vc-admin-tabs {
    display: flex;
    gap: 0;
}

.vc-admin-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vc-admin-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--admin-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vc-admin-tab:hover {
    color: var(--admin-primary);
    background: rgba(255, 106, 0, 0.05);
}

.vc-admin-tab.active {
    color: var(--admin-primary);
}

.vc-admin-tab.active::before {
    transform: scaleX(1);
}

.vc-admin-tab svg {
    transition: transform 0.3s ease;
}

.vc-admin-tab:hover svg,
.vc-admin-tab.active svg {
    transform: scale(1.1);
}

.vc-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: #f5f5f5;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.vc-admin-tab.active .vc-tab-count {
    background: var(--admin-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* ==================== 内容区域 ==================== */
.vc-admin-content {
    padding: 60px 0 80px;
    background: #fafafa;
}

.vc-admin-content .vc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.vc-admin-tab-content {
    display: none;
}

.vc-admin-tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 产品网格 ==================== */
.vc-admin-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vc-admin-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.vc-admin-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--admin-shadow-hover);
}

.vc-admin-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--admin-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.4);
    letter-spacing: 0.5px;
}

.vc-admin-product-badge svg {
    width: 12px;
    height: 12px;
}

.vc-admin-product-image {
    display: block;
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.vc-admin-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vc-admin-product-card:hover .vc-admin-product-image img {
    transform: scale(1.08);
}

.vc-admin-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #ccc;
}

.vc-admin-product-body {
    padding: 25px;
}

.vc-admin-product-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.vc-admin-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vc-admin-product-title a:hover {
    color: var(--admin-primary);
}

.vc-admin-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vc-admin-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.vc-admin-product-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
}

.vc-admin-product-date svg {
    width: 14px;
    height: 14px;
}

.vc-admin-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--admin-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vc-admin-product-link:hover {
    gap: 10px;
    color: var(--admin-primary-dark);
}

.vc-admin-product-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.vc-admin-product-link:hover svg {
    transform: translateX(4px);
}

/* ==================== 文章网格 ==================== */
.vc-admin-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.vc-admin-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.vc-admin-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--admin-shadow-hover);
}

.vc-admin-article-image {
    display: block;
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.vc-admin-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vc-admin-article-card:hover .vc-admin-article-image img {
    transform: scale(1.08);
}

.vc-admin-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 106, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
}

.vc-admin-article-card:hover .vc-admin-article-overlay {
    opacity: 1;
}

.vc-admin-article-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vc-admin-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.vc-admin-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--admin-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.vc-admin-article-badge svg {
    width: 10px;
    height: 10px;
}

.vc-admin-article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
}

.vc-admin-article-date svg {
    width: 14px;
    height: 14px;
}

.vc-admin-article-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.vc-admin-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vc-admin-article-title a:hover {
    color: var(--admin-primary);
}

.vc-admin-article-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-admin-article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.vc-admin-article-link:hover {
    gap: 12px;
    color: var(--admin-primary-dark);
}

.vc-admin-article-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.vc-admin-article-link:hover svg {
    transform: translateX(4px);
}

/* ==================== 空状态 ==================== */
.vc-admin-empty {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

.vc-admin-empty svg {
    margin-bottom: 30px;
    opacity: 0.3;
}

.vc-admin-empty h3 {
    font-size: 24px;
    color: #666;
    margin: 0 0 10px 0;
}

.vc-admin-empty p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* ==================== 响应式设计 ==================== */

/* 平板 */
@media (max-width: 1024px) {
    .vc-admin-hero .vc-container,
    .vc-admin-nav .vc-container,
    .vc-admin-content .vc-container {
        padding: 0 30px;
    }
    
    .vc-admin-title {
        font-size: 48px;
    }
    
    .vc-admin-stats {
        gap: 20px;
    }
    
    .vc-admin-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .vc-admin-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .vc-admin-hero .vc-container,
    .vc-admin-nav .vc-container,
    .vc-admin-content .vc-container {
        padding: 0 20px;
    }
    
    .vc-admin-hero {
        padding: 80px 0 60px;
        min-height: 400px;
    }
    
    .vc-admin-title {
        font-size: 36px;
    }
    
    .vc-admin-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .vc-admin-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }
    
    .vc-stat-card {
        flex-direction: row;
        padding: 20px;
        text-align: left;
    }
    
    .vc-stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .vc-stat-content {
        text-align: left;
    }
    
    .vc-stat-number {
        font-size: 28px;
    }
    
    .vc-admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .vc-admin-tab {
        padding: 16px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .vc-admin-tab span:first-of-type {
        display: none;
    }
    
    .vc-admin-content {
        padding: 40px 0 60px;
    }
    
    .vc-admin-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vc-admin-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vc-admin-product-image,
    .vc-admin-article-image {
        height: 220px;
    }
    
    .vc-admin-article-title {
        font-size: 20px;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .vc-admin-hero .vc-container,
    .vc-admin-nav .vc-container,
    .vc-admin-content .vc-container {
        padding: 0 15px;
    }
    
    .vc-admin-hero {
        padding: 60px 0 40px;
    }
    
    .vc-admin-title {
        font-size: 28px;
    }
    
    .vc-admin-subtitle {
        font-size: 14px;
    }
    
    .vc-admin-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .vc-stat-card {
        padding: 15px;
    }
    
    .vc-stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .vc-stat-number {
        font-size: 24px;
    }
    
    .vc-admin-product-body,
    .vc-admin-article-body {
        padding: 20px;
    }
    
    .vc-admin-articles-grid {
        grid-template-columns: 1fr;
    }
}
