

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0;
}

.navbar {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    min-height: 68px;
    gap: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;

    flex: 1 1 auto;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    padding: 12px 0;

    white-space: nowrap;
    flex-shrink: 0;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #3498db;
    -webkit-text-fill-color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 11px 16px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.05rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.08);
    color: #3498db;
}

.nav-link:hover i {
    transform: scale(1.15);
}

.nav-link.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
    color: #3498db;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    max-width: 900px;
    padding: 0 20px;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
}

.search-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;

    margin: 34px 20px 0;
}

.search-box {
    position: relative;
    display: flex;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    font-size: 1.2rem;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #2c3e50;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(52, 152, 219, 0.15);
    background: white;
}

.search-button {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0 40px;
    margin-left: 15px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button i {
    margin-right: 10px;
}

.search-button:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.search-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.notice {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ff0000;
    margin-top: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 9px;
    padding: 13px 26px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.36);
}

.guide-bar {
    margin-top: 22px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e9f0ff 100%);
    border: 1px solid #d8e6fb;
    border-left: 4px solid #3498db;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.guide-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.guide-text > i {
    font-size: 1.7rem;
    color: #3498db;
    background: white;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.18);
}

.guide-text strong {
    display: block;
    font-size: 1.12rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.guide-text span {
    font-size: 0.98rem;
    color: #5d6d7e;
    line-height: 1.5;
}

.guide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.guide-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 5px 16px rgba(52, 152, 219, 0.32);
    transition: all 0.25s ease;
}

.guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(52, 152, 219, 0.42);
}

.guide-btn.ghost {
    background: white;
    color: #3498db;
    border: 1px solid #3498db;
    box-shadow: none;
}

.guide-btn.ghost:hover {
    background: #3498db;
    color: white;
}

.buy-bar {
    margin-top: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fff7ed 0%, #fdece4 100%);
    border: 1px solid #f6d4bd;
    border-left: 4px solid #e67e22;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.buy-text {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.buy-text > i {
    font-size: 1.5rem;
    color: #e67e22;
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.18);
}

.buy-text strong {
    display: block;
    font-size: 1.06rem;
    color: #2c3e50;
    margin-bottom: 3px;
}

.buy-text span {
    font-size: 0.93rem;
    color: #5d6d7e;
    line-height: 1.5;
}

.buy-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.buy-actions .guide-btn {
    background: linear-gradient(90deg, #e67e22, #d35400);
    box-shadow: 0 5px 16px rgba(230, 126, 34, 0.32);
}

.buy-actions .guide-btn.ghost {
    background: white;
    color: #d35400;
    border: 1px solid #e67e22;
    box-shadow: none;
}

.buy-actions .guide-btn.ghost:hover {
    background: #e67e22;
    color: white;
}

body.modal-open {
    overflow: hidden;
}

.guide-modal-body {
    padding: 38px 42px 34px;
}

.guide-modal-body > h2 {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    color: #2c3e50;
    margin: 0 0 12px;
    padding-right: 40px;
}

.guide-modal-body > h2 i {
    color: #3498db;
    margin-right: 12px;
}

.guide-modal-lead {
    font-size: 1.05rem;
    color: #5d6d7e;
    line-height: 1.7;
    margin-bottom: 26px;
    padding: 14px 18px;
    background: #f4f8ff;
    border-radius: 10px;
    border-left: 3px solid #3498db;
}

.guide-modal-body > h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 28px 0 16px;
}

.guide-modal-body > h3 i {
    color: #8e44ad;
    margin-right: 10px;
}

.guide-prio {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-prio-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: #fafbfc;
    border: 1px solid #ecf0f5;
    border-radius: 12px;
}

