:root.light {
    --bg-main: #ffffff;
    --bg-card: #f8f9fa;
    --bg-ad: #f1f3f5;
    --text-primary: #1a1a1a;
    --text-secondary: #444444;
    --text-muted: #6e6e6e;
    --border-color: #e2e5e9;
    --accent-color: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #dbeafe;
    --print-hide: block;
}
:root.dark {
    --bg-main: #121417;
    --bg-card: #1e2228;
    --bg-ad: #272c33;
    --text-primary: #f0f0f0;
    --text-secondary: #c8c8c8;
    --text-muted: #949494;
    --border-color: #333942;
    --accent-color: #60a5fa;
    --accent-dark: #3b82f6;
    --accent-light: #1e3a5f;
    --print-hide: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}
a {
    color: var(--accent-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
ul, ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}
h1, h2, h3 {
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}
h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}
h3 {
    font-size: 1.25rem;
}
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
button, select, input, textarea {
    font-family: inherit;
    cursor: pointer;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 99;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}
.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}
.search-results.show {
    display: block;
}
.search-result-item {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: var(--accent-light);
}
.search-result-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}
.search-result-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.main-nav {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.main-nav a {
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}
.main-nav a:hover::after {
    width: 100%;
}
.nav-dropdown-wrap {
    position: relative;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.nav-dropdown a {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.nav-dropdown a:hover {
    background: var(--accent-light);
}
.nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}
.dropdown-section:first-child {
    border-top: none;
}
.dropdown-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    padding-left: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-control-group {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.header-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.header-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.ad-block {
    background: var(--bg-ad);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1.8rem 0;
}
.ad-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.ad-top-banner {
    width: 100%;
    min-height: 90px;
}
.ad-in-content {
    margin: 2.5rem 0;
    min-height: 250px;
}
.page-content {
    padding: 2rem 0;
}
.hero-section {
    position: relative;
    padding: 4rem 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 10% 10%, rgba(147, 197, 253, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
        var(--bg-main);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-separator {
    color: var(--border-color);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.home-header {
    text-align: center;
    margin-bottom: 3rem;
}
.slogan-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.slogan-track {
    position: relative;
    height: 3.5rem;
    overflow: hidden;
}
.slogan-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slogan-item.active {
    opacity: 1;
    transform: translateY(0);
}
.slogan-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.slogan-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.slogan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slogan-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent-color);
}
.slogan-dot:hover {
    background-color: var(--accent-color);
}
.category-section {
    margin-bottom: 4rem;
}
.category-title {
    margin-bottom: 1.2rem;
    padding-left: 0.4rem;
    border-left: 4px solid var(--accent-color);
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.tool-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb, #1d4ed8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s ease;
}
.tool-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    text-decoration: none;
    border-color: transparent;
}
.tool-card:hover::after {
    opacity: 1;
}
.tool-card:hover::before {
    left: 100%;
}
.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
.tool-grid .tool-card:nth-child(1) .tool-icon { animation-delay: 0s; }
.tool-grid .tool-card:nth-child(2) .tool-icon { animation-delay: 0.3s; }
.tool-grid .tool-card:nth-child(3) .tool-icon { animation-delay: 0.6s; }
.tool-grid .tool-card:nth-child(4) .tool-icon { animation-delay: 0.9s; }
.tool-grid .tool-card:nth-child(5) .tool-icon { animation-delay: 1.2s; }
.tool-grid .tool-card:nth-child(6) .tool-icon { animation-delay: 1.5s; }
.tool-grid .tool-card:nth-child(7) .tool-icon { animation-delay: 0.2s; }
.tool-grid .tool-card:nth-child(8) .tool-icon { animation-delay: 0.5s; }
.tool-grid .tool-card:nth-child(9) .tool-icon { animation-delay: 0.8s; }
.tool-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}
.tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.calculator-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-main);
    color: var(--text-primary);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.calculate-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: filter 0.2s;
}
.calculate-btn:hover {
    filter: brightness(1.1);
}
.result-section {
    background: var(--accent-light);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.result-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.result-breakdown {
    margin-top: 1.5rem;
}
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}
.result-row:last-child {
    border-bottom: none;
}
.result-row strong {
    color: var(--text-primary);
}
.example-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.example-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.example-box {
    background: var(--bg-main);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.example-box:last-child {
    margin-bottom: 0;
}
.example-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.example-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.chart-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}
.chart-container h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}
@media (max-width: 768px) {
    .chart-wrapper {
        height: 250px;
    }
    .chart-container {
        padding: 1rem;
    }
}
.source-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
}
.source-info h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}
.source-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.source-meta-item {
    font-size: 0.9rem;
}
.source-meta-item strong {
    color: var(--text-primary);
    margin-right: 0.3rem;
}
.source-meta-item span {
    color: var(--text-secondary);
}
.source-meta-item a {
    color: var(--accent-color);
}
.references-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0;
}
.references-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}
.source-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}
.key-takeaways {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}
.key-takeaways h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}
.takeaways-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.takeaways-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
}
.takeaways-list li:last-child {
    border-bottom: none;
}
.takeaway-icon {
    color: var(--accent-color);
    font-weight: 600;
    margin-right: 0.8rem;
    font-size: 0.85rem;
}
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
}
.faq-section h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}
.faq-list {
    margin: 0;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    width: 100%;
    padding: 0.8rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}
