/* ============================================================
   GouguCMS News Aggregation - Common Styles
   Blue Theme | Modern Minimalist
   ============================================================ */

/* ---------------------------------------------------------
   1. Reset / Base
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, blockquote, p {
    padding: 0;
    margin: 0;
}

table, td, tr, th {
    font-size: 14px;
}

li {
    list-style-type: none;
}

img {
    vertical-align: top;
    border: 0;
}

ol, ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 14px;
    font-weight: 600;
}

address, code, em, th, s, i {
    font-weight: normal;
    font-style: normal;
}

s {
    color: #757575;
    margin: 0 10px;
    text-decoration: none;
}

body.right-open {
    overflow-y: clip;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   2. Form Elements
   --------------------------------------------------------- */
label input {
    vertical-align: middle;
    margin-right: 3px;
}

label {
    cursor: pointer;
}

textarea {
    resize: none;
    font-size: 14px;
}

:focus {
    outline: 0;
}

select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-right: 3px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

select:focus {
    border-color: #2196f3;
}

/* ---------------------------------------------------------
   3. Font Size Utilities
   --------------------------------------------------------- */
.fB { font-weight: bold; }
.f12 { font-size: 12px; }
.f14 { font-size: 14px; }
.f16 { font-size: 16px; }
.f18 { font-size: 18px; }

/* ---------------------------------------------------------
   4. Float / Clearfix
   --------------------------------------------------------- */
.l, .left { float: left; }
.r, .right { float: right; }

.clearfix {
    display: block;
}

.clearfix::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

* html .clearfix {
    height: 1%;
}

/* ---------------------------------------------------------
   5. Scrollbar
   --------------------------------------------------------- */
::-webkit-scrollbar {
    width: 4px;
    height: 6px;
}

::-webkit-scrollbar-button:vertical {
    display: none;
}

::-webkit-scrollbar-track:vertical {
    background-color: transparent;
}

::-webkit-scrollbar-track-piece {
    background-color: #f0f7ff;
}

::-webkit-scrollbar-thumb:vertical {
    margin-right: 6px;
    background-color: #90caf9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:vertical:hover {
    background-color: #42a5f5;
}

::-webkit-scrollbar-corner:vertical {
    background-color: #e3f2fd;
}

/* ---------------------------------------------------------
   6. Placeholder
   --------------------------------------------------------- */
::-webkit-input-placeholder {
    color: #bdbdbd;
    font-size: 14px;
}

::-moz-placeholder {
    color: #bdbdbd;
    font-size: 14px;
}

:-ms-input-placeholder {
    color: #bdbdbd;
    font-size: 14px;
}

/* ---------------------------------------------------------
   7. Display Utilities
   --------------------------------------------------------- */
.hide { display: none; }
.block { display: block; }

/* ---------------------------------------------------------
   8. Links
   --------------------------------------------------------- */
a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:visited {
    text-decoration: none;
}

a:hover {
    color: #1976d2;
}

a:active {
    color: #1565c0;
}

/* ---------------------------------------------------------
   9. Text Overflow Utilities
   --------------------------------------------------------- */
