/* 青柠视频 - 全局样式 | y97m1d.cn */
:root {
    --primary-color: #ff6b00;
    --secondary-color: #1a237e;
    --bg-dark: #0a0e29;
    --text-light: #ffffff;
    --text-gray: #b0bec5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; }

/* ===== 头部导航 ===== */
header {
    background: rgba(10, 14, 41, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 38px;
    width: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.logo span {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* ===== 搜索框 ===== */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 7px 40px 7px 15px;
    color: white;
    width: 200px;
    outline: none;
    transition: var(--transition);
    font-size: 14px;
}

.search-bar input::placeholder {
    color: var(--text-gray);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 107, 0, 0.05);
    width: 240px;
}

.search-bar button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

/* ===== 通用布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h1,
.section-title h2 {
    font-size: 34px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
}

.section-title p {
    color: var(--text-gray);
    font-size: 17px;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), #e65c00);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ===== 动漫视频卡片特效优化 ===== */
.video-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    will-change: transform;
}


.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.25);
    border-color: rgba(255, 107, 0, 0.3);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 0, 0.85);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid white;
    margin-left: 4px;
}

.video-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.video-info {
    padding: 14px;
}

.video-info h3 {
    font-size: 15px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 13px;
}

/* ===== 专家卡片 ===== */
.expert-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.expert-card:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-5px);
}

.expert-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    display: block;
}

/* ===== FAQ ===== */
.faq-item {
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 20px 25px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.faq-q {
    font-weight: 700;
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-a {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== 评论卡片 ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

/* ===== 页脚 ===== */
footer {
    background: #050714;
    padding: 60px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 14px;
}

.qr-codes {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    margin-bottom: 5px;
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.qr-item span {
    font-size: 11px;
    color: var(--text-gray);
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .search-bar {
        display: none;
    }

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

    .section-padding {
        padding: 50px 0;
    }
}