.faq-question:hover {
    color: var(--accent-color);
}
.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.faq-answer {
    padding: 0 0 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}
.content-wrapper {
    display: flex;
    gap: 2rem;
}
.main-content {
    flex: 1;
}
.sidebar {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}
.sidebar-links {
    list-style: none;
    padding-left: 0;
}
.sidebar-links li {
    margin-bottom: 0.5rem;
}
.sidebar-links li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.sidebar-links li a:hover {
    color: var(--accent-color);
}
.blog-section {
    padding: 3rem 0;
    background-color: var(--bg-card);
}
.blog-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.blog-section .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.blog-section .section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    background-color: var(--bg-main);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.blog-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.blog-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.blog-section-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), rgba(255,255,255,0.8), rgba(255,255,255,0.4), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover::before {
    left: 150%;
}
.author-profile {
    max-width: 800px;
    margin: 0 auto;
}
.author-avatar {
    font-size: 6rem;
    text-align: center;
    margin-bottom: 1rem;
}
.author-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}
.author-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.author-credentials, .author-experience, .author-articles {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}
.author-credentials ul, .author-experience ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
.author-credentials li, .author-experience li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.author-article-list {
    list-style-type: none;
    padding: 0;
    margin-top: 0.5rem;
}
.author-article-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.author-article-list li:last-child {
    border-bottom: none;
}
.author-article-list a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
}
.author-article-list a:hover {
    text-decoration: underline;
}
.error-page {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}
.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.error-search {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 2rem auto;
}
.error-search .search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}
.error-suggestions, .error-guides {
    margin-top: 2rem;
    text-align: left;
}
.error-guide-list {
    list-style-type: none;
    padding: 0;
}
.error-guide-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.error-guide-list li:last-child {
    border-bottom: none;
}
.error-guide-list a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
}
.error-guide-list a:hover {
    text-decoration: underline;
}
.error-back-home {
    margin-top: 2rem;
}
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}
.in-article-ad {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: var(--bg-ad);
    border: 1px solid var(--border-color);
}
.in-article-ad .ad-top-banner {
    height: 90px;
    border-radius: 6px;
    background: white;
}
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.related-article-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-article-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.related-article-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.related-article-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem;
    margin-top: 5rem;
}
.footer-col-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
.copyright-line {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.disclaimer-box {
    margin-top: 2rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}
.core-conclusion {
    background: var(--accent-light);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}
.core-conclusion h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.1rem;
    color: var(--accent-color);
}
.partner-sites-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.partner-sites-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}
.partner-sites-section > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.partner-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.partner-site-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.partner-site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}
.partner-site-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}
.partner-site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.partner-site-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    background: var(--accent-light);
    color: var(--accent-color);
    font-weight: 600;
}
tr:hover {
    background: var(--accent-light);
}
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        margin: 1rem 0;
    }
    .tool-grid {
        grid-template-columns: 1fr;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .source-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    table {
        font-size: 0.85rem;
    }
}
@media print {
    .site-header,
    .site-footer,
    .ad-block,
    .sidebar,
    .header-control-group {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .content-wrapper {
        flex-direction: column;
    }
}
.cookie-banner-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:9999;padding:1rem}
.cookie-banner-container{background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;max-width:500px;width:100%;padding:1.5rem;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.cookie-banner-content{display:flex;gap:1rem;margin-bottom:1.5rem}
.cookie-banner-icon{font-size:2.5rem;flex-shrink:0}
.cookie-banner-text h3{font-size:1.2rem;margin:0 0 .5rem;color:var(--text-primary)}
.cookie-banner-text p{font-size:.9rem;color:var(--text-secondary);margin:0}
.cookie-banner-options{display:flex;flex-direction:column;gap:.8rem;margin-bottom:1.5rem;padding:.8rem;background:var(--bg-main);border-radius:8px}
.cookie-option{display:flex;align-items:center;gap:.8rem;cursor:pointer}
.cookie-checkbox{width:18px;height:18px;accent-color:var(--accent-color)}
.cookie-option span:first-of-type{font-size:.9rem;color:var(--text-primary);font-weight:500}
.cookie-option-desc{font-size:.75rem;color:var(--text-muted);margin-left:auto}
.cookie-banner-actions{display:flex;gap:.8rem;margin-bottom:1rem}
.cookie-btn{flex:1;padding:.75rem 1rem;border:none;border-radius:6px;font-size:.9rem;font-weight:500;transition:all .2s}
.cookie-btn-reject{background:var(--bg-ad);color:var(--text-secondary);border:1px solid var(--border-color)}
.cookie-btn-reject:hover{background:var(--border-color)}
.cookie-btn-accept{background:var(--accent-color);color:#fff}
.cookie-btn-accept:hover{filter:brightness(1.1)}
.cookie-btn-accept-all{background:var(--accent-light);color:var(--accent-color);border:1px solid var(--accent-color)}
.cookie-btn-accept-all:hover{background:var(--accent-color);color:#fff}
.cookie-banner-links{display:flex;justify-content:center;gap:1.5rem;font-size:.8rem}
.cookie-banner-links a{color:var(--text-muted)}
.cookie-banner-links a:hover{color:var(--accent-color)}
.ccpa-link{display:block;text-align:center;margin-top:15px;font-size:12px;color:var(--text-muted)}
.cookie-banner-overlay.fade-out{opacity:0;transition:opacity .3s ease}