.text-overflow-1,
.text-overflow-2,
.text-overflow-3,
.text-overflow-4,
.text-overflow-5 {
    display: -webkit-box !important;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.text-overflow-2 { -webkit-line-clamp: 2; }
.text-overflow-3 { -webkit-line-clamp: 3; }
.text-overflow-4 { -webkit-line-clamp: 4; }
.text-overflow-5 { -webkit-line-clamp: 5; }

/* ---------------------------------------------------------
   10. Container
   --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ---------------------------------------------------------
   11. Header - Sticky Gradient Blue
   --------------------------------------------------------- */
.header {
    width: 100%;
    height: 64px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #0c2d6b 0%, #1565c0 100%);
    box-shadow: 0 2px 12px rgba(12, 45, 107, 0.3);
    transition: all 0.3s ease;
}

.nav-box {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    height: 64px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo a {
    display: flex;
    align-items: center;
    height: 64px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-logo a img {
    max-height: 40px;
    width: auto;
}

/* Navbar */
.navbar {
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.navbar li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.navbar a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 4px;
}

.navbar a:hover,
.navbar li:hover > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .active,
.navbar .active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

/* Login / Register buttons */
.navbar .login-btn {
    padding: 6px 18px;
    margin-left: 16px;
    border-radius: 8px;
    font-size: 14px;
    background: #2196f3;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.navbar .login-btn:hover {
    background: #42a5f5;
    color: #fff;
    transform: translateY(-1px);
}

.navbar .reg-btn {
    padding: 6px 18px;
    margin-left: 12px;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.navbar .reg-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

/* Dropdown Submenus */
.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 10px;
    top: calc(100% + 20px);
    margin: 0;
    padding: 8px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(12, 45, 107, 0.15);
    transition: all 0.25s ease;
    border-radius: 12px;
    min-width: 200px;
    border: 1px solid rgba(21, 101, 192, 0.08);
}

.navbar .dropdown ul li {
    min-width: 200px;
    height: auto;
    display: block;
}

.navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    color: #424242;
    text-transform: none;
    font-weight: 400;
    border-radius: 0;
}

.navbar .dropdown ul a i {
    font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
    color: #1565c0;
    background: #e3f2fd;
}

.navbar .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 20px);
    visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}

/* User Profile / Logged-in Area */
.nav-login-box {
    width: 320px;
    border-radius: 12px;
    position: absolute;
    top: 64px;
    right: 0;
    background-color: #fff;
    z-index: -1;
    color: #424242;
    font-size: 14px;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
    opacity: 0;
    -webkit-transform-origin: center top;
    transform-origin: center top;
    box-shadow: 0 12px 40px rgba(12, 45, 107, 0.15);
    border: 1px solid rgba(21, 101, 192, 0.08);
}

.login-note {
    padding: 15px 15px 0;
    color: #e53935;
}

.nav-login-box .login-menu {
    padding: 15px 10px;
}

.navbar .login-menu a {
    width: auto;
    color: #424242;
    padding: 8px 16px;
    display: inline-block;
    font-size: 15px;
    border-radius: 8px;
}

.navbar .login-menu a:hover {
    color: #1565c0;
    background: #e3f2fd;
}

.nav-login-box .login-menu-bottom {
    background-color: #f0f7ff;
    border-top: 1px solid #e3f2fd;
    border-radius: 0 0 12px 12px;
}

.nav-login-box .login-menu-bottom a {
    color: #757575;
    font-size: 13px;
    padding: 12px;
}

.nav-login-box .login-menu-bottom a:hover {
    color: #1565c0;
}

.navbar li.nav-logined .nav-login-box::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    position: absolute;
    top: -5px;
    right: 30px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    border-left: 1px solid rgba(21, 101, 192, 0.08);
    border-top: 1px solid rgba(21, 101, 192, 0.08);
}

.navbar li a.nav-img {
    height: 36px;
    text-align: center;
    padding: 0 16px;
    display: flex;
    align-items: center;
    line-height: 36px;
    font-size: 15px;
}

.navbar li.nav-logined:hover .nav-login-box {
    z-index: 99;
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.nav-img img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

/* Mobile Hamburger */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
    color: #fff;
    font-size: 24px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Text Logo (icon + brand name) */
.logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Header Search Box */
.search-box {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 16px;
}

.search-box form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.search-box form:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-box input[type="text"] {
    width: 200px;
    padding: 7px 16px;
    font-size: 13px;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
}

.search-box input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    width: 36px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: #fff;
}

/* ---------------------------------------------------------
   12. Category Bar (Sticky below header)
   --------------------------------------------------------- */
.cat-bar {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid #e8eef5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cat-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-bar-inner::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 14px;
    color: #424242;
    white-space: nowrap;
    border-radius: 20px;
    background: #f5f5f5;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.cat-item:hover {
    color: #1565c0;
    background: #e3f2fd;
}

