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

:root {
    --douhao-primary: #f59e0b;
    --douhao-primary-dark: #d97706;
    --douhao-primary-light: #fef3c7;
    --douhao-bg: #f8fafc;
    --douhao-card: #ffffff;
    --douhao-text: #1e293b;
    --douhao-text-secondary: #64748b;
    --douhao-border: #e2e8f0;
    --douhao-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --douhao-radius-xl: 24px;
    --douhao-radius-lg: 18px;
    --douhao-radius-md: 14px;
    --douhao-radius-sm: 10px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--douhao-bg);
    color: var(--douhao-text);
    line-height: 1.6;
    font-size: 16px;
    padding: 0 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.douhao-navbar {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226,232,240,0.6);
    margin-bottom: 26px;
    position: relative;
}
.douhao-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--douhao-text);
    flex-shrink: 0;
}
.douhao-logo img { height: 40px; width: auto; display: block; }
.douhao-logo span { color: var(--douhao-primary); }

.douhao-nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.douhao-nav-links a {
    color: var(--douhao-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 9px 17px;
    border-radius: 40px;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.douhao-nav-links a:hover,
.douhao-nav-links a.active {
    background: var(--douhao-primary-light);
    color: var(--douhao-primary-dark);
}

.douhao-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}
.douhao-top-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
}
.douhao-top-search > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}
.douhao-top-search-input {
    width: 100%;
    padding: 10px 88px 10px 36px;
    border: 1px solid var(--douhao-border);
    border-radius: 30px;
    font-size: 0.9rem;
    background: #f1f5f9;
    outline: none;
    transition: all .2s ease;
    font-family: inherit;
    box-sizing: border-box;
}
.douhao-top-search-input:focus {
    border-color: var(--douhao-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.douhao-top-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all .2s ease;
    z-index: 2;
}
.douhao-top-search-btn:hover {
    box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}
.douhao-top-search-btn i { font-size: 0.8rem; }

.douhao-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--douhao-text);
    cursor: pointer;
    padding: 6px 8px;
}
.douhao-search-toggle:hover { color: var(--douhao-primary-dark); }

.douhao-mobile-search {
    display: none;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease;
    max-height: 0;
    opacity: 0;
}
.douhao-mobile-search.show {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 16px;
}
.douhao-mobile-search form {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 10px 0;
}
.douhao-mobile-search form i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}
.douhao-mobile-search-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px 11px 38px;
    border: 1px solid var(--douhao-border);
    border-radius: 30px;
    font-size: 0.9rem;
    background: #f1f5f9;
    outline: none;
    font-family: inherit;
}
.douhao-mobile-search-input:focus {
    border-color: var(--douhao-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.douhao-mobile-search-btn {
    flex: 0 0 auto;
    padding: 11px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245,158,11,0.25);
}

.douhao-menu-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--douhao-text); cursor: pointer; padding: 6px 8px; }
.douhao-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 998;
}
.douhao-menu-overlay.show { display: block; }
.douhao-mobile-menu {
    position: fixed;
    top: 0; right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: right .3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}
.douhao-mobile-menu.show { right: 0; }
.douhao-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
}
.douhao-mobile-menu-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}
.douhao-mobile-menu-body { padding: 8px 0; overflow-y: auto; }
.douhao-mobile-menu-body a {
    display: block;
    padding: 14px 22px;
    color: var(--douhao-text);
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
}
.douhao-mobile-menu-body a.active { color: var(--douhao-primary-dark); background: var(--douhao-primary-light); }

.douhao-main {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    padding-bottom: 30px;
}

.douhao-card {
    background: var(--douhao-card);
    border-radius: var(--douhao-radius-xl);
    padding: 30px 26px;
    box-shadow: var(--douhao-shadow);
    border: 1px solid rgba(255,255,255,0.6);
}

.douhao-card-header { text-align: center; margin-bottom: 26px; }
.douhao-card-header .douhao-icon {
    font-size: 2.3rem;
    margin-bottom: 6px;
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    width: 62px;
    height: 62px;
    line-height: 62px;
    border-radius: 20px;
    color: #b45309;
}
.douhao-card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.douhao-card-header p { font-size: 0.9rem; color: var(--douhao-text-secondary); margin-top: 4px; }

