/* 红桃视频 - 主样式文件 */
:root {
    --primary: #e8192c;
    --primary-dark: #c0142a;
    --primary-light: #ff4d5e;
    --secondary: #1a1a2e;
    --accent: #ff6b6b;
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --text-main: #222222;
    --text-sub: #555555;
    --text-muted: #888888;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(232,25,44,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-domain {
    font-size: 12px;
    color: var(--text-muted);
}

.header-domain span {
    color: var(--primary);
    font-weight: 600;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 24px;
    overflow: hidden;
    padding: 0 4px 0 16px;
}

.search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    background: transparent;
    color: var(--text-main);
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.search-form button:hover { background: var(--primary-dark); }

/* ===== NAV ===== */
.main-nav {
    background: var(--secondary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
}

.nav-list li a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #fff;
    background: rgba(232,25,44,0.15);
    border-bottom-color: var(--primary);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
    height: 360px;
    background: var(--secondary);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,25,44,0.85) 0%, rgba(26,26,46,0.7) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: #fff;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 15px;
    transition: all 0.2s;
}

.hero-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232,25,44,0.4);
}

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title a {
    font-size: 13px;
    color: var(--primary);
}

/* ===== MAIN LAYOUT ===== */
.main-content {
    padding: 30px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* ===== VIDEO CARDS ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.video-card:hover .play-btn {
    background: rgba(0,0,0,0.35);
}

.play-icon {
    width: 56px;
    height: 56px;
    background: rgba(232,25,44,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(232,25,44,0.5);
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}

.play-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.video-info {
    padding: 14px;
}

.video-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.video-meta .author { color: var(--primary); font-weight: 600; }

.video-stats {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.video-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tag {
    background: #fff0f0;
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #ffd0d4;
}

/* ===== NEWS LIST ===== */
.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-item {
    display: flex;
    gap: 14px;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.news-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.news-thumb {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body { flex: 1; }

.news-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title:hover { color: var(--primary); }

.news-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.news-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.news-meta .author { color: var(--primary); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hot list */
.hot-list { list-style: none; }

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.hot-list li:last-child { border-bottom: none; }

.hot-num {
    width: 20px;
    height: 20px;
    background: var(--border);
    color: var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.hot-num.top { background: var(--primary); color: #fff; }

.hot-list li a {
    color: var(--text-main);
    line-height: 1.4;
}

.hot-list li a:hover { color: var(--primary); }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tags-cloud a {
    background: #fff0f0;
    color: var(--primary);
    border: 1px solid #ffd0d4;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.tags-cloud a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Author cards */
.author-list { display: flex; flex-direction: column; gap: 12px; }

.author-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.author-info .role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== SPECIAL TOPICS ===== */
.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.special-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.special-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.special-thumb {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.special-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.special-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.special-info { padding: 12px; }

.special-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 6px;
}

.special-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-section { background: var(--bg-white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); margin: 30px 0; }

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

.faq-question .icon {
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
    display: none;
    padding: 0 0 16px 0;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== REVIEWS ===== */
.reviews-section { margin: 30px 0; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-user { font-weight: 700; font-size: 14px; color: var(--text-main); }

.review-stars { color: #f5a623; font-size: 14px; }

.review-text { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: #fff;
    margin: 30px 0;
}

.contact-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.contact-section p { opacity: 0.9; margin-bottom: 24px; }

.contact-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    transition: all 0.2s;
}

.contact-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary);
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .logo-text { color: #fff; font-size: 20px; }
.footer-brand .logo-sub { color: #888; }

.footer-desc {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-domain-text {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.footer-domain-text span { color: var(--primary); }

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-col ul li a {
    color: #888;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== PAGE SPECIFIC ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.page-header p { opacity: 0.9; font-size: 15px; }

.article-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-sub);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .special-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero-title { font-size: 22px; }
    .hero-banner { height: 240px; }
    .video-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .special-grid { grid-template-columns: 1fr; }
    .header-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .nav-list li a { padding: 10px 14px; font-size: 13px; }
}

/* ===== UTILS ===== */
.section { margin-bottom: 36px; }
.text-red { color: var(--primary); }
.badge-new { background: var(--primary); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700; vertical-align: middle; margin-left: 4px; }
.badge-hot { background: #ff6b00; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700; vertical-align: middle; margin-left: 4px; }

/* ===== SEARCH MODAL ===== */
#search-tip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    white-space: nowrap;
    z-index: 100;
    margin-top: 4px;
}

.search-bar { position: relative; }
