:root {
    --primary-color: #e60012; /* 女神异闻录标志性红色 */
    --primary-light: #ff4d57; /* 更亮的红色变体 */
    --secondary-color: #222222;
    --background-color: #101010; /* 深灰色背景，比纯黑更柔和 */
    --card-bg: #1a1a1a; /* 略微提亮的卡片背景 */
    --border-color: #333333;
    --text-color: #ffffff; /* 白色文本 */
    --text-secondary: #b3b3b3; /* 次要文本色 */
    --accent-color: #cc1f27; /* 稍深的红色作为强调 */
    --link-color: #ff6b6b; /* 明显更亮的链接颜色 */
    --link-hover: #ff9999; /* 链接悬停颜色 */
    --success-color: #4ade80; /* 更柔和的绿色 */
    --warning-color: #fbbf24; /* 更暖的黄色 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* 更深的阴影 */
    --card-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.25s ease;
}

body {
    font-family: 'Montserrat', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 25px;
    background-image: 
        linear-gradient(135deg, rgba(20, 20, 20, 0.4) 25%, 
        rgba(15, 15, 15, 0.4) 25%, rgba(15, 15, 15, 0.4) 50%, 
        rgba(20, 20, 20, 0.4) 50%, rgba(20, 20, 20, 0.4) 75%, 
        rgba(15, 15, 15, 0.4) 75%, rgba(15, 15, 15, 0.4) 100%);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

h1, h2 {
    color: var(--primary-light);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1::after, h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 70%;
    height: 3px;
    background-color: var(--primary-color);
    transform: skewX(-15deg);
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--link-hover);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.card {
    background-color: var(--card-bg);
    border-radius: 3px; /* 微妙的圆角 */
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.input-group {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

input[type="text"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    background-color: rgba(25, 25, 25, 0.7);
    color: var(--text-color);
    font-size: 16px;
    border-radius: 3px;
    transform: skewX(-3deg);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.3);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 22px;
    margin-left: 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    transform: skewX(-3deg);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: rotate(30deg) translate(-100%, 0);
    transition: all 0.5s;
}

button:hover {
    background-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(204, 31, 39, 0.4);
}

button:hover::after {
    transform: rotate(30deg) translate(300%, 0);
}

.channels-list {
    margin-bottom: 30px;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.channel-item:hover {
    background-color: rgba(230, 0, 18, 0.08);
}

.channel-item:last-child {
    border-bottom: none;
}

.channel-item a {
    color: var(--link-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.channel-item a:hover {
    color: var(--link-hover);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

select {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    background-color: rgba(25, 25, 25, 0.7);
    color: var(--text-color);
    border-radius: 3px;
    transform: skewX(-3deg);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--primary-color) 50%),
                      linear-gradient(135deg, var(--primary-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

select:focus {
    outline: none;
    border-color: var(--primary-light);
}

.search-box {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    background-color: rgba(25, 25, 25, 0.7);
    color: var(--text-color);
    border-radius: 3px;
    width: 220px;
    transform: skewX(-3deg);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-light);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 18px;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(204, 31, 39, 0.12);
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
}

th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

th:hover::after {
    transform: scaleX(1);
}

tr:hover {
    background-color: rgba(204, 31, 39, 0.07);
}

/* 特别增强视频链接的样式 */
td a {
    color: var(--link-color);
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: rgba(255, 107, 107, 0.05);
    transition: all 0.2s;
}

td a:hover {
    color: var(--link-hover);
    background-color: rgba(255, 107, 107, 0.15);
    text-decoration: none;
}

.loading {
    text-align: center;
    padding: 35px;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
}

.loading::after {
    content: "...";
    position: relative;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 3px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
    transform: skewX(-2deg);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px) skewX(-2deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.stat-title {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.message {
    padding: 16px;
    margin: 18px 0;
    border-radius: 3px;
    position: relative;
    border-left: 4px solid transparent;
}

.success {
    background-color: rgba(74, 222, 128, 0.1);
    border-left-color: var(--success-color);
}

.warning {
    background-color: rgba(251, 191, 36, 0.1);
    border-left-color: var(--warning-color);
}

.tab-container {
    margin-bottom: 35px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.tab-button {
    padding: 14px 28px;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    margin-right: 8px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tab-button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    z-index: -1;
    transition: height 0.3s ease;
}

.tab-button.active::before {
    height: 3px;
}

.tab-button:hover::before {
    height: 3px;
}

.tab-button.active {
    font-weight: bold;
    color: var(--primary-light);
}

.tab-content {
    display: none;
    padding: 28px 0;
    animation: fadeIn 0.5s;
}

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

.tab-content.active {
    display: block;
}

.video-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    border-radius: 2px;
}

.video-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(230, 0, 18, 0.6);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.pagination button {
    margin: 0 5px;
    min-width: 40px;
}

/* 上一页、下一页按钮样式增强 */
.pagination button.nav {
    background-color: var(--secondary-color);
}

.pagination button.nav:hover {
    background-color: var(--primary-color);
}

.pagination button.current {
    background-color: var(--primary-color);
}

.small {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* 视频信息样式增强 */
.video-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-details {
    flex: 1;
}

.video-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--link-color);
}

.video-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    button {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 8px;
    }
    
    .video-thumbnail {
        width: 90px;
        height: 50px;
    }
    
    .stat-card {
        transform: none;
    }
    
    .stat-card:hover {
        transform: translateY(-5px);
    }
}

/* 保留简化版的女神异闻录风格动态效果 */
.glitch-effect {
    position: relative;
    display: inline-block;
    color: var(--primary-light);
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    left: 1px;
    text-shadow: -1px 0 var(--primary-color);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
    clip-path: inset(0 0 0 0);
    opacity: 0.7;
}

.glitch-effect::after {
    left: -1px;
    text-shadow: 2px 0 #2196f3;
    animation: glitch-anim-2 3.5s infinite linear alternate-reverse;
    clip-path: inset(0 0 0 0);
    opacity: 0.7;
}

@keyframes glitch-anim-1 {
    0%, 100% {clip-path: inset(80% 0 0 0);}
    20% {clip-path: inset(10% 0 70% 0);}
    40% {clip-path: inset(50% 0 30% 0);}
    60% {clip-path: inset(0% 0 90% 0);}
    80% {clip-path: inset(30% 0 50% 0);}
}

@keyframes glitch-anim-2 {
    0%, 100% {clip-path: inset(10% 0 70% 0);}
    20% {clip-path: inset(40% 0 40% 0);}
    40% {clip-path: inset(20% 0 60% 0);}
    60% {clip-path: inset(60% 0 20% 0);}
    80% {clip-path: inset(5% 0 75% 0);}
}

/* SEO优化相关样式 - 添加到样式表末尾 */
.site-header {
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    background-color: rgba(20, 20, 20, 0.8);
}

.site-description {
    color: var(--text-secondary);
    margin-top: -15px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.site-footer {
    margin-top: 50px;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    background-color: rgba(15, 15, 15, 0.9);
}

.site-footer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
}

/* 视频卡片样式 */
.video-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0 35px 0;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border-bottom: 2px solid var(--primary-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

.video-thumbnail-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.video-card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-card-thumbnail {
    transform: scale(1.05);
}

.video-views {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.video-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.video-card-title a {
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.video-card-title a:hover {
    color: var(--primary-light);
}

.video-card-info {
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.video-channel {
    margin-bottom: 5px;
    font-weight: 500;
}

.video-date {
    font-size: 0.8rem;
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
    padding: 15px 0;
}

/* 标题样式优化 */
#analyticsTab h3 {
    color: var(--primary-light);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

#analyticsTab h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 添加到styles.css文件末尾 */
.action-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.action-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    background-color: var(--primary-color);
}

.action-button::before {
    content: "⟳";
    font-size: 16px;
}

/* 添加进度条样式 */
.refresh-progress {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 3px;
    border-left: 4px solid var(--primary-color);
}

.refresh-progress h4 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.progress-bar {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}