/* ============================================================
   影评星球 · 全局基础样式
   包含：变量、重置、页头导航、搜索、页脚、动画、滚动条、响应式
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #006d77;
    --accent-dark: #004d55;
    --accent-light: #008891;
    --text: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ---- 全局重置 ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- 布局容器 ---- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- 页头导航 ---- */
header {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    font-size: 28px;
    transition: all 0.3s ease;
}

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

.logo i {
    margin-right: 10px;
    font-size: 32px;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    line-height: 1;
}

/* 搜索框 */
.search-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-box {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input {
    flex-grow: 1;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: var(--primary);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-dark);
}

/* 主导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent);
    font-weight: 700;
    background: rgba(0, 109, 119, 0.08);
}

.nav-menu a.active::before {
    width: 100%;
}

/* ---- 面包屑导航 ---- */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    color: var(--text-secondary);
}

.breadcrumb li + li::before {
    content: "/";
    margin: 0 8px;
    color: var(--border);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}

/* ---- 页脚 ---- */
footer {
    background: var(--secondary);
    padding: 50px 0 0;
    border-top: 2px solid var(--accent);
    margin-top: 60px;
    color: var(--text-secondary);
}

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

.footer-section {
    min-width: 200px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3 i {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
    padding: 3px 0;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.75rem;
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(6px);
}

/* 社交图标 */

/* 友情链接 */

/* 底部版权 */
.footer-bottom {
    text-align: center;
    padding: 20px 0 25px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 4px;
}

.footer-bottom a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.footer-bottom strong {
    color: var(--text);
}

.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 6px;
}

.footer-resource {
    font-size: 0.82rem;
    margin-top: 8px;
    opacity: 0.78;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* 骨架屏动画（供 JS 引用） */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ---- 汉堡菜单按钮 ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    gap: 4px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ---- 响应式：导航 & 搜索 ---- */
@media (max-width: 992px) {
    .nav-menu li {
        margin-left: 15px;
    }
    .search-container {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        margin-bottom: 0;
    }

    /* 默认隐藏导航，汉堡菜单控制 */
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 15px 0 5px;
        margin-top: 10px;
        background: var(--primary);
        border-top: 1px solid var(--border);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 1.05rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .nav-menu a::before {
        display: none;
    }

    .search-container {
        order: unset;
        width: auto;
        flex-grow: 1;
        margin: 0 10px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .breadcrumb {
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .search-container {
        width: 100%;
        margin: 10px 0 0;
        order: 3;
    }
    .search-input {
        font-size: 14px;
        padding: 10px 45px 10px 15px;
    }
    .search-btn {
        padding: 0 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* 工信部 ICP 备案 */
.footer-icp{margin-top:8px;font-size:13px;color:#a4b1be;text-align:center}
.footer-icp a{color:#a4b1be;text-decoration:none}
.footer-icp a:hover{color:#fff;text-decoration:underline}
