/* 基础样式 - 优化版 */
body {
    font-family: '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2c3e50;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
    font-size: 16px;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/bg-opt.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: -1;
    filter: blur(1px);
}

/* 全局动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* 页面容器 - 居中显示 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 0.6s ease-out;
}

.page-header h1 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
}

.back-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.page-footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.page-footer p {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 人物简介页面样式 */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px 25px 0 0;
}

.profile-image {
    margin-bottom: 35px;
    position: relative;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
    animation: pulse 2s ease-in-out infinite;
}

.profile-img:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3));
    animation: none;
}

.profile-info h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.profile-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.info-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.info-item strong {
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.character-list, .achievement-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.character-list li, .achievement-list li {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid #764ba2;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.character-list li:hover, .achievement-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.character-list li::before, .achievement-list li::before {
    content: '✨';
    color: #764ba2;
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
}

/* 图片展示页面样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.gallery-caption {
    padding: 15px;
    text-align: center;
    color: #333;
    font-weight: bold;
    background: rgba(0, 161, 214, 0.1);
}

/* 剧集页面样式 */
.episodes-container {
    max-width: 900px;
    width: 100%;
}

.episode-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.episode-card h2 {
    color: #00a1d6;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #00a1d6;
    padding-bottom: 8px;
}

.episode-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.episode-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-link {
    background: #00a1d6;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 161, 214, 0.3);
}

.video-link:hover {
    background: #0091c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.4);
}

.watching-tips {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.watching-tips h3 {
    color: #00a1d6;
    margin-bottom: 15px;
}

/* 技能页面样式 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
}

.skill-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.skill-card h2 {
    color: #00a1d6;
    margin-bottom: 15px;
    font-size: 20px;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.skill-details {
    list-style: none;
    padding: 0;
    text-align: left;
}

.skill-details li {
    background: rgba(0, 161, 214, 0.1);
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #00a1d6;
    position: relative;
}

.skill-details li::before {
    content: '•';
    color: #00a1d6;
    font-weight: bold;
    margin-right: 10px;
}

/* 人物关系页面样式 */
.relationships-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
}

.relationship-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.relationship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.relationship-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.relationship-card h2 {
    color: #00a1d6;
    margin-bottom: 10px;
    font-size: 20px;
}

.relationship-type {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 14px;
}

.relationship-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.relationship-details {
    list-style: none;
    padding: 0;
    text-align: left;
}

.relationship-details li {
    background: rgba(0, 161, 214, 0.1);
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #00a1d6;
    position: relative;
}

.relationship-details li::before {
    content: '♥';
    color: #00a1d6;
    margin-right: 10px;
}

/* 台词页面样式 */
.quotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
}

.quote-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.quote-card h2 {
    color: #00a1d6;
    margin-bottom: 15px;
    font-size: 20px;
}

.quote-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
    background: rgba(0, 161, 214, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00a1d6;
}