.cat-item.active {
    color: #fff;
    background: #1565c0;
    border-color: #1565c0;
}

/* ---------------------------------------------------------
   13. Footer
   --------------------------------------------------------- */
.footer {
    width: 100%;
    background-color: #1a1a2e;
    margin-top: 60px;
}

.footer-top {
    width: 100%;
}

.footer-top-box {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    color: #9e9e9e;
}

.footer-link {
    padding: 0;
}

.footer-link dl,
.footer-about dl {
    margin: 0;
}

.footer-link dt,
.footer-about dt {
    font-size: 16px;
    line-height: 1;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-link dt a {
    color: #e0e0e0;
}

.footer-link dd {
    font-size: 14px;
    line-height: 2.2;
}

.footer-link a {
    color: #9e9e9e;
    transition: color 0.2s ease;
}

.footer-link a:hover {
    color: #64b5f6;
}

.footer-about {
    padding: 0;
}

.footer-about dd {
    line-height: 2.2;
    font-size: 14px;
    color: #9e9e9e;
}

.footer-about a {
    color: #9e9e9e;
    line-height: 2;
}

.footer-about a:hover {
    color: #64b5f6;
}

.footer-bottom {
    width: 100%;
    background-color: #141425;
    min-height: 48px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-box {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    line-height: 48px;
    color: #757575;
    font-size: 13px;
}

.footer-bottom-box .a,
.footer-bottom-box a {
    margin-left: 10px;
    color: #9e9e9e;
    transition: color 0.2s ease;
}

.footer-bottom-box a:hover {
    color: #64b5f6;
}

.footer-bottom-box .r {
    color: #757575;
}

.footer-bottom-box select.lan {
    background: #1a1a2e;
    color: #9e9e9e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
}

/* New Footer Layout (footer.html v2) */
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 32px;
}

.footer-brand {
    color: #9e9e9e;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: #9e9e9e;
    margin: 0;
}

.footer-col h4 {
    font-size: 16px;
    color: #e0e0e0;
    margin: 0 0 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: 14px;
    line-height: 2.2;
    color: #9e9e9e;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #64b5f6;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
    text-align: center;
}

.footer .footer-bottom span {
    font-size: 13px;
    color: #757575;
}

.footer .footer-bottom a {
    color: #9e9e9e;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.footer .footer-bottom a:hover {
    color: #64b5f6;
}

/* ---------------------------------------------------------
   14. Pagination
   --------------------------------------------------------- */
.pagebox {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 24px 0;
}

.pagebox a,
.pagebox span {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 3px;
    padding: 0 12px;
    color: #424242;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    display: inline-block;
    transition: all 0.2s ease;
}

.pagebox a:hover {
    background-color: #1565c0;
    color: #fff;
    border-color: #1565c0;
}

.pagebox span {
    background-color: #1565c0;
    color: #fff;
    border-color: #1565c0;
    font-weight: 600;
}

.data-none {
    padding: 60px 0;
    text-align: center;
    color: #bdbdbd;
    font-size: 15px;
}

/* ---------------------------------------------------------
   15. Platform Badge Colors
   --------------------------------------------------------- */
.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-xiaohongshu {
    color: #ff2d55;
    background: rgba(255, 45, 85, 0.08);
    border: 1px solid rgba(255, 45, 85, 0.15);
}

.badge-wechat {
    color: #07c160;
    background: rgba(7, 193, 96, 0.08);
    border: 1px solid rgba(7, 193, 96, 0.15);
}

.badge-netease {
    color: #c41e3a;
    background: rgba(196, 30, 58, 0.08);
    border: 1px solid rgba(196, 30, 58, 0.15);
}

.badge-sohu {
    color: #db4035;
    background: rgba(219, 64, 53, 0.08);
    border: 1px solid rgba(219, 64, 53, 0.15);
}

.badge-baijiahao {
    color: #2962ff;
    background: rgba(41, 98, 255, 0.08);
    border: 1px solid rgba(41, 98, 255, 0.15);
}

.badge-website {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.15);
}

