/* ============================================
   一人行传媒 - 全局样式
   炫酷科技感 × 大红大紫传媒风
   ============================================ */

/* CSS变量 */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #9b5de5;
    --secondary-dark: #7b2cbf;
    --accent: #f72585;
    --neon-red: #ff2a2a;
    --neon-purple: #b537f2;
    --neon-blue: #4cc9f0;
    --gold: #ffd60a;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border-color: rgba(155, 93, 229, 0.2);
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--neon-purple));
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f1a 100%);
    --shadow-glow: 0 0 20px rgba(155, 93, 229, 0.3);
    --shadow-neon: 0 0 10px rgba(230, 57, 70, 0.5), 0 0 40px rgba(155, 93, 229, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* 粒子画布 */
#particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ============ 导航栏 ============ */
.main-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.main-nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-glow);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.3rem;
}
.logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gradient-main);
    font-size: 0.85rem; font-weight: 900; color: #fff;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}
.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-menu {
    display: flex; align-items: center; gap: 5px;
}
.nav-link {
    padding: 8px 16px; border-radius: 8px;
    font-size: 0.95rem; font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(155, 93, 229, 0.1);
}
.nav-link.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; border-radius: 1px;
    background: var(--gradient-main);
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; padding: 5px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: var(--transition);
}

/* ============ 通用组件 ============ */
/* 页面头部横幅 */
.page-banner {
    position: relative; padding: 140px 0 80px;
    text-align: center; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(155, 93, 229, 0.15) 0%, transparent 70%);
}
.page-banner h1 {
    font-size: 2.8rem; font-weight: 900; margin-bottom: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.page-banner p {
    font-size: 1.1rem; color: var(--text-secondary);
    position: relative;
}

/* 区域标题 */
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 10px;
    position: relative; display: inline-block;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; border-radius: 2px;
    background: var(--gradient-main);
}
.section-title p {
    color: var(--text-secondary); font-size: 1rem; margin-top: 15px;
}

/* 卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(155, 93, 229, 0.4);
    box-shadow: var(--shadow-neon);
}
.card-img {
    width: 100%; height: 200px; object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.card-body { padding: 20px; }
.card-title {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-text {
    color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
    display: flex; align-items: center; gap: 15px;
    margin-top: 12px; font-size: 0.8rem; color: var(--text-muted);
}
.card-meta i { color: var(--secondary); }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient-main); color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}
.btn-outline {
    border: 1px solid var(--secondary); color: var(--secondary);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(155, 93, 229, 0.1);
    box-shadow: 0 0 15px rgba(155, 93, 229, 0.3);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* 标签 */
.tag {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 500;
    background: rgba(155, 93, 229, 0.15); color: var(--secondary);
    border: 1px solid rgba(155, 93, 229, 0.3);
}
.tag-red {
    background: rgba(230, 57, 70, 0.15); color: var(--primary);
    border-color: rgba(230, 57, 70, 0.3);
}

/* 网格 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

/* 分页 */
.pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 10px; font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--secondary); color: var(--secondary); }
.pagination .active {
    background: var(--gradient-main); color: #fff;
    border-color: transparent;
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* 面包屑 */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 30px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .sep { color: var(--text-muted); }

/* ============ 页脚 ============ */
.main-footer {
    position: relative; margin-top: 80px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #05050a 100%);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}
.footer-glow {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: var(--gradient-main);
    box-shadow: 0 0 30px rgba(155, 93, 229, 0.5);
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-about h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.2rem; margin-bottom: 15px;
}
.footer-about p {
    color: var(--text-secondary); font-size: 0.9rem;
    line-height: 1.8; margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(155, 93, 229, 0.1); border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gradient-main); color: #fff;
    border-color: transparent; box-shadow: var(--shadow-neon);
}
.footer-col h4 {
    font-size: 1rem; font-weight: 700; margin-bottom: 20px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px; background: var(--gradient-main);
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    color: var(--text-secondary); font-size: 0.9rem;
}
.footer-col ul a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--text-secondary); font-size: 0.9rem;
}
.footer-contact i { color: var(--secondary); margin-top: 4px; }
.footer-bottom {
    text-align: center; padding-top: 25px;
    border-top: 1px solid rgba(155, 93, 229, 0.1);
    font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--secondary); }

/* 回到顶部 */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 45px; height: 45px; border-radius: 12px;
    background: var(--gradient-main); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-neon);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition);
}
.back-to-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

/* ============ 动画 ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(155, 93, 229, 0.3); }
    50% { box-shadow: 0 0 40px rgba(155, 93, 229, 0.6); }
}
@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.6s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
        background: rgba(10, 10, 15, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 15px; transform: translateX(100%);
        transition: var(--transition);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-link { font-size: 1.2rem; padding: 12px 30px; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============ 表单 ============ */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; margin-bottom: 6px;
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
}
.form-control {
    width: 100%; padding: 12px 16px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); color: var(--text-primary);
    font-size: 0.95rem; transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

/* 空状态 */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }
.empty-state p { font-size: 1rem; }

/* 内容区域 */
.page-content {
    position: relative; z-index: 1;
    min-height: calc(100vh - 70px);
    padding-top: 70px;
}

/* 加载动画 */
.loading {
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.loading::after {
    content: ''; width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 文章内容 */
.article-content {
    line-height: 1.9; color: var(--text-secondary);
}
.article-content p { margin-bottom: 16px; }
.article-content img {
    border-radius: var(--radius); margin: 20px 0;
    border: 1px solid var(--border-color);
}
.article-content h2, .article-content h3 {
    color: var(--text-primary); margin: 30px 0 15px;
}
