/* =====================================================================
   麻豆日本社区官网 - 主样式文件
   域名：mlnhh.cn | 樱花粉日系主题
   ===================================================================== */

:root {
    --primary: #e74c8b;
    --primary-dark: #c93a73;
    --primary-light: #f8a4c8;
    --secondary: #6c5ce7;
    --accent: #fd79a8;
    --bg-body: #fdf2f8;
    --bg-white: #ffffff;
    --bg-section: #fce4ec;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --text-main: #2d2d3a;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --border: #f3d5e0;
    --shadow: 0 4px 20px rgba(231,76,139,0.10);
    --shadow-hover: 0 8px 32px rgba(231,76,139,0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --max-width: 1200px;
    --header-h: 68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    display: flex; align-items: center; gap: 20px; height: var(--header-h);
}
.logo a { display: flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.logo { flex-shrink: 0; margin: 0; font-size: 0; }

.search-box { flex: 0 1 320px; }
.search-box form {
    display: flex; align-items: center;
    background: var(--bg-section); border-radius: 24px; overflow: hidden;
    border: 1px solid var(--border);
}
.search-box input {
    flex: 1; border: none; background: transparent; padding: 8px 16px;
    font-size: 14px; outline: none; color: var(--text-main);
}
.search-box button {
    border: none; background: var(--primary); color: white;
    padding: 8px 14px; cursor: pointer; transition: var(--transition);
}
.search-box button:hover { background: var(--primary-dark); }

.main-nav ul {
    display: flex; list-style: none; gap: 6px; flex-wrap: wrap;
}
.main-nav a {
    display: block; padding: 6px 12px; font-size: 14px; font-weight: 500;
    color: var(--text-main); border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-nav a:hover { color: var(--primary); background: var(--bg-section); }

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text-main);
    transition: var(--transition); border-radius: 2px;
}

/* ===== Breadcrumb ===== */
.breadcrumb { background: var(--bg-white); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; list-style: none; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--text-light); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text-light); }

/* ===== Hero Banner ===== */
.hero-banner {
    background: linear-gradient(135deg, #e74c8b 0%, #6c5ce7 50%, #fd79a8 100%);
    color: white; padding: 60px 0; text-align: center;
    position: relative; overflow: hidden;
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="80" r="2.5" fill="rgba(255,255,255,0.06)"/></svg>');
    background-size: 100px 100px;
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-banner h2 { font-size: 2.2rem; margin-bottom: 12px; font-weight: 700; }
.hero-banner p { font-size: 1.1rem; opacity: 0.92; max-width: 600px; margin: 0 auto 24px; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px; border-radius: 28px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: white; color: var(--primary); }
.btn-primary:hover { background: var(--bg-section); color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border-color: white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--primary); transform: translateY(-2px); }

/* ===== Section ===== */
.section { padding: 50px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-title {
    font-size: 1.8rem; font-weight: 700; color: var(--text-main);
    position: relative; display: inline-block; padding-bottom: 10px;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}
.section-subtitle { color: var(--text-light); margin-top: 8px; font-size: 15px; }

/* ===== Page Hero ===== */
.page-hero {
    padding: 50px 0; text-align: center; color: white;
    background: linear-gradient(135deg, #e74c8b, #6c5ce7);
}
.page-hero h2 { font-size: 2rem; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; }

/* ===== Video Grid & Cards ===== */
.video-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.video-card a { color: inherit; display: block; }
.video-thumb {
    position: relative; overflow: hidden; aspect-ratio: 16/9; background: #f8e8f0;
}
.video-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-overlay {
    position: absolute; inset: 0;
    background: rgba(231,76,139,0.0); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.video-card:hover .play-overlay { background: rgba(231,76,139,0.35); }
.play-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.92); display: flex;
    align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.7); transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.video-card:hover .play-icon { opacity: 1; transform: scale(1); }
.play-icon svg { margin-left: 3px; }
.video-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary); color: white; padding: 3px 10px;
    border-radius: 4px; font-size: 12px; font-weight: 600;
}
.video-tag.gold { background: var(--secondary); }
.video-duration {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.75); color: white; padding: 2px 8px;
    border-radius: 4px; font-size: 12px;
}
.video-info { padding: 14px 16px; }
.video-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-desc { font-size: 13px; color: var(--text-light); margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }

/* ===== Category Grid ===== */
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px;
}
.category-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 24px 16px;
    text-align: center; box-shadow: var(--shadow); transition: var(--transition);
    display: block; color: var(--text-main);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--primary); }
.category-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.category-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.category-count { font-size: 13px; color: var(--text-light); }

/* ===== AI Grid ===== */
.ai-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px;
}
.ai-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 28px 22px;
    box-shadow: var(--shadow); transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ai-icon { font-size: 2rem; margin-bottom: 12px; }
.ai-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-main); }
.ai-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Reviews ===== */
.review-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.review-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-hover); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.review-name { font-weight: 600; font-size: 14px; }
.review-stars { color: #f59e0b; font-size: 13px; }
.review-text { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Expert ===== */
.expert-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px;
}
.expert-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 26px;
    text-align: center; box-shadow: var(--shadow); transition: var(--transition);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expert-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
    object-fit: cover; border: 3px solid var(--primary-light); }
.expert-card h3 { font-size: 16px; margin-bottom: 4px; }
.expert-card .expert-role { font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.expert-card p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.btn-expert {
    display: inline-block; padding: 8px 22px; border-radius: 20px;
    background: var(--primary); color: white; font-size: 13px; font-weight: 600;
    transition: var(--transition);
}
.btn-expert:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border-radius: var(--radius-sm);
    margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); transition: var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 16px; font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== About Content ===== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h3 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--primary); }
.about-content p { margin-bottom: 14px; line-height: 1.8; color: var(--text-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0; }
.stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.contact-info-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--primary); }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.contact-item .icon { font-size: 1.3rem; }
.contact-form { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; outline: none;
    transition: var(--transition); background: var(--bg-body);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(231,76,139,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
    display: inline-block; padding: 12px 32px; background: var(--primary);
    color: white; border: none; border-radius: 24px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 14px; font-size: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 6px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--primary-light); }
.share-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.share-icon.wechat { background: #07c160; color: white; }
.share-icon.weibo { background: #e6162d; color: white; }
.share-icon.douyin { background: #111; color: white; }
.share-icon.bilibili { background: #00a1d6; color: white; }
.share-icon:hover { transform: translateY(-3px); opacity: 0.85; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom p { margin-bottom: 4px; }