.douhao-form-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.douhao-form-group { flex: 1; min-width: 100px; }
.douhao-form-group label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--douhao-text-secondary);
    margin-bottom: 6px;
}
.douhao-form-group select,
.douhao-form-group input {
    width: 100%;
    padding: 15px 17px;
    border: 2px solid var(--douhao-border);
    border-radius: var(--douhao-radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #f1f5f9;
    outline: none;
    color: var(--douhao-text);
    font-weight: 500;
}
.douhao-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}
.douhao-form-group select:focus,
.douhao-form-group input:focus {
    border-color: var(--douhao-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}

.douhao-btn-inline {
    flex: 0 0 auto;
    padding: 15px 26px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: var(--douhao-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(245,158,11,0.25);
    white-space: nowrap;
    margin-bottom: 2px;
}
.douhao-btn-inline:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(245,158,11,0.35); }

.douhao-message-box { margin-top: 12px; min-height: 8px; }
.douhao-alert-error {
    padding: 13px 17px;
    border-radius: var(--douhao-radius-sm);
    font-size: 0.9rem;
    background: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 8px;
}

.douhao-result-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--douhao-radius-xl);
    padding: 26px;
    text-align: center;
    display: none;
    box-shadow: 0 12px 28px -8px rgba(245,158,11,0.3);
    border: 1px solid #fcd34d;
    margin-top: 16px;
}
.douhao-result-amount { font-size: 0.95rem; color: #92400e; margin-bottom: 4px; font-weight: 500; }
.douhao-result-main {
    font-size: 2.4rem;
    font-weight: 800;
    color: #78350f;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.douhao-result-main .douhao-small { font-size: 1.2rem; font-weight: 600; color: #92400e; }
.douhao-result-rate { font-size: 0.9rem; color: #a16207; margin-top: 8px; font-weight: 500; }
.douhao-result-time { font-size: 0.75rem; color: #ca8a04; margin-top: 4px; }

.douhao-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.douhao-list-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #78350f;
    display: flex;
    align-items: center;
}
.douhao-list-header .douhao-meta {
    font-size: 0.8rem;
    color: var(--douhao-text-secondary);
    background: #f1f5f9;
    padding: 5px 13px;
    border-radius: 30px;
}
.douhao-list-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    align-items: center;
}
.douhao-search-box { position: relative; flex: 1; min-width: 0; }
.douhao-search-box input {
    width: 100%;
    padding: 13px 17px 13px 42px;
    border: 2px solid var(--douhao-border);
    border-radius: var(--douhao-radius-md);
    font-size: 0.9rem;
    background: #f1f5f9;
    outline: none;
}
.douhao-search-box input:focus {
    border-color: var(--douhao-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
}
.douhao-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
}
.douhao-filter-btns { display: flex; gap: 6px; flex-shrink: 0; }
.douhao-filter-btn {
    padding: 10px 17px;
    border: 1px solid var(--douhao-border);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f8fafc;
    color: var(--douhao-text-secondary);
    cursor: pointer;
    white-space: nowrap;
}
.douhao-filter-btn:hover { border-color: var(--douhao-primary); color: var(--douhao-primary-dark); }
.douhao-filter-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px rgba(245,158,11,0.3);
}

.douhao-rate-table-wrapper {
    border: 1px solid var(--douhao-border);
    border-radius: var(--douhao-radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.douhao-rate-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 17px;
}
.douhao-rate-table thead { background: #f8fafc; }
.douhao-rate-table th {
    padding: 13px 15px;
    text-align: right;
    font-size: 17px;
    font-weight: 600;
    color: var(--douhao-text-secondary);
    white-space: nowrap;
    border-bottom: 1px solid var(--douhao-border);
}
.douhao-rate-table th:first-child { text-align: left; }
.douhao-rate-table td {
    padding: 13px 15px;
    text-align: right;
    color: var(--douhao-text);
    white-space: nowrap;
    border-bottom: 1px solid #f1f5f9;
    font-size: 17px;
}
.douhao-rate-table td:first-child { text-align: left; }
.douhao-rate-table tbody tr:hover { background: #fffbeb; }
.douhao-rate-table tbody tr:last-child td { border-bottom: none; }

.douhao-currency-cell { display: flex; align-items: center; gap: 10px; }
.douhao-currency-cell .douhao-flag {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
    object-fit: cover;
}
.douhao-currency-cell .douhao-name { color: #78350f; }
.douhao-currency-cell .douhao-code { font-size: 0.75rem; color: var(--douhao-text-secondary); font-weight: 400; }
.douhao-rate-value { font-variant-numeric: tabular-nums; font-weight: 500; }
.douhao-rate-time { font-size: 0.75rem; color: #94a3b8; }
.douhao-empty-hint { text-align: center; color: #94a3b8; padding: 40px 20px; font-size: 0.95rem; }

.douhao-knowledge { background: linear-gradient(135deg, #fff 0%, #f9fafb 100%); }
.douhao-knowledge-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.douhao-knowledge-header i {
    font-size: 1.9rem;
    color: var(--douhao-primary);
    background: var(--douhao-primary-light);
    padding: 13px;
    border-radius: 18px;
}
.douhao-knowledge-cat-icon {
    width: 54px;
    height: 54px;
    padding: 13px;
    border-radius: 18px;
    background: var(--douhao-primary-light);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.douhao-knowledge-header h3 { font-size: 1.4rem; font-weight: 700; color: #0f172a; }
.douhao-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.douhao-knowledge-item {
    padding: 20px 18px;
    background: #fff;
    border-radius: var(--douhao-radius-lg);
    border: 1px solid var(--douhao-border);
    transition: all .2s ease;
}
.douhao-knowledge-item:hover {
    border-color: var(--douhao-primary);
    box-shadow: 0 12px 24px -12px rgba(245,158,11,0.2);
    transform: translateY(-2px);
}
.douhao-knowledge-item h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.douhao-knowledge-item h4 a { color: #0f172a; }
.douhao-knowledge-item h4 a:hover { color: var(--douhao-primary-dark); }
.douhao-knowledge-item p { font-size: 0.85rem; color: var(--douhao-text-secondary); line-height: 1.65; }

.douhao-bottom-two {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.douhao-bottom-tags { flex: 2; min-width: 320px; }
.douhao-bottom-links { flex: 1; min-width: 240px; }
.douhao-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.douhao-bottom-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.douhao-bottom-title i { color: var(--douhao-primary); }
.douhao-bottom-more {
    font-size: 0.85rem;
    color: var(--douhao-primary-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s ease;
}
.douhao-bottom-more:hover { gap: 8px; }
.douhao-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.douhao-friend-links a {
    color: var(--douhao-text-secondary);
    font-size: 0.9rem;
    transition: color .2s ease;
}
.douhao-friend-links a:hover { color: var(--douhao-primary-dark); }
.douhao-bottom-empty { color: #bbb; font-size: 0.9rem; }

.douhao-tags-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.douhao-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    transition: all .25s;
}
.douhao-tag-item:hover { transform: translateY(-2px) scale(1.03); }
.douhao-tag-item .douhao-tag-count {
    font-size: 11px;
    opacity: .75;
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 8px;
}

.douhao-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.douhao-pagination a,
.douhao-pagination span {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--douhao-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--douhao-text-secondary);
}
.douhao-pagination a:hover { border-color: var(--douhao-primary); color: var(--douhao-primary-dark); }
.douhao-pagination .current { background: var(--douhao-primary); color: #fff; border-color: var(--douhao-primary); }

.douhao-footer {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 20px 16px;
    font-size: 0.9rem;
    margin: 0 -16px -16px;
    letter-spacing: 0.02em;
}
.douhao-footer a { color: #fff; }

.douhao-article-list { display: flex; flex-direction: column; gap: 18px; }
.douhao-article-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: var(--douhao-radius-lg);
    padding: 16px;
    box-shadow: var(--douhao-shadow);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all .2s ease;
}
.douhao-article-item:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,0.1); }
.douhao-article-item .douhao-thumb {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--douhao-radius-sm);
    flex-shrink: 0;
    background: #f1f5f9;
}
.douhao-article-item .douhao-article-body { flex: 1; min-width: 0; }
.douhao-article-item .douhao-article-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.5;
}
.douhao-article-item .douhao-article-title:hover { color: var(--douhao-primary-dark); }
.douhao-article-item .douhao-article-desc {
    font-size: 0.88rem;
    color: var(--douhao-text-secondary);
    line-height: 1.65;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.douhao-article-item .douhao-article-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: #94a3b8;
    flex-wrap: wrap;
}
.douhao-article-item .douhao-article-meta i { margin-right: 4px; }

.douhao-detail {
    background: #fff;
    border-radius: var(--douhao-radius-xl);
    padding: 32px 30px;
    box-shadow: var(--douhao-shadow);
}
.douhao-detail h1 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-bottom: 14px; line-height: 1.4; }
.douhao-detail .douhao-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--douhao-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.douhao-detail .douhao-content { font-size: 16px; line-height: 1.9; color: #333; }
.douhao-detail .douhao-content img { border-radius: 10px; margin: 12px auto; }
.douhao-detail .douhao-content p { margin-bottom: 14px; text-indent: 2em; }
.douhao-detail .douhao-content p:has(img) { text-indent: 0; }
.douhao-detail .douhao-content h2,
.douhao-detail .douhao-content h3 { margin: 20px 0 12px; text-indent: 0; }

.douhao-detail-nav {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}
.douhao-detail-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: var(--douhao-radius-md);
    border: 1px solid var(--douhao-border);
    transition: all .2s ease;
}
.douhao-detail-nav-item:hover { background: #fff7ed; border-color: var(--douhao-primary); }
.douhao-detail-nav-next { text-align: right; }
.douhao-detail-nav-label { font-size: 0.8rem; color: var(--douhao-text-secondary); }
.douhao-detail-nav-title {
    font-size: 0.95rem;
    color: var(--douhao-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-detail-nav-empty { background: transparent; border: none; }

.douhao-page-header { text-align: center; margin-bottom: 26px; }
.douhao-page-header h1 { font-size: 1.7rem; font-weight: 800; color: #0f172a; }
.douhao-page-header p { font-size: 0.9rem; color: var(--douhao-text-secondary); margin-top: 6px; }

.douhao-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
    background: #fff;
    border-radius: var(--douhao-radius-lg);
    box-shadow: var(--douhao-shadow);
    margin-bottom: 22px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.douhao-category-tabs::-webkit-scrollbar { display: none; }
.douhao-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    color: var(--douhao-text-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s ease;
}
.douhao-category-tab:hover { background: var(--douhao-primary-light); color: var(--douhao-primary-dark); }
.douhao-category-tab.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.douhao-tab-count {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.06);
}
.douhao-category-tab.active .douhao-tab-count { background: rgba(255,255,255,0.25); }

.douhao-readmore-preview { position: relative; }
.douhao-readmore-overlay {
    position: relative;
    margin-top: -150px;
    padding-top: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0.98) 80%, #fff 100%);
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.douhao-readmore-overlay .douhao-readmore-overlay-text { padding: 20px 30px 30px; pointer-events: auto; }
.douhao-readmore-overlay-arrow {
    animation: douhaoArrowBounce 1.5s ease-in-out infinite;
    font-size: 32px;
    color: var(--douhao-primary);
    display: block;
    margin-bottom: 8px;
}
.douhao-readmore-overlay-hint { font-size: 14px; color: #94a3b8; letter-spacing: 2px; }
@keyframes douhaoArrowBounce {
    0%, 100% { transform: translateY(0); opacity: .6; }
    50% { transform: translateY(10px); opacity: 1; }
}
.douhao-readmore-wrapper { text-align: center; padding: 20px 0 10px; }
.douhao-readmore-btn {
    background: var(--douhao-primary);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.douhao-readmore-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,158,11,0.4); }

.douhao-readmore-ad-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.douhao-readmore-ad-overlay.show { display: flex; }
.douhao-readmore-ad-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.douhao-readmore-ad-tip {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.douhao-countdown-number {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--douhao-primary);
    min-width: 30px;
    text-align: center;
    background: #fff3e0;
    padding: 0 10px;
    border-radius: 6px;
    line-height: 1.4;
}
.douhao-readmore-ad-body { background: #f9f9f9; border-radius: 8px; padding: 15px; text-align: center; }
.douhao-readmore-ad-body img { max-width: 100%; height: auto; }

.douhao-footer-float {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .3s ease;
    box-sizing: border-box;
}
.douhao-footer-float .douhao-footer-float-close {
    position: absolute;
    right: 10px;
    top: -12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    line-height: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}
.douhao-footer-float .douhao-footer-float-close:hover { background: #c0392b; }
.douhao-footer-float .douhao-footer-float-content {
    padding: 1px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.douhao-footer-float .douhao-footer-float-content img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    display: inline-block;
}
.douhao-footer-float .douhao-footer-float-content a { display: inline-block; max-width: 100%; }

@media (max-width: 768px) {
    body { padding: 0 12px; }
    .douhao-navbar { padding: 14px 0 8px; margin-bottom: 18px; flex-wrap: nowrap; gap: 8px; }
    .douhao-logo { font-size: 1.2rem; }
    .douhao-logo img { height: 32px; }
    .douhao-logo span { font-size: 1rem; }
    .douhao-nav-links { display: none; }
    .douhao-top-search { display: none; }
    .douhao-search-toggle { display: flex; align-items: center; justify-content: center; }
    .douhao-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .douhao-nav-right { gap: 4px; }
    .douhao-mobile-search { display: block; }
    .douhao-card { padding: 22px 18px; border-radius: var(--douhao-radius-lg); }
    .douhao-card-header h2 { font-size: 1.35rem; }
    .douhao-form-row { flex-direction: column; align-items: stretch; }
    .douhao-btn-inline { width: 100%; }
    .douhao-result-main { font-size: 1.9rem; }
    .douhao-list-toolbar { flex-wrap: nowrap; gap: 6px; }
    .douhao-search-box { flex: 1 1 auto; min-width: 0; }
    .douhao-search-box input { padding: 10px 12px 10px 34px; font-size: 0.85rem; }
    .douhao-search-box i { left: 11px; font-size: 0.85rem; }
    .douhao-filter-btns { flex: 0 0 auto; gap: 4px; }
    .douhao-filter-btn { padding: 8px 12px; font-size: 0.8rem; }
    .douhao-knowledge-grid { grid-template-columns: 1fr; }
    .douhao-rate-table { min-width: 0; font-size: 15px; }
    .douhao-rate-table th,
    .douhao-rate-table td { padding: 11px 8px; font-size: 15px; white-space: normal; }
    .douhao-rate-table .douhao-rate-col-time { display: none; }
    .douhao-rate-value { word-break: break-all; }
    .douhao-article-item { flex-direction: column; }
    .douhao-article-item .douhao-thumb { width: 100%; height: 180px; }
    .douhao-detail { padding: 22px 18px; }
    .douhao-detail-nav { flex-direction: column; }
    .douhao-detail-nav-next { text-align: left; }
    .douhao-bottom-tags, .douhao-bottom-links { flex: 1 1 100%; min-width: 0; }
    .douhao-readmore-overlay { margin-top: -120px; padding-top: 60px; min-height: 100px; }
    .douhao-readmore-overlay-arrow { font-size: 26px; }
    .douhao-readmore-overlay-hint { font-size: 13px; }
    .douhao-readmore-btn { padding: 10px 30px; font-size: 14px; }
    .douhao-footer { margin: 0 -12px -12px; }
    .douhao-footer-float { padding: 6px 10px; }
    .douhao-footer-float .douhao-footer-float-content { padding: 0 25px; }
    .douhao-footer-float .douhao-footer-float-close {
        width: 22px;
        height: 22px;
        font-size: 11px;
        line-height: 22px;
        top: -10px;
        right: 5px;
    }
    .douhao-footer-float .douhao-footer-float-content img { max-height: 50px; }
}