/* ---------------------------------------------------------
   16. Animations
   --------------------------------------------------------- */
.fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fadeInUp {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -10px, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -10px, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 0.8s;
    animation-duration: 0.8s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

/* ---------------------------------------------------------
   17. Responsive - Tablet (max-width: 1024px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .nav-box {
        padding: 0 20px;
    }

    .navbar a {
        padding: 8px 14px;
        font-size: 14px;
    }

    .navbar .dropdown .dropdown ul {
        left: -90%;
    }

    .navbar .dropdown .dropdown:hover > ul {
        left: -100%;
    }

    .footer-top-box {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 36px 20px 24px;
    }

    /* Legacy index page overrides */
    .banner h1 {
        font-size: 32px;
    }

    .banner h2 {
        font-size: 15px;
    }

    .banner-img {
        margin-top: -160px;
    }

    .banner-img img {
        width: 360px;
    }

    .banner .intro-img {
        width: 240px;
    }

    .cms-banner img {
        height: 50px;
    }

    .cms-banner span {
        font-size: 20px;
        line-height: 50px;
    }

    .cms-banner ul li {
        font-size: 13px;
    }

    .function-img img {
        width: 360px;
    }

    .function-item {
        font-size: 13px;
    }

    .function-item ul li span {
        font-size: 13px;
        margin-right: 1px;
    }
}

