:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: rgba(46,204,113,.15);
    --text: #2d3748;
    --text-muted: #718096;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,.08);
    --header-h: 56px;
    --container-w: 1400px;
    --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {color:#ff6600; margin: 0 0 0.6em; line-height: 1.3; }
p { margin: 0 0 1em; }
em, i { font-style: normal; }

/* ================================
   Header
   ================================ */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--gap);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo {
    flex-shrink: 0;
    width: 160px;
    height: 50px;
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}
.site-logo a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
    overflow: hidden;
}
.slogan {font-weight:bold;color:#f43f5e;font-size:20px;}
.slogan h1{font-weight:bold;color:#f43f5e;font-size:25px;margin:0px;padding:0px;} 

/* Main Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}
.nav-main {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.nav-main::-webkit-scrollbar { display: none; }
.nav-main a {
    padding: 6px 14px;
    border-radius: 6px;
    background: #9999ff;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav-main a:hover,
.nav-main a.active {
    background: #3366ff;
    color: #fff;
    text-decoration: none;
}
.nav-main a.goto {
    background: #FF783C;
    color: #fff;
    border-radius: var(--radius);
}
.nav-main a.goto:hover {
    background: #3366ff;
    text-decoration: none;
}

.tips {
  display: inline-block;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 6px;
  background: #7777ff;
  color: #fff !important;
  text-decoration: none !important;
}
.tips:hover {
  background: #3366ff;
  color: #fff !important;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    color: #fff;
    flex-shrink: 0;
}
.search-toggle:hover { color: rgba(255,255,255,.8); }

/* Search Overlay (fullscreen backdrop, compact box) */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}
.search-overlay.active { display: flex; }
.search-overlay-inner {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 12px 16px;
    width: 90%;
    max-width: 500px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: var(--shadow);
}
.search-overlay-inner form {
    flex: 1;
    display: flex;
    gap: 6px;
}
.search-overlay-inner input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
}
.search-overlay-inner input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.search-overlay-inner button[type="submit"] {
    padding: 8px 16px;
    background: #7777ff;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background .15s;
    white-space: nowrap;
}
.search-overlay-inner button[type="submit"]:hover { background: #ff9900; }
.search-overlay-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 6px;
    flex-shrink: 0;
}
.search-overlay-close:hover { color: var(--text); }

/* ================================
   Container
   ================================ */