.guide-prio-item.first {
    background: linear-gradient(135deg, #f0f9f4, #e8f7ef);
    border-color: #c9ead9;
}

.guide-tag {
    flex-shrink: 0;
    height: fit-content;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e8ecf1;
    color: #7f8c8d;
    white-space: nowrap;
}

.guide-prio-item.first .guide-tag {
    background: #2ecc71;
    color: white;
}

.guide-prio-item > div > strong {
    font-size: 1.08rem;
    color: #2c3e50;
    display: block;
    margin-bottom: 6px;
}

.guide-prio-item p strong,
.guide-steps li strong,
.help-card p strong {
    display: inline;
    color: #2c3e50;
}

.guide-prio-item p {
    font-size: 0.97rem;
    color: #5d6d7e;
    line-height: 1.65;
    margin-bottom: 8px;
}

.guide-code {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    background: white;
    border: 1px solid #3498db;
    color: #2c3e50;
    border-radius: 7px;
    padding: 5px 12px;
    margin: 4px 8px 4px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.guide-code-tip {
    font-size: 0.9rem;
    color: #85929e;
}

.guide-mini {
    font-size: 0.9rem !important;
    color: #85929e !important;
    margin: 6px 0 0 !important;
}

.guide-ai {
    margin-top: 18px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f6f0fd, #f0ebfa);
    border: 1px solid #e0d4f5;
    border-radius: 12px;
}

.guide-ai h4 {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #6c3483;
    margin: 0 0 12px;
}

.guide-ai h4 i {
    margin-right: 9px;
}

.guide-ai-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.guide-ai-links a {
    padding: 10px 20px;
    border-radius: 9px;
    background: white;
    color: #6c3483;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid #d5c4ee;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.25s ease;
}

.guide-ai-links a:hover {
    background: #8e44ad;
    color: white;
    border-color: #8e44ad;
    transform: translateY(-2px);
}

.guide-prompt p {
    font-size: 0.93rem;
    color: #6c3483;
    font-weight: 600;
    margin-bottom: 8px;
}

.guide-prompt blockquote {
    margin: 0;
    padding: 14px 18px;
    background: white;
    border-left: 3px solid #8e44ad;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    color: #2c3e50;
    cursor: pointer;
    line-height: 1.7;
    transition: background 0.2s ease;
}

.guide-prompt blockquote:hover {
    background: #faf7ff;
}

.guide-steps {
    margin: 0 0 6px;
    padding-left: 22px;
}

.guide-steps li {
    font-size: 1rem;
    color: #5d6d7e;
    line-height: 1.85;
    margin-bottom: 6px;
}

.guide-steps li strong {
    color: #2c3e50;
}

.guide-note {
    margin-top: 12px;
    padding: 13px 17px;
    background: #fff8e6;
    border-left: 3px solid #f39c12;
    border-radius: 0 9px 9px 0;
    font-size: 0.95rem;
    color: #7d6608;
    line-height: 1.65;
}

.guide-foot {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eef2f7;
}

.guide-foot .btn-primary,
.guide-foot .btn-secondary {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 14px 22px;
    font-size: 1rem;
}

.help-wrap {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 34px 24px 0;
}

.help-hero {
    text-align: center;
    padding: 46px 20px 34px;
}

.help-hero h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.help-hero h1 i {
    color: #3498db;
}

.help-hero p {
    font-size: 1.12rem;
    color: #5d6d7e;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

.help-card {
    background: white;
    border-radius: 16px;
    padding: 34px 36px;
    margin-bottom: 26px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.help-card > h2 {
    display: flex;
    align-items: center;
    font-size: 1.45rem;
    color: #2c3e50;
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f2f6;
}

.help-card > h2 i {
    color: #3498db;
    margin-right: 12px;
}

.help-lead {
    font-size: 1.03rem;
    color: #5d6d7e;
    line-height: 1.75;
    margin-bottom: 22px;
}

.prio-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.prio-item {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    background: #fafbfc;
    border: 1px solid #ecf0f5;
    border-radius: 14px;
}

.prio-item.prio-1 {
    background: linear-gradient(135deg, #f0f9f4, #e8f7ef);
    border-color: #c9ead9;
}

.prio-badge {
    flex-shrink: 0;
    height: fit-content;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    background: #e8ecf1;
    color: #7f8c8d;
    white-space: nowrap;
}

.prio-item.prio-1 .prio-badge {
    background: #2ecc71;
    color: white;
}

.prio-body {
    flex: 1;
    min-width: 0;
}

.prio-body h3 {
    font-size: 1.16rem;
    color: #2c3e50;
    margin: 0 0 8px;
}

.prio-body p {
    font-size: 1rem;
    color: #5d6d7e;
    line-height: 1.72;
    margin-bottom: 10px;
}

.prio-example {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.prio-example code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: white;
    border: 1px solid #3498db;
    color: #2c3e50;
    border-radius: 8px;
    padding: 7px 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.prio-example span {
    font-size: 0.92rem;
    color: #85929e;
}

.prio-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.93rem !important;
    color: #85929e !important;
    background: rgba(52, 152, 219, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px !important;
}

.isbn-help {
    margin-top: 26px;
    padding: 26px;
    background: linear-gradient(135deg, #f6f0fd, #f0ebfa);
    border: 1px solid #e0d4f5;
    border-radius: 14px;
}

.isbn-help h3 {
    display: flex;
    align-items: center;
    font-size: 1.18rem;
    color: #6c3483;
    margin: 0 0 8px;
}

.isbn-help h3 i {
    margin-right: 10px;
}

.isbn-help > p {
    font-size: 1rem;
    color: #5d4b6b;
    margin-bottom: 16px;
}

.ai-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ai-card {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: white;
    border: 1px solid #d5c4ee;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ai-card:hover {
    border-color: #8e44ad;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.22);
}

.ai-card > i:first-child {
    font-size: 1.6rem;
    color: #8e44ad;
}

.ai-card > i:last-child {
    margin-left: auto;
    color: #b8a5d4;
    font-size: 0.95rem;
}

.ai-card strong {
    display: block;
    font-size: 1.08rem;
    color: #2c3e50;
    margin-bottom: 3px;
}

.ai-card span {
    font-size: 0.88rem;
    color: #85929e;
}

.prompt-box {
    background: white;
    border-radius: 11px;
    padding: 18px 22px;
}

.prompt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93rem;
    color: #6c3483;
    font-weight: 600;
    margin-bottom: 10px;
}

.prompt-box blockquote {
    margin: 0;
    padding: 14px 18px;
    background: #faf7ff;
    border-left: 3px solid #8e44ad;
    border-radius: 0 10px 10px 0;
    font-size: 1.02rem;
    color: #2c3e50;
    cursor: pointer;
    line-height: 1.7;
    transition: background 0.2s ease;
}

.prompt-box blockquote:hover {
    background: #f3ecfc;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.step-item {
    display: flex;
    gap: 15px;
    padding: 20px 22px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #ecf0f5;
}

.step-no {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.step-item h4 {
    font-size: 1.05rem;
    color: #2c3e50;
    margin: 4px 0 6px;
}

.step-item p {
    font-size: 0.96rem;
    color: #5d6d7e;
    line-height: 1.65;
}

.plain-steps {
    margin: 0 0 8px;
    padding-left: 24px;
}

.plain-steps li {
    font-size: 1.02rem;
    color: #5d6d7e;
    line-height: 1.9;
}

.notice-box {
    margin-top: 18px;
    padding: 20px 24px;
    background: #fff8e6;
    border-left: 4px solid #f39c12;
    border-radius: 0 12px 12px 0;
}

.notice-box h4 {
    font-size: 1.05rem;
    color: #7d6608;
    margin: 0 0 10px;
}

.notice-box h4 i {
    margin-right: 8px;
}

.notice-box ul {
    margin: 0;
    padding-left: 20px;
}

.notice-box li {
    font-size: 0.98rem;
    color: #7d6608;
    line-height: 1.8;
}

.faq-list details {
    background: #fafbfc;
    border: 1px solid #ecf0f5;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-list details[open] {
    border-color: #3498db;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.12);
}

.faq-list summary {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 11px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary i {
    color: #3498db;
    flex-shrink: 0;
}

.faq-list details[open] summary {
    border-bottom: 1px solid #eef2f7;
    background: #f4f8ff;
}

.faq-list details > p {
    padding: 18px 22px 20px;
    margin: 0;
    font-size: 0.99rem;
    color: #5d6d7e;
    line-height: 1.8;
}

.help-card-foot {
    text-align: center;
}

.help-card-foot > p {
    font-size: 1rem;
    color: #5d6d7e;
    line-height: 1.8;
    margin-bottom: 24px;
}

.help-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 15px 40px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .guide-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .guide-text {
        flex-direction: column;
        text-align: center;
    }

    .guide-actions {
        justify-content: center;
    }

    .guide-modal-body {
        padding: 28px 22px 26px;
    }

    .guide-prio-item,
    .prio-item {
        flex-direction: column;
        gap: 10px;
    }

    .help-hero h1 {
        font-size: 1.9rem;
    }

    .help-card {
        padding: 24px 20px;
    }

    .help-card > h2 {
        font-size: 1.22rem;
    }

    .guide-foot {
        flex-direction: column;
    }
}

.hot-searches {
    margin-top: 20px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f2f6;
}

.hot-searches h2 {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.hot-searches h2 i {
    margin-right: 15px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.keyword {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.keyword:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.keyword:nth-child(2n) {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
}

.keyword:nth-child(3n) {
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
}

.keyword:nth-child(4n) {
    background: linear-gradient(135deg, #9b59b6, #34495e);
}

.search-results {
    margin-top: 30px;
    display: none;
}

.search-results.book-results-section {
    display: block;
}

.search-results h2 {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.search-results h2 i {
    margin-right: 15px;
    color: #3498db;
    background: rgba(52, 152, 219, 0.12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.results-list {
    list-style: none;
}

.result-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.result-image {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f1f2f6;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-item:hover .result-image img {
    transform: scale(1.05);
}

.result-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.2));
    border-radius: 12px;
    pointer-events: none;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.result-title i {
    margin-right: 12px;
    color: #3498db;
    font-size: 1.2rem;
}

.result-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.chapters-container {
    margin-top: 15px;
}

.chapter-item {
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    transform: translateX(5px);
    background: #f1f2f6;
}

.chapter-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.chapter-header:hover {
    background: rgba(52, 152, 219, 0.05);
}

.chapter-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.chapter-title i {
    margin-right: 10px;
    color: #e74c3c;
    font-size: 0.9rem;
}

.vip {
    background-color: #ebd078;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
    list-style: none;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
    display: block;
}

.loading-tip {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 1.05rem;
    list-style: none;
}

.footer {
    margin-top: 50px;
    text-align: center;
    color: #7f8c8d;
    font-size: 1rem;
    max-width: 900px;
    padding: 0 24px;
    line-height: 1.7;
}

.footer .footer-brand {
    font-size: 1.02rem;
    color: #5d6d7e;
    margin-bottom: 6px;
}
.footer .footer-brand a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer .footer-brand a:hover {
    color: #3498db;
}

.footer .footer-contact {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #95a5a6;
}
.footer .footer-contact a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}
.footer .footer-contact a:hover {
    text-decoration: underline;
}

.result-count {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    padding-left: 5px;
}

.result-count strong {
    color: #e74c3c;
    font-weight: 600;
}

.book-results-list {
    list-style: none;
}

.book-result-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
}

.book-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.book-result-image {
    width: 200px;
    height: 280px;

    align-self: flex-start;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f1f2f6;
}

.book-result-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    background: #f1f2f6;
    transition: transform 0.5s ease;
}

.book-result-item:hover .book-result-image img {
    transform: scale(1.05);
}

.book-result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.book-result-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1.4;

    flex: 0 0 auto;
    min-height: calc(1.4em * 1);
    max-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.book-result-title:hover {
    color: #3498db;
}

.book-result-title i {
    margin-right: 12px;
    color: #3498db;
    font-size: 1.2rem;
}

.book-result-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;

    flex: 0 0 auto;
    min-height: calc(1.6em * 1);
    max-height: calc(1.6em * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.book-result-meta {
    display: flex;
    margin-top: auto;
    color: #7f8c8d;
    font-size: 0.9rem;
    position: relative;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.book-result-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.book-result-meta i {
    margin-right: 6px;
    color: #3498db;
}

.load-more-container {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 10px;
}

.load-more-button {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.load-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(52, 152, 219, 0.4);
}

.load-more-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.book-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: bookFadeIn 0.3s forwards;
}

.book-modal-overlay.active {
    display: flex;
}

@keyframes bookFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes bookSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.book-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: bookSlideUp 0.4s forwards;
}

.book-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.book-close-button:hover {
    color: #e74c3c;
}

.book-detail-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    padding: 35px 40px;
}

.book-detail-container {
    position: relative;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: 0 10px;
}

.book-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #3498db;
}

.book-detail-loading i {
    font-size: 2rem;
    margin-bottom: 12px;
}

.book-detail-header {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.book-detail-cover {
    width: 200px;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-right: 30px;
    flex-shrink: 0;
    background: #f1f2f6;
}

.book-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-detail-info {
    flex: 1;
    min-width: 0;
}

.book-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.4;
}

.book-detail-authors {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.book-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    margin-bottom: 20px;
}

.book-detail-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.book-detail-meta-item i {
    margin-right: 6px;
    color: #3498db;
}

.book-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.book-detail-button {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: none;
}

.book-detail-button.primary {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.book-detail-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(52, 152, 219, 0.45);
}

.book-detail-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.book-detail-description {
    margin-top: 30px;
}

.book-detail-description h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-detail-description h3 i {
    color: #e74c3c;
}

.book-detail-description p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.book-detail-error {
    text-align: center;
    padding: 40px 0;
    color: #e74c3c;
}

.book-detail-error i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.sheet {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: min(440px, 92vw);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: bookSlideUp 0.3s ease;
    position: relative;
}

.sheet h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sheet h3 i {
    color: #3498db;
}

.sheet .book-name {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 9px;
    border-left: 3px solid #3498db;
    word-break: break-all;
}

.sheet input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    border: 2px solid #eef2f7;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.sheet input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

.sheet button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sheet .btn-primary {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    margin-bottom: 10px;
}

.sheet .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.sheet .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sheet .btn-ghost {
    background: #f1f2f6;
    color: #555;
}

.sheet .btn-ghost:hover {
    background: #e9ecef;
}

#msg {
    margin-top: 12px;
    font-size: 0.98rem;
    color: #e74c3c;
    text-align: center;
    min-height: 22px;
}

#msg.ok-text {
    color: #27ae60;
}

@media (max-width: 900px) {
    .book-result-item {
        flex-direction: column;
    }

    .book-result-image {

        width: 180px;
        height: 250px;
        margin-right: 0;
        margin-bottom: 25px;
        align-self: center;
    }

    .book-detail-header {
        flex-direction: column;
    }

    .book-detail-cover {
        width: 180px;
        height: 250px;
        margin: 0 auto 20px;
    }

    .book-detail-title {
        font-size: 1.5rem;
    }

    .book-detail-actions {
        flex-direction: column;
    }

    .book-detail-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .book-result-item {
        padding: 20px;
    }

    .book-result-title {
        font-size: 1.4rem;
    }

    .book-result-description {
        font-size: 1rem;
    }

    .book-result-image {
        width: 150px;
        height: 210px;
    }
}

@media (max-width: 480px) {
    .book-result-image {
        width: 130px;
        height: 182px;
    }

    .book-result-title {
        font-size: 1.3rem;
    }

    .book-detail-modal {
        padding: 25px 20px;
    }

    .book-detail-title {
        font-size: 1.3rem;
    }

    .load-more-button {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

.admin-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;

    margin: 34px 20px 0;
}

.admin-wrap h2 {
    font-size: 1.7rem;
    color: #2c3e50;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-wrap h2 i {
    color: #3498db;
    background: rgba(52, 152, 219, 0.12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-wrap h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-wrap h3 i {
    color: #e74c3c;
}

.login-form {
    max-width: 400px;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    border: 2px solid #eef2f7;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.login-form input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

.login-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-bar .links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-right: 18px;
    transition: color 0.3s ease;
}

.admin-bar .links a:hover {
    color: #e74c3c;
}

.gen-form {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.gen-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    gap: 7px;
}

.gen-form input {
    padding: 11px 14px;
    font-size: 1rem;
    border: 2px solid #eef2f7;
    border-radius: 9px;
    background: white;
    width: 130px;
    color: #2c3e50;
}

.gen-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.gen-form button {
    padding: 12px 26px;
    background: linear-gradient(90deg, #2ecc71, #1abc9c);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.gen-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(46, 204, 113, 0.45);
}

.kami-output {
    margin-top: 18px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
}

.kami-output p {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.15rem;
    color: #2c3e50;
    padding: 6px 0;
    letter-spacing: 1px;
    font-weight: 600;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
}

th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f2f6;
    font-size: 0.98rem;
}

th {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

td {
    color: #2c3e50;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.ok { background: rgba(46, 204, 113, 0.15); color: #27ae60; }
.badge.used { background: rgba(127, 140, 141, 0.15); color: #7f8c8d; }
.badge.disabled { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.err-text {
    color: #e74c3c;
    font-size: 1rem;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 9px;
    border-left: 3px solid #e74c3c;
}

.ok-text {
    color: #27ae60;
    font-size: 1rem;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 9px;
    border-left: 3px solid #2ecc71;
}

.admin-bar .admin-user {
    color: #2c3e50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 8px 14px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50px;
    font-size: 0.95rem;
}

.admin-bar .logout-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.admin-wrap h3 .h3-sub {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 8px;
}

.kami-output .kami-output-tip {
    font-family: inherit;
    font-size: 0.95rem;
    color: #e67e22;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.kami-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.kami-chip {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2c3e50;
    background: white;
    border: 1px dashed #3498db;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    user-select: all;
}

.kami-chip:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 9px;
    padding: 9px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tabs .tab {
    padding: 8px 16px;
    border-radius: 50px;
    background: white;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid #e8ecf1;
    transition: all 0.25s ease;
}

.filter-tabs .tab:hover {
    border-color: #3498db;
    color: #3498db;
}

.filter-tabs .tab.on {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-export {
    padding: 10px 20px;
    border-radius: 9px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    transition: all 0.25s ease;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.42);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

.kami-table {
    min-width: 1080px;
}

.kami-table tbody td:nth-child(4) {
    white-space: nowrap;
}

.td-empty {
    text-align: center;
    color: #7f8c8d;
    padding: 26px;
}

.kami-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kami-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    background: #f1f5fa;
    border: 1px solid #dfe6ef;
    border-radius: 7px;
    padding: 6px 11px;
    cursor: pointer;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: all;
}

.kami-code:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.32);
}

.kami-code.is-old {
    color: #95a5a6;
    background: #fafbfc;
    border-style: dashed;
    cursor: default;
}

.kami-code.is-old:hover {
    background: #fafbfc;
    color: #95a5a6;
    border-color: #dfe6ef;
    box-shadow: none;
}

.kami-old-tip {
    font-size: 0.75rem;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.12);
    padding: 3px 8px;
    border-radius: 50px;
    white-space: nowrap;
}

.td-ops .op-form {
    display: flex;
    gap: 6px;
    margin: 0;
}

.op-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e1e7ee;
    background: white;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.op-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.08);
}

.op-btn.danger:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.copy-tip {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 20px);
    background: #2c3e50;
    color: white;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 0.98rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-tip.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pwd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 16px;
}

.setting-card {
    background: white;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid #3498db;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-card:last-child {
    border-top-color: #8e44ad;
}

.setting-card h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 4px;
    font-weight: 700;
}

.setting-card h4 i {
    color: #3498db;
    margin-right: 8px;
}

.setting-card:last-child h4 i {
    color: #8e44ad;
}

.setting-card input {
    padding: 12px 15px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafbfc;
    transition: all 0.25s ease;
}

.setting-card input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.setting-card button {
    padding: 12px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

.setting-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.35);
}

.setting-card:last-child button {
    background: linear-gradient(90deg, #8e44ad, #6c3483);
}

.setting-card:last-child button:hover {
    box-shadow: 0 6px 18px rgba(142, 68, 173, 0.35);
}

@media (max-width: 768px) {
    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-export {
        justify-content: center;
    }

    .filter-tabs {
        justify-content: center;
    }

    .pwd-grid {
        grid-template-columns: 1fr;
    }

    .kami-chips {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .result-item {
        flex-direction: column;
    }

    .result-image {
        width: 100%;
        height: 250px;
        margin-right: 0;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    body {

        padding: 0;
    }

    .mobile-menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .logo {
        font-size: 1.35rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0 20px 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        padding: 20px 30px;
        border-bottom: 1px solid #f1f2f6;
        width: 100%;
    }

    .nav-link i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .nav-link:hover {
        background: #f8f9fa;
        transform: none;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: #f0f5ff;
        border-left: 4px solid #3498db;

        border-radius: 0;
    }

    .mobile-menu-close {
        display: block;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .search-container,
    .admin-wrap {
        padding: 25px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-button {
        margin-left: 0;
        margin-top: 15px;
        padding: 18px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .keyword {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .result-item {
        padding: 20px;
    }

    .result-title {
        font-size: 1.4rem;
    }

    .result-description {
        font-size: 1rem;
    }

    .chapter-title {
        font-size: 1.05rem;
    }

    .result-image {
        height: 200px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .search-container,
    .admin-wrap {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .result-image {
        height: 180px;
    }

    .result-title {
        font-size: 1.3rem;
    }

    .hot-searches h2,
    .search-results h2 {
        font-size: 1.35rem;
    }
}

.guide-modal {

    flex: 0 1 880px;
    width: 880px;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0;
}

.mnemonic {
    margin-top: 22px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eaf4ff 0%, #f3eaff 100%);
    border: 2px solid #d6e6fb;
    border-radius: 14px;
}
.mnemonic-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}
.mnemonic-label i {
    color: #e74c3c;
}
.mnemonic-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    flex-wrap: wrap;
}
.mnemonic-step {
    flex: 0 1 auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.98rem;
    color: #4a5b6c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.mnemonic-step b {
    color: #3498db;
    margin-right: 6px;
    font-weight: 700;
}
.mnemonic-body > i {
    color: #b0bec5;
    flex: 0 0 auto;
    font-size: 0.85rem;
}

.cheat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}
.cheat-col {
    background: #fbfcfe;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    padding: 16px 14px;
}
.cheat-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef3f8;
}
.cheat-col-title i {
    color: #3498db;
}
.cheat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.cheat-table th,
.cheat-table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    line-height: 1.5;
}
.cheat-table th {
    color: #7f8c8d;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.cheat-table td {
    color: #4a5b6c;
}
.cheat-table tr:last-child td {
    border-bottom: none;
}
.cheat-table td.ok {
    color: #1e8449;
}
.cheat-table td.warn {
    color: #c0392b;
    font-weight: 600;
}

.site-identity {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f7f9fc;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    font-size: 0.96rem;
    line-height: 1.8;
    color: #4a5b6c;
}
.site-identity a {
    color: #3498db;
    font-weight: 700;
    text-decoration: none;
}
.site-identity a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cheat-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .mnemonic {
        padding: 15px 16px;
    }
    .mnemonic-body {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .mnemonic-body > i {
        display: none;
    }
    .mnemonic-step {
        text-align: center;
        padding: 10px 12px;
    }
    .cheat-table {
        font-size: 0.85rem;
    }
}

.guide-modal .mnemonic {
    margin: 14px 0 20px;
    padding: 14px 16px;
}
.guide-modal .mnemonic-body {
    gap: 8px;
}
.guide-modal .mnemonic-step {
    font-size: 0.92rem;
    padding: 8px 13px;
}
@media (max-width: 700px) {
    .guide-modal .mnemonic-body {
        flex-direction: column;
        align-items: stretch;
    }
    .guide-modal .mnemonic-body > i {
        display: none;
    }
    .guide-modal .mnemonic-step {
        text-align: center;
    }
}

.cheat-table th {
    background: #f1f5fa;
    color: #5d6d7e;
    font-weight: 700;
    border-bottom: 2px solid #dfe8f2;
}
.cheat-table td { background: transparent; }
.cheat-table th,
.cheat-table td { padding: 9px 8px; }

.cheat-table th:first-child,
.cheat-table td:first-child {
    white-space: nowrap;
    width: 30%;
    color: #5d6d7e;
    font-weight: 600;
}

.install-tip{
  display:flex;gap:12px;align-items:flex-start;
  background:#fff8e1;border-left:4px solid #f39c12;border-radius:8px;
  padding:14px 16px;margin:0 0 18px;font-size:.92rem;line-height:1.75;color:#6b4d00;
}
.install-tip>i{color:#e67e22;font-size:1.15rem;margin-top:3px;flex:0 0 auto;}
.install-tip strong{color:#b34700;}

.view-tabs{
  display:flex;gap:6px;flex-wrap:wrap;margin:0 0 20px;
  background:#fff;border-radius:12px;padding:8px;box-shadow:0 2px 12px rgba(45,55,72,.06);
}
.view-tab{
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 18px;border-radius:8px;font-size:.92rem;font-weight:600;
  color:#5d6d7e;text-decoration:none;transition:all .2s ease;
}
.view-tab:hover{background:#f1f5fa;color:#2c3e50;}
.view-tab.on{background:#4a90e2;color:#fff;box-shadow:0 3px 10px rgba(74,144,226,.3);}

.search-bar{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 14px;
}
.search-bar input{
  flex:1 1 320px;min-width:0;
  padding:10px 14px;border:1px solid #dfe6ef;border-radius:8px;font-size:.93rem;
  background:#fff;color:#2c3e50;transition:border-color .2s,box-shadow .2s;
}
.search-bar input:focus{
  outline:none;border-color:#4a90e2;box-shadow:0 0 0 3px rgba(74,144,226,.14);
}
.search-bar button{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 20px;border:none;border-radius:8px;cursor:pointer;
  background:#4a90e2;color:#fff;font-size:.93rem;font-weight:600;transition:background .2s;
}
.search-bar button:hover{background:#357abd;}
.search-bar .btn-secondary{
  background:#eef2f7;color:#5d6d7e;text-decoration:none;border:1px solid #dfe6ef;
}
.search-bar .btn-secondary:hover{background:#e2e8f0;}

.bulk-bar{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 12px;
}
.bulk-count{
  font-size:.9rem;font-weight:600;color:#5d6d7e;
  background:#eef2f7;border-radius:7px;padding:7px 13px;
}
.bulk-bar select{
  padding:9px 12px;border:1px solid #dfe6ef;border-radius:8px;
  background:#fff;color:#2c3e50;font-size:.9rem;cursor:pointer;
}
.bulk-bar select:focus{outline:none;border-color:#4a90e2;}
.bulk-bar button[type=submit]{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 20px;border:none;border-radius:8px;cursor:pointer;
  background:#4a90e2;color:#fff;font-size:.9rem;font-weight:600;transition:background .2s;
}
.bulk-bar button[type=submit]:hover:not(:disabled){background:#357abd;}
.bulk-bar button[type=submit]:disabled{opacity:.45;cursor:not-allowed;}
.bulk-bar .btn-secondary{
  background:#eef2f7;color:#5d6d7e;text-decoration:none;border:1px solid #dfe6ef;
  padding:9px 16px;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;
}
.bulk-bar .btn-secondary:hover{background:#e2e8f0;}

.kami-table .col-check{width:38px;text-align:center;}
.kami-table .col-check input{
  width:15px;height:15px;cursor:pointer;accent-color:#4a90e2;vertical-align:middle;
}

.pager{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;
  margin:22px 0 8px;
}
.pg-btn{
  display:inline-flex;align-items:center;gap:4px;
  min-width:36px;height:36px;padding:0 12px;
  justify-content:center;border-radius:8px;
  background:#fff;border:1px solid #dfe6ef;color:#5d6d7e;
  text-decoration:none;font-size:.88rem;font-weight:600;transition:all .2s ease;
}
.pg-btn:hover{background:#f1f5fa;color:#2c3e50;border-color:#c9d6e5;}
.pg-btn.on{background:#4a90e2;border-color:#4a90e2;color:#fff;}
.pg-btn.disabled{opacity:.4;pointer-events:none;}
.pg-info{font-size:.87rem;color:#7f8c8d;padding:0 10px;}
.pg-info strong{color:#2c3e50;}
.pg-dots{color:#a0aec0;padding:0 4px;}

.badge.partial  { background: rgba(241, 196, 15, 0.18); color: #b7950b; }
.badge.expired  { background: rgba(155, 89, 182, 0.16); color: #8e44ad; }
.badge.expiring { background: rgba(230, 126, 34, 0.16); color: #d35400; }

.exp-expired{color:#8e44ad;font-weight:600;}
.exp-soon{color:#d35400;font-weight:600;}

#editForm .edit-label{
  display:block;margin-bottom:14px;font-size:.9rem;font-weight:600;color:#5d6d7e;
}
#editForm .edit-label input{
  display:block;width:100%;margin-top:6px;
  padding:10px 13px;border:1px solid #dfe6ef;border-radius:8px;
  font-size:.93rem;color:#2c3e50;background:#fff;
}
#editForm .edit-label input:focus{
  outline:none;border-color:#4a90e2;box-shadow:0 0 0 3px rgba(74,144,226,.14);
}
#editForm .btn-primary{
  width:100%;padding:11px;border:none;border-radius:8px;cursor:pointer;
  background:#4a90e2;color:#fff;font-size:.94rem;font-weight:600;transition:background .2s;
}
#editForm .btn-primary:hover{background:#357abd;}

@media (max-width:640px){
  .search-bar input{flex:1 1 100%;}
  .search-bar button,.search-bar .btn-secondary{flex:1 1 auto;justify-content:center;}
  .pager{justify-content:flex-start;}
  .view-tab{flex:1 1 auto;justify-content:center;}
  .pay-status-bar{gap:8px;font-size:.85rem;}
  .pay-status-bar span{white-space:nowrap;}
}

.pay-status-bar{
  display:flex;gap:16px;flex-wrap:wrap;align-items:center;
  background:#fff;border-radius:12px;padding:12px 18px;margin:0 0 16px;
  box-shadow:0 2px 12px rgba(45,55,72,.06);
  font-size:.9rem;color:#7f8c8d;
}
.pay-status-bar b{color:#2c3e50;font-weight:700;}
.pay-status-bar .badge{margin-right:2px;}

.kami-table td .op-form{
  display:inline-flex;gap:6px;margin:0;
}
.kami-table td .op-btn{
  width:30px;height:30px;padding:0;display:inline-flex;
  align-items:center;justify-content:center;border-radius:7px;
}

.kami-table td .prod-price{font-weight:700;color:#e74c3c;}
.kami-table td .prod-note{
  font-size:.82rem;color:#95a5a6;max-width:220px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

#prodForm .edit-label{
  display:block;margin-bottom:14px;font-size:.9rem;font-weight:600;color:#5d6d7e;
}
#prodForm .edit-label input{
  display:block;width:100%;margin-top:6px;
  padding:10px 13px;border:1px solid #dfe6ef;border-radius:8px;
  font-size:.93rem;color:#2c3e50;background:#fff;
}
#prodForm .edit-label input:focus{
  outline:none;border-color:#4a90e2;box-shadow:0 0 0 3px rgba(74,144,226,.14);
}
#prodForm .btn-primary{
  width:100%;padding:11px;border:none;border-radius:8px;cursor:pointer;
  background:#4a90e2;color:#fff;font-size:.94rem;font-weight:600;transition:background .2s;
}
#prodForm .btn-primary:hover{background:#357abd;}

.gen-form .gen-row{
  display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;
}
.gen-form .gen-row label{flex:1 1 160px;min-width:0;}

.site-notice{
  display:flex;align-items:flex-start;gap:10px;
  margin:14px 0 0;padding:12px 16px;
  background:#eaf4ff;border:1px solid #b9d3f5;border-left:4px solid #4a90e2;
  border-radius:10px;color:#2c3e50;font-size:.95rem;line-height:1.7;
}
.site-notice i{color:#4a90e2;font-size:1.05rem;margin-top:2px;flex:0 0 auto;}
.site-notice span{flex:1;min-width:0;word-break:break-word;}

.buy-text .buy-note{
  display:block;margin-top:5px;font-size:.9rem;color:#b3541e;
}
.buy-text .buy-note b{color:#d35400;margin-left:4px;}
.footer-contact b{color:#2c3e50;margin-left:4px;}

.settings-form{display:block;margin-top:16px;}
.settings-card{
  background:#fff;border-radius:14px;padding:24px 26px;margin-bottom:20px;
  box-shadow:0 6px 20px rgba(0,0,0,.05);border-top:3px solid #4a90e2;
}
.settings-card h4{
  font-size:1.08rem;color:#2c3e50;margin:0 0 6px;font-weight:700;
  display:flex;align-items:center;gap:8px;
}
.settings-card h4 i{color:#4a90e2;}
.settings-tip{
  margin:0 0 18px;font-size:.88rem;color:#7f8c8d;line-height:1.8;
  background:#f7f9fc;border-left:3px solid #b9d3f5;border-radius:0 8px 8px 0;
  padding:10px 14px;
}
.settings-tip code{
  background:#eef2f7;padding:1px 6px;border-radius:4px;font-size:.86rem;color:#2c3e50;
}
.settings-row{
  display:flex;gap:14px;align-items:center;margin-bottom:14px;flex-wrap:wrap;
}
.settings-row > span{
  flex:0 0 150px;font-size:.92rem;font-weight:600;color:#5d6d7e;
}
.settings-row input{
  flex:1 1 320px;min-width:0;padding:11px 14px;font-size:.95rem;
  border:1px solid #dfe6ef;border-radius:9px;background:#fafbfc;color:#2c3e50;
  font-family:inherit;transition:border-color .2s,box-shadow .2s;
}
.settings-row input:focus{
  outline:none;border-color:#4a90e2;background:#fff;
  box-shadow:0 0 0 3px rgba(74,144,226,.12);
}
.settings-check{
  display:inline-flex;align-items:center;gap:8px;margin:4px 18px 4px 0;
  font-size:.92rem;color:#5d6d7e;cursor:pointer;user-select:none;
}
.settings-check input{width:16px;height:16px;accent-color:#4a90e2;cursor:pointer;}
.settings-actions{
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:6px 0 10px;
}
.settings-actions button{
  padding:13px 30px;border:none;border-radius:9px;cursor:pointer;
  background:linear-gradient(90deg,#4a90e2,#357abd);color:#fff;
  font-size:1rem;font-weight:600;transition:transform .15s,box-shadow .15s;
}
.settings-actions button:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(74,144,226,.35);}
.settings-actions .btn-secondary{
  padding:13px 22px;border-radius:9px;text-decoration:none;font-weight:600;
  background:#eef2f7;color:#5d6d7e;border:1px solid #dfe6ef;font-size:.95rem;
}
.settings-actions .btn-secondary:hover{background:#e2e8f0;}

.kami-table td.log-detail{
  max-width:340px;white-space:normal;word-break:break-word;color:#5d6d7e;font-size:.9rem;
}

.search-bar select{
  padding:10px 14px;border:1px solid #dfe6ef;border-radius:8px;font-size:.93rem;
  background:#fff;color:#2c3e50;cursor:pointer;min-width:170px;
  font-family:inherit;transition:border-color .2s,box-shadow .2s;
}
.search-bar select:focus{
  outline:none;border-color:#4a90e2;box-shadow:0 0 0 3px rgba(74,144,226,.14);
}

@media (max-width:768px){
  .settings-card{padding:20px 18px;}
  .settings-row{flex-direction:column;align-items:stretch;gap:6px;}
  .settings-row > span{flex:none;}
  .settings-row input{flex:1 1 auto;width:100%;}
  .settings-actions button,.settings-actions .btn-secondary{flex:1 1 auto;text-align:center;}
  .kami-table td.log-detail{max-width:none;}
}