.quote-context {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.quote-episode {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* B站风格顶部导航栏 - 优化版 */
.bilibili-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: #2c3e50;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00a1d6;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 80%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 10px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    background: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.02);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 220px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.search-box input::placeholder {
    color: #95a5a6;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #667eea;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.search-btn:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.test-link-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.test-link-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: calc(100vh - 120px);
}

/* 侧边栏 */
.sidebar {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #00a1d6;
    padding-bottom: 5px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu a:hover {
    background: #00a1d6;
    color: white;
    transform: translateX(5px);
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #00a1d6;
    transition: width 0.3s;
    transform: translateY(-50%);
}

.sidebar-menu a:hover::before {
    width: 4px;
}

.hot-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.hot-item:hover {
    transform: translateX(5px);
    background: rgba(0, 161, 214, 0.1);
    box-shadow: 0 2px 8px rgba(0, 161, 214, 0.2);
}

.hot-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hot-item:hover .hot-img {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hot-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.hot-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* 主内容区 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banner轮播 */
.banner-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.banner {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1.1rem;
    margin: 10px 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.banner-btn {
    background: #00a1d6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.3);
}

.banner-btn:hover {
    background: #0091c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 161, 214, 0.4);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 推荐内容 */
.recommend-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #00a1d6;
    padding-bottom: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.content-card:hover .card-image img {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.card-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

/* 最新动态 */
.news-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(5px);
    background: rgba(0, 161, 214, 0.1);
    box-shadow: 0 2px 8px rgba(0, 161, 214, 0.2);
}

.news-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00a1d6;
    color: white;
    border-radius: 50%;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.news-content p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.news-time {
    color: #999;
    font-size: 12px;
}

/* 底部 */
.bilibili-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p, .footer-section a {
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #999;
    font-size: 14px;
}

/* 保留原有样式用于其他页面 */
.card {
    background: rgba(255,255,255,0.65);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30,144,255,0.13);
    padding: 32px 44px;
    width: 90%;
    max-width: 650px;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    backdrop-filter: blur(2.5px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(30,144,255,0.22);
    transform: scale(1.025) translateY(-4px);
    background: rgba(255,255,255,0.82);
}

.img-placeholder, .card img {
    background: rgba(240,240,240,0.7);
    border: 2px dashed #1e90ff;
    border-radius: 10px;
    width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    color: #888;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.img-placeholder:hover, .card img:hover {
    box-shadow: 0 12px 40px rgba(30,144,255,0.4);
    transform: scale(1.12) rotate(-2deg) translateY(-8px);
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

button {
    background: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px #1e90ff22;
    position: relative;
    overflow: hidden;
}

button:active {
    background: #005fa3;
    transform: scale(0.97);
}

button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 1;
}

button:active::after {
    width: 120px;
    height: 120px;
    transition: 0s;
}

/* 剧集页面专用样式 */
.episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.episode-list li {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    border-left: 4px solid #1e90ff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.episode-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(30,144,255,0.15);
}

.episode-list strong {
    display: block;
    margin-bottom: 10px;
    color: #1e90ff;
    font-size: 16px;
}

.episode-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-link {
    background: #1e90ff;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.video-link:hover {
    background: #005fa3;
    transform: scale(1.05);
}

/* 主页面剧集预览样式 */
.episode-preview {
    margin: 20px 0;
}

.episode-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    border-left: 3px solid #1e90ff;
    transition: transform 0.2s;
}

.episode-item:hover {
    transform: translateX(3px);
}

.episode-item strong {
    display: block;
    margin-bottom: 8px;
    color: #1e90ff;
    font-size: 14px;
}

@media (max-width: 700px) {
    .card {
        padding: 18px 8px;
        max-width: 98vw;
    }
    .img-placeholder, .card img {
        width: 98vw;
        height: 100px;
    }
    .episode-links {
        flex-direction: column;
    }
    .video-link {
        text-align: center;
    }
}

/* 响应式设计 - 手机端优化 */
@media (max-width: 768px) {
    /* 全局手机端优化 */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* 主容器手机端布局 */
    .main-container {
        grid-template-columns: 1fr;
        padding: 8px;
        gap: 15px;
    }
    
    /* 头部手机端优化 */
    .bilibili-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .header-container {
        padding: 8px 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    /* 导航栏手机端隐藏，改为底部导航 */
    .main-nav {
        display: none;
    }
    
    /* 搜索框手机端优化 */
    .search-box {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .search-box input {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .test-link-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 侧边栏手机端隐藏 */
    .sidebar {
        display: none;
    }
    
    /* 显示移动端底部导航 */
    .mobile-nav {
        display: flex;
    }
    
    /* 为底部导航留出空间 */
    .bilibili-footer {
        margin-bottom: 80px;
    }
    
    /* 子页面底部导航空间 */
    .page-footer {
        margin-bottom: 80px;
    }
    
    /* 内容区域手机端优化 */
    .content-area {
        padding: 0;
    }
    
    /* Banner手机端优化 */
    .banner {
        height: 180px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .banner-btn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .banner-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    /* 推荐区域手机端优化 */
    .recommend-section {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .content-card {
        border-radius: 12px;
        padding: 12px;
    }
    
    .card-image {
        height: 120px;
        border-radius: 8px;
    }
    
    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .card-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .card-stats {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    /* 新闻区域手机端优化 */
    .news-section {
        margin-bottom: 20px;
    }
    
    .news-item {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .news-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .news-content h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .news-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .news-time {
        font-size: 0.75rem;
    }
    
    /* 页脚手机端优化 */
    .bilibili-footer {
        padding: 20px 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .footer-section p, .footer-section a {
        font-size: 0.85rem;
    }
    
    /* 子页面手机端优化 */
    .page-container {
        padding: 12px;
    }
    
    .page-header {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .page-content {
        padding: 0;
    }
    
    .page-footer {
        padding: 15px 12px;
        margin-top: 20px;
    }
    
    /* 个人资料页面手机端优化 */
    .profile-card {
        max-width: 100%;
        padding: 15px;
    }
    
    .profile-image {
        margin-bottom: 15px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .profile-info h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-item {
        padding: 10px;
        border-radius: 8px;
    }
    
    .info-item strong {
        font-size: 0.9rem;
    }
    
    .character-list, .achievement-list {
        margin-top: 15px;
    }
    
    .character-list li, .achievement-list li {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    /* 图库页面手机端优化 */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery-item {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .gallery-caption {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* 剧集页面手机端优化 */
    .episodes-container {
        max-width: 100%;
    }
    
    .episode-card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .episode-card h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .episode-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .episode-links {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .video-link {
        padding: 10px 16px;
        font-size: 12px;
        text-align: center;
        border-radius: 20px;
    }
    
    .watching-tips {
        padding: 15px;
        border-radius: 12px;
        margin-top: 20px;
    }
    
    .watching-tips h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    /* 技能页面手机端优化 */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .skill-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .skill-card h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .skill-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .skill-details {
        margin-top: 12px;
    }
    
    .skill-details li {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    /* 关系页面手机端优化 */
    .relationships-container {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .relationship-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .relationship-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .relationship-card h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .relationship-type {
        font-size: 0.8rem;
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    .relationship-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .relationship-details {
        margin-top: 12px;
    }
    
    .relationship-details li {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    /* 名言页面手机端优化 */
    .quotes-container {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .quote-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .quote-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .quote-card h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .quote-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .quote-context {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .quote-episode {
        font-size: 0.75rem;
    }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 375px) {
    .header-container {
        padding: 6px 8px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .search-box input {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .banner {
        height: 160px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .banner-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .card-content h3 {
        font-size: 0.9rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .news-content h4 {
        font-size: 0.9rem;
    }
    
    .news-content p {
        font-size: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h2 {
        font-size: 1.2rem;
    }
    
    .gallery-img {
        height: 180px;
    }
    
    .episode-card h2 {
        font-size: 1rem;
    }
    
    .skill-card h2, .relationship-card h2, .quote-card h2 {
        font-size: 1rem;
    }
}

/* 移动端底部导航栏 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
}

.mobile-nav-item:hover {
    background: rgba(30, 144, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-item.active {
    background: rgba(30, 144, 255, 0.2);
    color: #1e90ff;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .banner {
        height: 140px;
    }
    
    .slide-content {
        padding: 10px;
    }
    
    .slide-content h2 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .main-container {
        padding: 6px;
        gap: 10px;
    }
    
    .card-grid {
        gap: 8px;
    }
    
    .content-card {
        padding: 8px;
    }
    
    .card-image {
        height: 100px;
    }
    
    /* 横屏时隐藏底部导航 */
    .mobile-nav {
        display: none !important;
    }
} 

/* v2 · 页脚备案号（管局要求显著位置标明） */
.icp-link {
    color: inherit !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    margin-left: 6px;
}
.icp-link:hover { color: #e60012 !important; -webkit-text-fill-color: #e60012 !important; }
.bilibili-footer .icp-link { color: #ddd !important; }
.bilibili-footer .icp-link:hover { color: #fff !important; }
