/* === AI快讯 2.0 - 现代科技风 === */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(148, 163, 184, 0.1);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image: url('/images/assets/pattern-bg.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: overlay;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* === Header === */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.site-header nav {
    display: flex;
    gap: 8px;
}

.site-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.site-header nav a:hover {
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
}

/* === Hero === */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: url('/images/assets/hero-bg.webp') center/cover;
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-brand {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-brand a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.hero-brand strong {
    color: var(--accent);
}

/* === 分类导航 === */
.cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.cat-link {
    padding: 10px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.cat-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* === 工具推荐区 === */
.tools-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tools-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tool-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.tool-card span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* === 新闻卡片 === */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding-bottom: 64px;
}

.news-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-content {
    padding: 24px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.kw-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kw-badge {
    padding: 3px 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* === 文章页 === */
.article-page {
    padding-top: 40px;
    padding-bottom: 80px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

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

.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

.article-header {
    margin-bottom: 48px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 16px 0 20px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-meta .brand {
    color: var(--primary);
    font-weight: 600;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 48px 0 24px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
    color: var(--text);
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 36px 0 18px;
    color: var(--text);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.article-body a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.article-body strong {
    color: var(--text);
    font-weight: 700;
}

.article-body ul, .article-body ol {
    margin: 16px 0 24px 32px;
}

.article-body li {
    margin-bottom: 10px;
}

/* === 配图 === */
.article-hero {
    margin: 0 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-hero figcaption,
.article-inline-img figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px 0;
}

.article-inline-img {
    margin: 40px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-inline-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* === FAQ === */
.faq-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-left: 0;
    border-left: none;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
}

.faq-item summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.05);
    transition: all 0.3s;
    color: var(--text);
}

.faq-item summary:hover {
    background: rgba(59, 130, 246, 0.1);
}

.faq-item p {
    padding: 16px 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === 相关阅读 === */
.related-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-left: 0;
    border-left: none;
}

.related-section ul {
    list-style: none;
    padding: 0;
}

.related-section li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.related-section li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.related-section li a:hover {
    color: var(--accent);
}

/* === 主站内链区块 === */
.main-site-links {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.main-site-links h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-left: 0;
    border-left: none;
}

/* === 工具横幅 === */
.tools-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s;
}

.tools-banner:hover {
    transform: translateY(-2px);
}

.tools-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tools-banner-text {
    flex: 1;
    min-width: 0;
}

.tools-banner-title {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tools-banner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

.tools-banner-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    background: white;
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tools-banner-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

/* === Footer === */
.site-footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-grid h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-grid div a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-grid div a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === 响应式 === */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .article-header h1 { font-size: 2rem; }
    .news-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 1.6rem; }
    .article-body { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .tools-banner { flex-direction: column; text-align: center; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .news-list { grid-template-columns: 1fr; }
    .site-header .container { height: 64px; }
    .logo { font-size: 1.3rem; }
    .site-header nav { gap: 4px; }
    .site-header nav a { padding: 6px 12px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .tools-section { padding: 24px 20px; }
    .article-body h2 { font-size: 1.5rem; }
}
