/* ============================================
   日本三级 - 原创样式表
   品牌色系：日本三级色 #FF6B9D / 深玫红 #C44569 / 暖金 #F8B500
   设计风格：现代影视传媒 + 视频社区
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: #333; background: #FFF5F7; line-height: 1.7; overflow-x: hidden;
}
a { color: #C44569; text-decoration: none; transition: color .3s; }
a:hover { color: #FF6B9D; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ Header & Navigation ============ */
.site-header {
    background: linear-gradient(135deg, #2D1B30 0%, #4A2545 100%);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(45,27,48,.3);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 68px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span {
    font-size: 1.4rem; font-weight: 700; color: #FF6B9D;
    letter-spacing: 1px;
}
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
    color: #f0d0df; padding: 22px 16px; font-size: .95rem;
    transition: all .3s; position: relative; white-space: nowrap;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 14px; left: 50%; width: 0;
    height: 2px; background: #FF6B9D; transition: all .3s; transform: translateX(-50%);
}
.main-nav a:hover, .main-nav a.active { color: #FF6B9D; }
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }
.mobile-menu-btn {
    display: none; background: none; border: none; color: #FF6B9D;
    font-size: 1.5rem; cursor: pointer;
}

/* ============ Search Bar ============ */
.search-bar-wrap {
    background: linear-gradient(90deg, #FF6B9D 0%, #C44569 100%);
    padding: 12px 0;
}
.search-bar {
    max-width: 680px; margin: 0 auto; display: flex;
    background: #fff; border-radius: 30px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(255,107,157,.3);
}
.search-bar input {
    flex: 1; border: none; padding: 12px 24px; font-size: .95rem;
    outline: none; background: transparent; color: #333;
}
.search-bar input::placeholder { color: #bbb; }
.search-bar button {
    background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff;
    border: none; padding: 12px 28px; cursor: pointer; font-size: .95rem;
    transition: opacity .3s;
}
.search-bar button:hover { opacity: .85; }

/* ============ Hero Banner ============ */
.hero-section {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2D1B30, #4A2545);
    min-height: 520px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 1;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero-content {
    position: relative; z-index: 2; max-width: 1200px;
    margin: 0 auto; padding: 100px 20px 80px;
    text-align: center; color: #fff;
}
.hero-content h1 {
    font-size: 2.8rem; font-weight: 800; margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-content h1 .brand { color: #FF6B9D; }
.hero-content p {
    font-size: 1.15rem; max-width: 700px; margin: 0 auto 30px;
    opacity: .9; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    color: #fff; padding: 14px 36px; border-radius: 30px;
    font-size: 1rem; font-weight: 600; transition: all .3s;
    box-shadow: 0 4px 15px rgba(255,107,157,.4); display: inline-block;
    border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(255,107,157,.5); color: #fff; }
.btn-outline {
    border: 2px solid #FF6B9D; color: #FF6B9D; padding: 12px 34px;
    border-radius: 30px; font-size: 1rem; font-weight: 600;
    transition: all .3s; display: inline-block; background: transparent;
    cursor: pointer;
}
.btn-outline:hover { background: #FF6B9D; color: #fff; }

/* ============ Section Common ============ */
.section { padding: 70px 0; }
.section-dark { background: linear-gradient(135deg, #2D1B30, #3A1F3D); color: #fff; }
.section-alt { background: #fff; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: 2rem; font-weight: 700; color: #2D1B30;
    margin-bottom: 12px; position: relative; display: inline-block;
}
.section-dark .section-header h2 { color: #FF6B9D; }
.section-header h2::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: linear-gradient(90deg, #FF6B9D, #F8B500);
    margin: 12px auto 0; border-radius: 2px;
}
.section-header p { color: #666; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: #cba8d0; }

/* ============ Video Cards Grid ============ */
.video-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.video-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(45,27,48,.08);
    transition: all .3s; position: relative;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(255,107,157,.15); }
.video-thumb {
    position: relative; overflow: hidden; aspect-ratio: 16/9;
    cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.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(45,27,48,.4);
    opacity: 0; transition: opacity .3s;
}
.video-thumb:hover .play-btn { opacity: 1; }
.play-btn svg {
    width: 60px; height: 60px; fill: #FF6B9D;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.video-duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.75); color: #fff; padding: 2px 8px;
    border-radius: 4px; font-size: .78rem;
}
.video-info { padding: 16px; }
.video-info h3 {
    font-size: 1rem; font-weight: 600; color: #2D1B30;
    margin-bottom: 8px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: .82rem; color: #999;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.video-tags span {
    background: #FFF0F5; color: #C44569; padding: 3px 10px;
    border-radius: 12px; font-size: .75rem;
}

/* ============ Category Tabs ============ */
.cat-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.cat-tab {
    padding: 8px 22px; border-radius: 20px; font-size: .9rem;
    cursor: pointer; transition: all .3s; border: 1px solid #eee;
    background: #fff; color: #666;
}
.cat-tab:hover, .cat-tab.active {
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    color: #fff; border-color: transparent;
}

/* ============ Features / Services ============ */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,107,157,.15);
    border-radius: 16px; padding: 36px 24px; text-align: center;
    transition: all .3s;
}
.feature-card:hover {
    background: rgba(255,107,157,.1); transform: translateY(-4px);
    border-color: #FF6B9D;
}
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    border-radius: 16px; display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: .88rem; color: #cba8d0; line-height: 1.6; }

/* ============ Expert Team ============ */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(45,27,48,.08); text-align: center;
    transition: all .3s;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255,107,157,.15); }
.expert-avatar {
    width: 100%; aspect-ratio: 1; overflow: hidden;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.expert-card:hover .expert-avatar img { transform: scale(1.05); }
.expert-info { padding: 20px 16px; }
.expert-info h3 { font-size: 1.05rem; color: #2D1B30; margin-bottom: 4px; }
.expert-info .role { color: #C44569; font-size: .85rem; margin-bottom: 10px; }
.expert-info p { font-size: .82rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-btns a {
    padding: 6px 16px; border-radius: 16px; font-size: .8rem;
    transition: all .3s;
}
.expert-btns .btn-sm-primary {
    background: #FF6B9D; color: #fff;
}
.expert-btns .btn-sm-outline {
    border: 1px solid #FF6B9D; color: #FF6B9D;
}
.expert-btns a:hover { opacity: .8; }

/* ============ Partners Logo Wall ============ */
.partner-logos {
    display: flex; flex-wrap: wrap; gap: 30px;
    justify-content: center; align-items: center;
}
.partner-logos .partner-item {
    background: #fff; padding: 20px 30px; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s;
    font-size: 1.1rem; font-weight: 600; color: #666;
}
.partner-logos .partner-item:hover { box-shadow: 0 4px 20px rgba(255,107,157,.15); color: #C44569; }

/* ============ How-To Guide ============ */
.howto-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    counter-reset: step;
}
.howto-step {
    text-align: center; position: relative; padding: 30px 20px;
}
.howto-step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; margin: 0 auto 16px;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    color: #fff; border-radius: 50%; font-size: 1.3rem; font-weight: 700;
}
.howto-step h3 { font-size: 1rem; color: #2D1B30; margin-bottom: 8px; }
.howto-step p { font-size: .85rem; color: #666; line-height: 1.6; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff; border-radius: 12px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(45,27,48,.05); overflow: hidden;
}
.faq-question {
    padding: 20px 24px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    font-weight: 600; color: #2D1B30; font-size: .98rem;
    transition: background .3s;
}
.faq-question:hover { background: #FFF0F5; }
.faq-question .arrow { color: #FF6B9D; transition: transform .3s; font-size: 1.2rem; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
    padding: 0 24px; color: #666; font-size: .9rem; line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ============ Reviews ============ */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
    background: #fff; border-radius: 16px; padding: 28px;
    box-shadow: 0 4px 20px rgba(45,27,48,.06); position: relative;
}
.review-card::before {
    content: '\201C'; position: absolute; top: 12px; left: 20px;
    font-size: 3rem; color: #FFD5E5; font-family: serif; line-height: 1;
}
.review-stars { color: #F8B500; margin-bottom: 12px; font-size: 1rem; letter-spacing: 2px; }
.review-text { font-size: .9rem; color: #555; line-height: 1.8; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author .avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #F8B500);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .9rem;
}
.review-author .name { font-weight: 600; color: #2D1B30; font-size: .9rem; }
.review-author .date { font-size: .78rem; color: #999; }

/* ============ Contact Section ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,107,157,.15);
    border-radius: 16px; padding: 30px; text-align: center;
    transition: all .3s;
}
.contact-card:hover { border-color: #FF6B9D; background: rgba(255,107,157,.08); }
.contact-card h3 { color: #FF6B9D; font-size: 1.1rem; margin-bottom: 16px; }
.contact-card p { color: #cba8d0; font-size: .9rem; line-height: 1.8; }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: 8px; }

/* ============ Social Share ============ */
.share-bar {
    display: flex; gap: 12px; justify-content: center;
    padding: 20px 0; flex-wrap: wrap;
}
.share-btn {
    padding: 10px 20px; border-radius: 20px; font-size: .85rem;
    color: #fff; transition: all .3s; cursor: pointer; border: none;
}
.share-btn:hover { opacity: .85; transform: translateY(-2px); }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* ============ Footer ============ */
.site-footer {
    background: linear-gradient(135deg, #1A0E1C, #2D1B30);
    color: #cba8d0; padding: 60px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 36px; }
.footer-brand .footer-logo span { color: #FF6B9D; font-size: 1.2rem; font-weight: 700; }
.footer-brand p { font-size: .88rem; line-height: 1.8; margin-bottom: 16px; }
.footer-qrcodes { display: flex; gap: 16px; }
.footer-qrcodes .qr-item { text-align: center; }
.footer-qrcodes .qr-item img { width: 100px; border-radius: 8px; margin-bottom: 6px; }
.footer-qrcodes .qr-item span { font-size: .75rem; color: #9a7a9e; }
.footer-col h4 { color: #FF6B9D; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #9a7a9e; font-size: .88rem; padding: 4px 0; transition: color .3s; }
.footer-col a:hover { color: #FF6B9D; }
.footer-bottom {
    border-top: 1px solid rgba(255,107,157,.1); margin-top: 40px;
    padding: 20px; text-align: center; font-size: .82rem; color: #7a5a7e;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
    padding: 14px 0; font-size: .85rem; color: #999;
}
.breadcrumb a { color: #C44569; }
.breadcrumb span { margin: 0 6px; }

/* ============ Inner Page Banner ============ */
.inner-banner {
    background: linear-gradient(135deg, #2D1B30, #4A2545);
    padding: 60px 0; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.inner-banner h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.inner-banner h1 .brand { color: #FF6B9D; }
.inner-banner p { color: #cba8d0; font-size: 1rem; }

/* ============ Content Cards for Inner Pages ============ */
.content-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.content-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(45,27,48,.08); transition: all .3s;
}
.content-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255,107,157,.12); }
.content-card .card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.content-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.content-card:hover .card-img img { transform: scale(1.05); }
.content-card .card-body { padding: 20px; }
.content-card .card-body h3 { font-size: 1.05rem; color: #2D1B30; margin-bottom: 8px; }
.content-card .card-body p { font-size: .88rem; color: #666; line-height: 1.7; }

/* ============ AI Feature Section ============ */
.ai-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.ai-showcase .ai-img { border-radius: 16px; overflow: hidden; }
.ai-showcase .ai-img img { width: 100%; border-radius: 16px; }
.ai-showcase .ai-text h3 { font-size: 1.5rem; color: #2D1B30; margin-bottom: 16px; }
.ai-showcase .ai-text p { color: #666; line-height: 1.8; margin-bottom: 14px; }
.ai-list { list-style: none; }
.ai-list li {
    padding: 8px 0; padding-left: 28px; position: relative;
    color: #555; font-size: .92rem;
}
.ai-list li::before {
    content: '✦'; position: absolute; left: 0; color: #FF6B9D;
}

/* ============ Stats Bar ============ */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center; padding: 40px 0;
}
.stat-item .stat-num {
    font-size: 2.5rem; font-weight: 800; color: #FF6B9D;
    line-height: 1.2;
}
.stat-item .stat-label { font-size: .9rem; color: #cba8d0; margin-top: 6px; }

/* ============ Community Section ============ */
.community-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.comm-card {
    background: #fff; border-radius: 16px; padding: 30px;
    text-align: center; box-shadow: 0 4px 20px rgba(45,27,48,.06);
    transition: all .3s;
}
.comm-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255,107,157,.12); }
.comm-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem;
}
.comm-card h3 { font-size: 1.05rem; color: #2D1B30; margin-bottom: 8px; }
.comm-card p { font-size: .85rem; color: #666; line-height: 1.7; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .video-grid, .content-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .expert-grid, .howto-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ai-showcase { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { height: 56px; }
    .main-nav { 
        display: none; position: fixed; top: 56px; left: 0; right: 0;
        background: #2D1B30; flex-direction: column; padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,.3);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content { padding: 60px 20px 50px; }
    .hero-section { min-height: 400px; }
    .video-grid, .content-grid { grid-template-columns: 1fr; }
    .features-grid, .expert-grid, .howto-steps { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .community-features { grid-template-columns: 1fr; }
    .partner-logos .partner-item { padding: 14px 20px; font-size: .95rem; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .search-bar { flex-direction: column; border-radius: 12px; }
    .search-bar input { padding: 12px 16px; }
    .search-bar button { border-radius: 0 0 12px 12px; }
    .hero-btns { flex-direction: column; align-items: center; }
}

/* ============ Lazy Load ============ */
img[data-src] { opacity: 0; transition: opacity .5s; }
img[data-src].loaded { opacity: 1; }

/* ============ Animation ============ */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