/* ---------------------------------------------------------
   18. Responsive - Mobile (max-width: 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header mobile */
    .header {
        height: 56px;
    }

    .nav-box {
        height: 56px;
        padding: 0 16px;
    }

    .nav-logo {
        height: 56px;
    }

    .nav-logo a {
        height: 56px;
    }

    .nav-logo a img {
        max-height: 32px;
    }

    /* Logo mobile */
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 15px;
        margin-right: 6px;
    }

    .logo-text {
        font-size: 16px;
    }

    /* Search box hidden on mobile, smaller */
    .search-box {
        margin-left: 8px;
        margin-right: 8px;
    }

    .search-box input[type="text"] {
        width: 120px;
        padding: 5px 12px;
        font-size: 12px;
    }

    .search-btn {
        width: 30px;
        height: 28px;
        font-size: 14px;
    }

    /* Show hamburger, hide nav */
    .mobile-menu-btn {
        display: flex;
    }

    .navbar {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, #0c2d6b 0%, #1565c0 100%);
        height: auto;
        z-index: 999;
        padding: 16px;
        overflow-y: auto;
    }

    .navbar.mobile-open {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .navbar li {
        height: auto;
        display: block;
    }

    .navbar a {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar a:hover,
    .navbar .active {
        background: rgba(255, 255, 255, 0.12);
    }

    .navbar .login-btn,
    .navbar .reg-btn {
        margin: 8px 0 0 0;
        text-align: center;
        justify-content: center;
    }

    .navbar .dropdown ul {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);
        border: none;
        border-radius: 8px;
        margin: 4px 0;
        padding: 4px 0;
    }

    .navbar .dropdown ul a {
        padding: 10px 24px;
        color: rgba(255, 255, 255, 0.8);
    }

    .navbar .dropdown ul a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .navbar .dropdown:hover > ul {
        top: auto;
    }

    .navbar .dropdown .dropdown ul {
        left: 0;
    }

    .navbar .dropdown .dropdown:hover > ul {
        left: 0;
    }

    .nav-login-box {
        width: 280px;
        right: -40px;
    }

    /* Category bar mobile */
    .cat-bar {
        top: 56px;
    }

    .cat-bar-inner {
        padding: 0 16px;
        height: 46px;
        gap: 6px;
    }

    .cat-item {
        padding: 5px 14px;
        font-size: 13px;
    }

    /* Footer mobile */
    .footer-top-box {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 16px 20px;
    }

    .footer-link dt,
    .footer-about dt {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-bottom-box {
        padding: 0 16px;
        line-height: 40px;
        font-size: 12px;
    }

    .footer-bottom {
        min-height: 40px;
    }

    /* New footer layout mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 0 20px;
    }

    .footer-inner {
        padding: 0 16px;
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    /* Pagination mobile */
    .pagebox a,
    .pagebox span {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    /* Legacy index page mobile */
    .banner {
        height: auto;
        min-height: 60vh;
        padding: 40px 0;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner h2 {
        font-size: 14px;
    }

    .banner-img {
        display: none;
    }

    .banner .intro-img {
        width: 200px;
    }

    .banner .btn-down,
    .banner .btn-go {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .item-col-3,
    .item-col-4,
    .item-col-6 {
        width: 100%;
        padding: 0 0 16px 0;
    }

    .cms-banner {
        height: auto;
        padding: 20px 0;
    }

    .cms-banner .container {
        padding: 10px 16px;
    }

    .cms-banner img {
        height: 40px;
        float: none;
        margin-bottom: 10px;
    }

    .cms-banner span {
        font-size: 18px;
        line-height: 40px;
        float: none;
        margin-right: 0;
    }

    .cms-banner ul {
        float: none;
        margin: 10px 0;
    }

    .cms-banner a {
        float: none;
        display: inline-block;
        margin-top: 10px;
    }

    .function {
        padding: 40px 0;
    }

    .function-wrap {
        padding: 100px 0 20px;
    }

    .function-img {
        top: -80px;
    }

    .function-img img {
        width: 280px;
    }

    .function-main {
        flex-wrap: wrap;
        padding: 16px;
    }

    .function-item {
        width: 48%;
        margin: 0 1% 16px;
        font-size: 12px;
    }

    .function-title {
        font-size: 28px;
    }

    .function-sub-title {
        font-size: 15px;
        padding: 10px 0 80px;
    }
}

/* ---------------------------------------------------------
   19. Mobile Bottom Tab Bar
   --------------------------------------------------------- */
.m-tab-bar {
    display: none;
}

@media (max-width: 768px) {
    .m-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #fff;
        border-top: 1px solid #e8eef5;
        z-index: 100;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    }

    .m-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: #757575;
        gap: 2px;
        transition: color 0.2s ease;
    }

    .m-tab.active {
        color: #1565c0;
    }

    .m-tab-icon {
        font-size: 20px;
        line-height: 1;
    }

    .m-tab-label {
        font-size: 11px;
    }

    /* Center submit button highlight */
    .m-tab-submit {
        position: relative;
    }

    .m-tab-submit .m-tab-icon {
        width: 40px;
        height: 40px;
        background: #1565c0;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 300;
        margin-top: -12px;
        box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
    }

    .m-tab-submit.active .m-tab-icon {
        background: #0f4c9e;
    }

    /* Add padding to body for bottom tab bar */
    body {
        padding-bottom: 56px;
    }
}

/* ---------------------------------------------------------
   20. Legacy Index Page Styles (Banner, Features, etc.)
   --------------------------------------------------------- */
.section-header {
    padding-bottom: 36px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    color: #1a1a2e;
}

.section-header p {
    font-size: 16px;
    padding: 20px 0;
    line-height: 1.8;
    text-align: center;
    color: #757575;
}

.item-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.item-col-3 { width: 33.333%; padding: 0 12px; box-sizing: border-box; }
.item-col-4 { width: 25%; padding: 0 12px; box-sizing: border-box; }
.item-col-6 { width: 16.666%; padding: 0 12px; box-sizing: border-box; }

.banner {
    width: 100%;
    height: 80vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 50%, #fff 100%);
    background-size: cover;
    position: relative;
}

.banner-text {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -150px;
    padding: 0 24px;
}

.banner-img {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -210px;
}

.banner-img img {
    width: 468px;
}

.banner h1 {
    margin: 0;
    font-size: 40px;
    color: #0c2d6b;
    font-weight: 700;
}

.banner h2 {
    color: #424242;
    margin: 20px 0 0 0;
    line-height: 2;
    font-size: 18px;
    font-weight: 400;
}

.banner .btn-down {
    margin: 40px 0 0 0;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    transition: 0.3s;
    color: #fff;
    border: 1px solid #1565c0;
    background: #1565c0;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
    font-size: 16px;
    font-weight: 600;
}

.banner .btn-down:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.banner .btn-go {
    margin: 40px 0 0 16px;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    transition: 0.3s;
    color: #1565c0;
    border: 1px solid #1565c0;
    font-size: 16px;
    font-weight: 600;
}

.banner .btn-go:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.banner .btn-view {
    margin: 40px 0 0 16px;
    cursor: pointer;
    display: inline-block;
    padding: 12px 24px;
    transition: 0.3s;
    color: #1976d2;
    font-size: 13px;
}

.banner .banner-ops {
    margin: 16px 0;
    padding: 12px 0;
    transition: 0.3s;
    color: #757575;
    font-size: 13px;
}

.banner .banner-ops a {
    margin-right: 12px;
    color: #757575;
}

.banner .banner-ops a.btn-full {
    color: #1565c0;
}

.banner .intro-img {
    width: 420px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.banner .intro-img img {
    width: 100%;
}

.advantage {
    background: #fff;
    width: 100%;
    text-align: center;
    padding: 60px 0 80px;
}

.feature {
    display: block;
    background: #fff;
    padding: 36px 20px 24px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.feature:hover {
    background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(21, 101, 192, 0.2);
    border-color: transparent;
}

.feature .part-icon {
    display: inline-block;
    border-radius: 50%;
    background: #e3f2fd;
    padding: 24px;
    width: 72px;
    height: 72px;
    transition: background 0.3s ease;
}

.feature:hover .part-icon {
    background: rgba(255, 255, 255, 0.15);
}

.part-text h3 {
    color: #1a1a2e;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    padding: 12px 0;
    transition: color 0.3s ease;
}

.part-text {
    text-align: left;
    line-height: 1.6;
    font-size: 14px;
    color: #757575;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.feature:hover .part-text h3,
.feature:hover .part-text {
    color: #fff;
}

.part-icon img {
    width: 48px;
    height: 48px;
}

.cms-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
}

.cms-banner .container {
    padding: 30px 24px;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.cms-banner img {
    display: block;
    float: left;
    height: 60px;
    margin-right: 8px;
}

.cms-banner span {
    display: block;
    float: left;
    line-height: 60px;
    margin-right: 36px;
    font-size: 24px;
    font-weight: 500;
}

.cms-banner ul {
    overflow: hidden;
    float: left;
    margin-right: 36px;
}

.cms-banner ul li {
    font-size: 15px;
    padding: 5px 0;
    font-weight: 400;
}

.cms-banner a {
    float: right;
    display: block;
    margin-top: 14px;
    padding: 8px 24px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cms-banner a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.function {
    background: #f5f5f5;
    width: 100%;
    text-align: center;
    padding: 80px 0;
}

.function-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #1a1a2e;
}

.function-sub-title {
    font-size: 16px;
    padding: 20px 0 160px;
    line-height: 1.8;
    color: #757575;
    text-align: left;
}

.function-wrap {
    width: 100%;
    position: relative;
    margin: 0 auto;
    background-color: #fff;
    padding: 180px 0 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.function-img {
    width: 100%;
    position: absolute;
    top: -112px;
}

.function-main {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.function-item {
    width: 220px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 12px;
    word-wrap: break-word;
}

.item-box {
    padding: 20px 0;
    background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 12px;
}

.function-item ul li {
    width: 44%;
    float: left;
    padding: 5px 3%;
    text-align: left;
    color: #424242;
}

.function-item ul li span {
    font-size: 15px;
    color: #1565c0;
    font-weight: 700;
    margin-right: 3px;
}

.item-box h3 {
    font-size: 18px;
    font-weight: 500;
    padding-top: 10px;
    color: #fff;
}

.item-box img {
    height: 64px;
}

@media (min-width: 1024px) {
    .banner {
        background-attachment: fixed;
    }
}
