/* layout.css - 全局布局样式（header, footer, 通用组件） */

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; background: #f8f9fa; min-height: 100vh; color: #1a1a2e; }
a { text-decoration: none; color: inherit; }
/* Content links hover effect matching sidebar */
/* .main-content a:not(.btn):not(.btn-login):not(.btn-register):not(.logo):not(.social-btn):not(.view-all-link):not(.layui-laypage a):not(.menu-item),
.user-main a:not(.btn):not(.btn-login):not(.btn-register):not(.logo):not(.social-btn):not(.view-all-link):not(.layui-laypage a):not(.menu-item) {
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    margin: -2px -4px;
} */
.main-content a:not(.btn):not(.btn-login):not(.btn-register):not(.logo):not(.social-btn):not(.view-all-link):not(.layui-laypage a):not(.menu-item):hover,
.user-main a:not(.btn):not(.btn-login):not(.btn-register):not(.logo):not(.social-btn):not(.view-all-link):not(.layui-laypage a):not(.menu-item):hover {
    background: #f0f9f4;
    color: #00e36e;
}

/* ===== Breadcrumb ===== */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 15px 20px; font-size: 13px; color: #95a5a6; }
.breadcrumb a { color: #666; transition: color 0.2s; }
.breadcrumb a:hover { color: #00e36e; background: none; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: #2c3e50; }

/* ===== Header ===== */
.header { background: #fff; padding: 0 40px; position: fixed; top: 0; left: 0; right: 0; z-index: 999; height: 64px; border-bottom: 1px solid #eee; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { color: #1a1a2e; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; background: #00e36e; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.nav-menu { display: flex; gap: 6px; margin-left: auto; margin-right: 20px; }
.nav-menu a { color: #555; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav-menu a:hover,
.nav-menu a.active { background: #f0f9f4; color: #00e36e; }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-area { display: flex; align-items: center; gap: 10px; margin-left: 5px; }
.user-area .btn-login { background: #E7F3ED; color: #1a1a2e; font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 10px; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.user-area .btn-login:hover { background: #f5f5f5; border-color: #1a1a2e; color: #1a1a2e; transform: translateY(-1px); }
.user-area .btn-register { background: #00e36e; color: #000000; padding: 7px 20px; border-radius: 20px; font-weight: 600; font-size: 13px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; border: 1.5px solid #00e36e; }
.user-area .btn-register:hover { background: #00c45f; border-color: #00c45f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,227,110,0.3); color: #000000; }
.user-area .header-top-avatar:hover { color: #00c45f; }
.user-dropdown { position: relative; }
.user-dropdown-trigger { padding: 7px 14px; border-radius: 10px; background-color: #E7F3ED; font-size: 13px; font-weight: 600; color: #1a1a2e; display: flex; align-items: center; gap: 4px; cursor: pointer; transition: background 0.2s; }
.user-dropdown-trigger:hover { background: #d9f0e3; color: #00c45f; }
.user-dropdown-menu { display: none; position: absolute; top: 100%; right: 0; padding-top: 8px; background: transparent; min-width: 160px; z-index: 1000; }
.user-dropdown-menu-inner { background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 6px 0; position: relative; }
.user-dropdown-menu-inner::before { content: ''; position: absolute; top: -6px; right: 16px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -2px -2px 4px rgba(0,0,0,0.04); }
.user-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: #333; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.user-dropdown-menu a:hover { background: #f0f9f4; color: #00c45f; }
.user-dropdown-menu a .layui-icon { font-size: 16px; }
.user-dropdown-menu .dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.user-dropdown:hover .user-dropdown-menu { display: block; }
.header .user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #e0e0e0; }
.main-content { padding-top: 64px; min-height: calc(100vh - 120px); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Language Switch - Pill Toggle ===== */
.lang-switch { display: flex; align-items: center; padding-right: 10px; border-right: 1px solid #ccc; }
.lang-pills { display: flex;padding: 4px 6px; border-radius: 6px; overflow: hidden; background-color: #E7F3ED; }
.lang-pills a { display: block; padding: 5px 12px; font-size: 12px; font-weight: 600; color: #888; text-decoration: none; transition: color 0.2s, background 0.2s; }
.lang-pills a:last-child { border-right: none; }
.lang-pills a:hover { color: #00c45f; }
.lang-pills a.active { background: #FFFFFF; color: #00c45f; border-radius: 6px; }

/* ===== Footer ===== */
.footer { background: #1a1a2e; color: #94a3b8; padding: 60px 0 20px; font-size: 14px; }
.footer-content { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-brand h2 { color: #fff; font-size: 20px; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { line-height: 1.8; margin-bottom: 20px; font-size: 13px; max-width: 300px; color: #8892a4; }
.social-links { display: flex; gap: 12px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: background 0.2s, transform 0.2s, color 0.2s; text-decoration: none; font-size: 16px; }
.social-btn:hover { background: #00e36e; transform: translateY(-2px); color: #fff; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-links a { display: block; color: #8892a4; margin-bottom: 12px; transition: color 0.2s; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.contact-info li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; line-height: 1.5; }
.contact-info i { color: #00e36e; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7280; }
.footer-bottom-links a { color: #8892a4; margin-left: 20px; text-decoration: none; transition: color 0.2s; font-size: 12px; }
.footer-bottom-links a:hover { color: #fff; }

/* ===== Section Title ===== */
.section-title { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 0; display: flex; align-items: center; gap: 0; }
.section-title::before { display: none; }

/* ===== Page Header ===== */
.page-header { background: linear-gradient(135deg, #0f1714 0%, #1a2e28 100%); padding: 50px 0; color: #fff; text-align: center; }
.page-header h1 { font-size: 32px; margin-bottom: 10px; font-weight: 700; }
.page-header p { opacity: 0.9; font-size: 16px; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #95a5a6; }
.empty-state i { font-size: 50px; margin-bottom: 15px; display: block; }

/* ===== Fixed Service QR ===== */
.fixed-service { position: fixed; right: 20px; bottom: 100px; z-index: 999; }
.service-btn { width: 50px; height: 50px; background: linear-gradient(135deg, #00e36e 0%, #00c45a 100%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 227, 110, 0.4); transition: all 0.3s; }
.service-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 227, 110, 0.5); }
.service-btn i { font-size: 20px; color: #1a1a2b; }
.service-btn span { font-size: 10px; color: #1a1a2b; margin-top: 2px; }
.service-qr { position: absolute; right: 60px; bottom: 0; background: #fff; border-radius: 10px; padding: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); display: none; min-width: 140px; text-align: center; }
.service-qr.show { display: block; animation: fadeIn 0.3s; }
.service-qr::after { content: ''; position: absolute; right: -8px; bottom: 15px; border: 8px solid transparent; border-left-color: #fff; }
.service-qr .qr-title { font-size: 13px; color: #2c3e50; font-weight: 500; margin-bottom: 10px; }
.service-qr img { width: 120px; height: 120px; border-radius: 5px; border: 1px solid #eee; }
.service-qr .qr-tip { font-size: 11px; color: #95a5a6; margin-top: 8px; }

/* ===== Back to Top Button ===== */
.back-to-top { position: fixed; right: 20px; bottom: 170px; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn { width: 45px; height: 45px; background: #aaa; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; border: 2px solid #f0f0f0; }
.back-to-top-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15); border-color: #00e36e; }
.back-to-top-btn i { font-size: 36px; color: #FFF; transition: color 0.3s ease; }
.back-to-top-btn:hover i { color: #666; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* ===== LayUI Pagination Theme ===== */
.layui-laypage { display: inline-block; vertical-align: middle; margin: 10px 0; font-size: 0; }
.layui-laypage a,
.layui-laypage span { display: inline-block; vertical-align: middle; padding: 0 15px; height: 36px; line-height: 36px; margin: 0 -1px 5px 0; background-color: #fff; color: #333; font-size: 14px; text-decoration: none; border: 1px solid #e0e0e0; border-radius: 6px; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.layui-laypage a:hover { background-color: #f8f9fa; color: #00e36e; border-color: #00e36e; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 227, 110, 0.2); }
.layui-laypage .layui-laypage-curr { position: relative; }
.layui-laypage .layui-laypage-curr em { position: relative; font-style: normal; background: linear-gradient(135deg, #00e36e 0%, #00c45f 100%); color: #000000; border-color: #00e36e; border-radius: 6px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 227, 110, 0.3); }
.layui-laypage .layui-laypage-curr em:hover { background: linear-gradient(135deg, #00c45f 0%, #00a34d 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 227, 110, 0.4); }
.layui-laypage .layui-laypage-spr { color: #999; font-size: 12px; border: none; padding: 0 10px; background: transparent; }
.layui-laypage .layui-laypage-prev,
.layui-laypage .layui-laypage-next { font-family: layui-icon !important; font-size: 14px; font-weight: bold; }
.layui-laypage .layui-laypage-prev:hover,
.layui-laypage .layui-laypage-next:hover { background-color: #00e36e; color: #000000; border-color: #00e36e; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 227, 110, 0.3); }
.layui-laypage .layui-laypage-prev.layui-disabled,
.layui-laypage .layui-laypage-next.layui-disabled { color: #d2d2d2 !important; background-color: #f8f9fa !important; border-color: #e0e0e0 !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }
.layui-laypage .layui-laypage-count { color: #666; font-size: 12px; padding: 0 10px; height: 36px; line-height: 36px; border: none; background: transparent; }
.layui-laypage .layui-laypage-limits,
.layui-laypage .layui-laypage-skip { margin-left: 10px; font-size: 12px; color: #666; }
.layui-laypage .layui-laypage-limits select,
.layui-laypage .layui-laypage-skip input { height: 36px; line-height: 36px; border: 1px solid #e0e0e0; border-radius: 6px; background-color: #fff; color: #333; font-size: 12px; padding: 0 8px; transition: border-color 0.2s, box-shadow 0.2s; }
.layui-laypage .layui-laypage-limits select:hover,
.layui-laypage .layui-laypage-skip input:hover { border-color: #00e36e; }
.layui-laypage .layui-laypage-limits select:focus,
.layui-laypage .layui-laypage-skip input:focus { border-color: #00e36e; outline: none; box-shadow: 0 0 0 2px rgba(0, 227, 110, 0.2); }
.layui-laypage .layui-laypage-skip button { height: 36px; line-height: 36px; border: 1px solid #00e36e; background-color: #00e36e; color: #000000; font-size: 12px; padding: 0 15px; border-radius: 6px; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; font-weight: 600; }
.layui-laypage .layui-laypage-skip button:hover { background: linear-gradient(135deg, #00c45f 0%, #00a34d 100%); border-color: #00c45f; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 227, 110, 0.3); }
.pagination-container { text-align: center; margin: 30px 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header { padding: 0 15px; }
    .nav-menu { display: none; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-bottom-links { margin-left: 0; }
    .layui-laypage a,
    .layui-laypage span { padding: 0 12px; height: 32px; line-height: 32px; font-size: 12px; margin: 0 -1px 3px 0; }
    .layui-laypage .layui-laypage-spr { font-size: 11px; padding: 0 8px; }
    .layui-laypage .layui-laypage-count { font-size: 11px; height: 32px; line-height: 32px; }
    .layui-laypage .layui-laypage-limits,
    .layui-laypage .layui-laypage-skip { margin-left: 8px; font-size: 11px; }
    .layui-laypage .layui-laypage-limits select,
    .layui-laypage .layui-laypage-skip input,
    .layui-laypage .layui-laypage-skip button { height: 32px; line-height: 32px; font-size: 11px; }
}
@media (max-width: 480px) {
    .layui-laypage a,
    .layui-laypage span { padding: 0 8px; height: 28px; line-height: 28px; font-size: 11px; margin: 0 -1px 2px 0; }
    .layui-laypage .layui-laypage-spr { display: none; }
    .layui-laypage .layui-laypage-count { display: none; }
}