.site-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: var(--gap);
}
main {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--gap);
    min-height: 400px;
}
.path { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.path a { color: var(--text-muted); }
.path a:hover { color: var(--primary); }
/* Article Images */
.article-img {
    max-width: 100%;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto 10px;
}
.note{color:#777777;background-color:#ffffee;border:1px solid #e0e0e0;margin-bottom:9px;text-align:left;line-height:28px;word-wrap:break-word;word-break:break-all;padding:8px;font-size:15px;overflow:hidden;position:relative;}
.note i{font-weight: bold;color:#22c55e;}
.note b{color:#7777ff;}
.note a:link,.note a:visited {text-decoration: underline;COLOR: #22c55e;text-decoration-style: dashed; text-underline-offset: 3px; }
.note a:hover{color:#ff5500;} 
/* ================================
   Footer
   ================================ */
.site-footer { text-align: center;background: var(--bg-white);border-top: 1px solid var(--border);margin-top: 40px;padding: 15px}
.site-footer a:link,.site-footer a:visited {color:#666666;text-decoration:none;}
.site-footer a:hover{color:#000000;text-decoration: underline} 
/* ================================
   Friend Links
   ================================ */
.friend-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.friend-links li { margin: 0; }
.friend-links a {
    color: #777;
    font-size: 0.875rem;
}

/* ================================
   Lightbox
   ================================ */
.img-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center;
}
.img-overlay-img {
    max-width: 90%; max-height: 90%;
    border-radius: 8px; cursor: default;
}
.img-overlay-close {
    position: fixed; top: 16px; right: 24px;
    font-size: 2.5rem; color: #fff;
    background: none; border: none; cursor: pointer;
    line-height: 1;
}
.img-overlay-close:hover { opacity: .7; }

/* ================================
   Popup Overlay
   ================================ */
#opendiv {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
#divcontent {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.popup-close {
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer;
    color: #fff;
    line-height: 1;
}
.popup-close:hover { opacity: .7; }

/* ================================
   Responsive
   ================================ */
/* ================================
   Nav Directory
   ================================ */
.nav-cat { margin-bottom: 28px; }
.nav-cat-title { font-size:18px; border-left: 4px solid #7777ff; padding-left: 12px; margin-bottom: 12px; color:#999999;}
.nav-cat-title a { font-size:18px;color:#ff7700; }
.nav-cat-title a:hover { color:#7777ff; text-decoration: none; }
.nav-urls { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.nav-url-item {
    background: #f9fafb; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 12px; transition: box-shadow .15s;
}
.nav-url-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); background-color:#f3f3f3;}
.nav-url-name {
    font-size: 0.95rem; font-weight: 600; line-height: 1.4; margin-bottom: 3px;
    display: flex; align-items: center; gap: 6px;
}
.nav-url-name a { color: #7777ff; font-size:16px;}
.nav-url-name a:hover { color:#ff6600; }
.nav-favicon { flex-shrink: 0; border-radius: 2px; }
.nav-url-desc { font-size: 15px; color: var(--text-muted); line-height: 1.4; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp:8; -webkit-box-orient: vertical; overflow: hidden; }
.nav-url-domain { font-size: 0.78rem; color: #a0aec0; font-family: monospace; }
.nav-cat-page-title { font-size: 1.3rem; border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 20px; }

/* ================================
   share
   ================================ */
.share{display: flex;gap:6px;color:#666666;justify-content: flex-end;line-height:22px;font-size: 14px;margin-top:3px;margin-bottom:10px; float: right;}
.share span {color:#000000;}

.cbuttonf {position: relative;padding: 5px;font-size: 14px;color: #fff;background-color: #1877F2;border: none;border-radius: 5px;cursor: pointer;transition: background-color 0.3s;display: flex;align-items: center;}
.cbuttonf:after {content: "Facebook";}
.cbuttonf:hover {background-color: #7777ff;}

.cbuttont {position: relative;padding: 5px;font-size: 14px;color: #fff;background-color: #000000;border: none;border-radius: 5px;cursor: pointer;transition: background-color 0.3s;display: flex;align-items: center;}
.cbuttont:after {content: "Twitter(X)";}
.cbuttont:hover {background-color: #7777ff;}

.cbuttonr {position: relative;padding: 5px;font-size: 14px;color: #fff;background-color:#FF4500;border: none;border-radius: 5px;cursor: pointer;transition: background-color 0.3s;display: flex;align-items: center;}
.cbuttonr:after {content: "Reddit";}
.cbuttonr:hover {background-color: #7777ff;}

.cbuttonl {position: relative;padding: 5px;font-size: 14px;color: #fff;background-color:#0077B5;border: none;border-radius: 5px;cursor: pointer;transition: background-color 0.3s;display: flex;align-items: center;}
.cbuttonl:after {content: "LinkedIn";}
.cbuttonl:hover {background-color: #7777ff;}


/* Nav link colors */
.nav-url-name .nav-link-red { color:#ff6600; }
.nav-url-name .nav-link-blue { color:#7777ff; }
.nav-new::after { content:"New"; }
.nav-new { color:red; font-size:0.65rem; font-weight:bold; vertical-align:super; } 
.nav-blank { border:1px solid #999; color:#999;font-size:0.6rem; padding:0 2px; margin-left:2px; line-height:1; border-radius:2px; }
.nav-blank::after { content:"↗"; }
.nav-url-name a:hover .nav-blank {
    border-color: currentColor;
    color: currentColor;
}

#top_div{ position:fixed; bottom:50px; right:10px; display:none;width:50px;height:53px;z-index:20;  } 
/* FAQ section */
.faq-section { margin-top: 28px; }
.faq-section h2 { font-size:18px; border-left:4px solid #7777ff; padding-left:12px; margin-bottom:12px; color:#9999ff; }
.faq-list { border:1px solid var(--border); border-radius:6px; overflow:hidden; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-item:last-child { border-bottom:none; }
.faq-q { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; cursor:pointer; user-select:none; }
.faq-q:hover { background:#f9f9f9; }
.faq-question { font-size:15px; color:var(--text); flex:1; }
.faq-toggle { font-size:18px; color:#999; margin-left:12px; font-weight:bold; }
.faq-a { padding:0 14px 12px; font-size:14px; color:var(--text-muted); line-height:1.6; } 

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 16px 0;
}
.page-num, .page-prev, .page-next {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
}
.page-num:hover, .page-prev:hover, .page-next:hover {
    background: #f0f0f0;
    border-color: #ccc;
}
.page-num.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
.page-dots {
    display: inline-block;
    padding: 4px 6px;
    color: #999;
    font-size: 0.85rem;
} 
.nav-extra-cats { padding: 16px 0; }
.nav-extra-cats h2 { font-size: 1.1rem; margin-bottom: 10px; }
.nav-extra-tag { display:inline-block; padding:4px 12px; margin:4px; background:#f3f4f6; color:#666; border-radius:6px; font-size:0.85rem; text-decoration:none; border:1px solid #e5e7eb; }
.nav-extra-tag:hover { background:#e5e7eb; color:#333; } 

.copyright::after { font-size:11px;color:#999;content:" Built with NoDB-Webbase"; }

@media (max-width: 640px) {
    .nav-urls { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-main {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-white);
        border-top: 1px solid var(--border);
        padding: 8px var(--gap);
        z-index: 100;
        flex: none;
    }
    .nav-main.active { display: flex; }
    .nav-main a {
        padding: 10px 14;
        border-bottom: 1px solid var(--border);margin-bottom: 4px;
        border-radius: var(--radius);
    }
    .nav-main a:last-child { border-bottom: none; }
    .nav-main a.active { color: var(--primary); font-weight: 600; }
    .nav-main a.goto {
        background: #FF783C;
        color: #fff;
        padding: 10px 14px;
        border-radius: var(--radius);
        margin-bottom: 4px;
        border-bottom: none;
    }

    .site-container { padding: 16px; }
    main { padding: 16px; }
    .header-inner {
        position: relative;
        justify-content: normal;
    }
    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
    }

	.slogan {display:none;}
	.nav-url-desc { font-size: 15px; color: var(--text-muted); line-height: 1.4; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp:15; -webkit-box-orient: vertical; overflow: hidden; }
    .search-toggle { margin-left: auto; }
    .search-overlay { padding-top: 56px; }
    .search-overlay-inner { padding: 8px 10px; gap: 4px; }
    .search-overlay-inner form { gap: 4px; flex: 1; min-width: 0; }
    .search-overlay-inner input { padding: 5px 8px; font-size: 0.85rem; min-width: 0; }
    .search-overlay-inner button[type="submit"] { padding: 5px 10px; font-size: 0.8rem; }
    .search-overlay-close { padding: 2px 4px; font-size: 1rem; }

    #divcontent { padding: 16px; max-width: 95%; }
.share{display: flex;gap:6px;color:#666666;justify-content: flex-end;line-height:22px;font-size: 14px;margin-top:3px;margin-bottom:10px;}
}

