* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --bg-gradient: linear-gradient(to right, #2563eb 0%, #4f46e5 50%, #9333ea 100%);
    --bg-light: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #666666;
    --text-light: #999999;
    --card-bg: #ffffff;
    --card-border: #eeeeee;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}
a {
    text-decoration: none;
    color: var(--primary);
}
a:hover {
    color: var(--secondary);
    text-decoration: none;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a2e;
        --text-primary: #e0e0e0;
        --text-secondary: #a0a0a0;
        --text-light: #707070;
        --card-bg: #16213e;
        --card-border: #2a2a4a;
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    }
    header { background: rgba(22,33,62,0.95); }
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    overflow: visible;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; overflow: visible; line-height: 1; }
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; font-weight: 700;
    -webkit-text-fill-color: #fff;
}
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: color 0.2s; position: relative; padding: 0 1.25rem;
    display: flex; align-items: center; gap: 0.25rem;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary); }
.nav-links > li > a.active::after {
    content: ''; position: absolute; bottom: 0; left: 1.25rem; right: 1.25rem;
    height: 2px; background: var(--bg-gradient);
}
.nav-links > li > a::after {
    content: ''; width: 8px; height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; background-position: center;
    opacity: 0.5; transition: opacity 0.2s; margin-left: 4px;
    display: inline-block; vertical-align: middle;
}
.nav-links > li:first-child > a::after { display: none; }
.nav-links > li:hover > a::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.dropdown {
    display: none; position: fixed; top: 60px; left: 0; right: 0; width: 100%;
    background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.08); z-index: 2000;
    border-bottom: 1px solid rgba(0,0,0,0.08); padding: 0.75rem 0;
    list-style: none; text-align: center;
}
@media (prefers-color-scheme: dark) {
    .dropdown { background: #16213e; border-bottom: 1px solid var(--card-border); }
    .dropdown li a { color: var(--text-secondary); }
    .dropdown li a:hover { color: #667eea; background: rgba(102,126,234,0.12); }
}
.dropdown li { display: inline-block; margin: 0 0.25rem; }
.dropdown li a {
    color: #666; text-decoration: none; font-size: 0.9rem;
    padding: 0.5rem 1.5rem; display: inline-block; transition: all 0.2s;
}
.dropdown li a:hover { color: #667eea; background: rgba(102,126,234,0.12); border-radius: 20px; }
.header-right { display: flex; align-items: center; gap: 1rem; }
.submit-btn {
    background: var(--bg-gradient); color: #fff; padding: 0.5rem 1.25rem;
    border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); color: #fff !important; }
.lang-dropdown-container { position: relative; }
.lang-switch { background: none; border: 1px solid var(--card-border); color: var(--text-secondary); padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; gap: 0.3rem; transition: all 0.2s; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 0.5rem; background: #fff; border-radius: 8px; box-shadow: var(--shadow-md); list-style: none; padding: 0.5rem 0; min-width: 120px; z-index: 3000; }
.lang-dropdown.active { display: block; }
@media (prefers-color-scheme: dark) { .lang-dropdown { background: var(--card-bg); } }
.lang-dropdown li a { display: block; padding: 0.5rem 1rem; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; transition: all 0.2s; }
.lang-dropdown li a:hover { background: rgba(102,126,234,0.1); color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-btn svg { width: 24px; height: 24px; color: var(--text-primary); }
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0;
        border-bottom: 1px solid var(--card-border); z-index: 1999;
    }
    .nav-links.active { display: flex; }
    .nav-links > li { border-bottom: 1px solid var(--card-border); }
    .nav-links > li > a { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
    .nav-links > li > a::after { width: 16px; height: 16px; }
    .dropdown { position: static; display: none; background: rgba(102,126,234,0.05); border: none; box-shadow: none; padding: 0; text-align: left; }
    .dropdown.active { display: block; }
    .dropdown li { display: block; margin: 0; }
    .dropdown li a { padding: 0.8rem 2rem 0.8rem 3rem; font-size: 0.85rem; }
}

footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    padding: 3rem 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 7fr 2fr 1fr;
    gap: 2rem;
}
.footer-col:last-child {
    justify-self: end;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #93a3ff;
}
.footer-logo {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.footer-social {
    display: flex; gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s;
}
.footer-cta {
    background: #f5f7fa;
    padding: 3rem 20px;
}
.footer-cta .container {
    background: #eff6ff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-cta-text {
    display: flex;
    flex-direction: column;
}
.footer-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.footer-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.cta-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    color: #fff !important;
}

.footer-social a:hover {
    background: var(--bg-gradient);
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.hero {
    padding: 5rem 20px;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #4f46e5 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: -50%; right: -50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; }
.search-box {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    display: flex;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
}
.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}
.search-box input::placeholder { color: #9ca3af; }
.search-btn {
    padding: 1rem 2rem;
    background: var(--bg-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}
.search-btn:hover {
    opacity: 0.9;
    transform: translateX(-2px);
}
.news-ticker {
    max-width: 680px;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.news-ticker .ticker-label {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.news-ticker .ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}
.news-ticker .ticker-list {
    display: flex;
    animation: ticker-scroll 7.5s linear infinite;
}
.news-ticker .ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding-right: 2rem;
}
.news-ticker .ticker-category {
    background: rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
}
.news-ticker .ticker-title {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
}
.news-ticker:hover .ticker-list {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.section { }
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin: 3rem;
    color: var(--text-primary);
}
.topics-section {
    padding: 4rem 20px;
    background: #f5f7fa;
}
.topics-section .section-title {
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    max-width: 100%;
}
.topic-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.topic-image {
    height: 140px;
    overflow: hidden;
    position: relative;
}
.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.topic-card:hover .topic-image img {
    transform: scale(1.1);
}
.topic-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}
.topic-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.topic-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.topic-desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.featured-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.featured-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.featured-card:hover .featured-image img {
    transform: scale(1.05);
}
.featured-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.featured-category-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgb(37 99 235/var(--tw-bg-opacity,1));
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff !important;
    z-index: 1;
    text-decoration: none;
}
.featured-category-tag:hover {
    color: #fff !important;
}
.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.featured-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.featured-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.featured-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}
.featured-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.featured-views svg {
    width: 14px;
    height: 14px;
}
.featured-detail {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.featured-detail:hover {
    color: var(--secondary);
}
.featured-detail svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.featured-detail:hover svg {
    transform: translateX(2px);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.category-count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.sub-category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.sub-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.sub-category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.sub-category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.sub-section {
    margin-bottom: 3rem;
}
.sub-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}
.sub-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}
.sub-section-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.sub-section-more:hover {
    color: var(--secondary);
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.article-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.article-item:hover {
    background: rgba(102,126,234,0.05);
    padding-left: 0.5rem;
}
.article-item:last-child {
    border-bottom: none;
}
.article-item-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}
.article-item-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.article-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover .article-image img {
    transform: scale(1.05);
}
.article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.article-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-thumb {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}
.article-views {
    color: var(--text-light);
}
.article-detail-link {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}
.article-detail-link:hover {
    color: var(--secondary);
}

.page-header {
    padding: 3rem 20px;
    margin-bottom: 0;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #4f46e5 100%);
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}
.page-header p {
    color: rgba(255,255,255,0.8);
}
.page-header .breadcrumb {
    margin-top: 1rem;
}
.page-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
}
.page-header .breadcrumb a:hover {
    color: #fff;
}
.page-header .breadcrumb span {
    color: #fff;
}
.breadcrumb {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--text-secondary);
}
.breadcrumb a:hover {
    color: var(--primary);
}

.article-meta {
    margin: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.article-meta span {
    margin-right: 1.5rem;
}
.featured-image {
    display: block;
    margin: 0 auto 2rem;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-content img {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
}
.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}
.article-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.75rem 0 0.875rem;
    color: var(--text-primary);
}
.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}
.article-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.625rem;
    color: var(--text-primary);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}
.modal-close {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: #eee;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: none;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: all 0.25s;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}
.form-group textarea {
    resize: none;
    min-height: 100px;
    line-height: 1.5;
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.captcha-group {
    display: flex;
    flex-direction: column;
}
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.captcha-row input {
    flex: 1;
}
.captcha-image {
    width: 130px;
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    object-fit: cover;
}
.captcha-image:hover {
    opacity: 0.9;
}
.submit-form-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 16px;
}
.submit-form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79,70,229,0.35);
}
.submit-form-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .search-box { flex-direction: column; gap: 0.5rem; }
    .search-box input { border-radius: 30px; }
    .search-btn { border-radius: 30px; }
    .categories-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; }
    .article-thumb { width: 100%; height: 150px; }
}

@media (max-width: 480px) {
    .header-inner { height: 56px; }
    .hero { padding: 3rem 0; }
    .section { padding: 2rem 0; }
    .section-title { font-size: 1.5rem; }
    .page-header h1 { font-size: 1.5rem; }
}

.ad-slot {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    border: 3px dashed rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 1.5rem 0;
}
.ad-slot::before {
    content: '📌 广告位 [' attr(data-position) ']';
    display: block;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ad-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s;
    border: 3px dashed #ec4899 !important;
    display: none;
}

.ad-card.has-ad {
    display: block;
}
.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.ad-card .featured-image,
.ad-card .article-image {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%) !important;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-card .featured-content,
.ad-card .article-content {
    padding: 1rem;
    background: rgba(236, 72, 153, 0.1);
}
.ad-card .featured-content > div,
.ad-card .article-content > div {
    color: #ec4899 !important;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

.ad-card .ad-full-content {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.featured-views {
    color: var(--text-secondary);
}

.featured-views svg {
    color: inherit;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.back-to-top-btn:hover {
    color: #93a3ff;
}

.ad-slot {
    display: none;
}

.ad-slot.has-ad {
    display: block;
}

.page-content-wrapper {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    display: none;
}

.sidebar.has-ad {
    display: block;
}

@media (max-width: 992px) {
    .page-content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
}
