:root {
  --theme-color: #4f46e5;
  --theme-color-dark: #4338ca;
  --theme-light: #818cf8;
  --theme-bg: #eef2ff;
  --theme-bg2: #f5f7ff;
  --theme-border: #c7d2fe;
  --theme-tint: #e0e7ff;
  --theme-tint2: #dbe4ff;
  --theme-a90: rgba(79, 70, 229, 0.9);
  --theme-a30: rgba(79, 70, 229, 0.3);
  --theme-a12: rgba(79, 70, 229, 0.12);
  --theme-a10: rgba(79, 70, 229, 0.1);
  --theme-a08: rgba(79, 70, 229, 0.08);
  --theme-a06: rgba(79, 70, 229, 0.06);
  --theme-a05: rgba(79, 70, 229, 0.05);
}

/* SVG 主题色辅助类（内联 SVG 图标随主题变色） */
.theme-fill { fill: var(--theme-color); }
.theme-stroke { stroke: var(--theme-color); }

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f4f8;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--theme-color);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eef2ff;
}

.header-top {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border-bottom: none;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    padding: 6px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-fallback {
    display: none;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--theme-color);
    letter-spacing: 2px;
    height: 50px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-menu > ul > li > a:hover,
.nav-menu > ul > li > a.active {
    color: var(--theme-color);
    background: var(--theme-a05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 520px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #fff;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown-item span {
    font-size: 14px;
    color: #555;
}

.dropdown-hot {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dropdown-hot-title {
    font-size: 13px;
    color: #999;
    font-weight: bold;
}

.dropdown-hot a {
    font-size: 13px;
    color: var(--theme-color);
    padding: 2px 8px;
    border: 1px solid var(--theme-tint2);
    border-radius: 14px;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 4px;
    vertical-align: middle;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login,
.btn-register {
    padding: 8px 24px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login {
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
}

.btn-login:hover {
    background: var(--theme-color);
    color: #fff;
}

.btn-register {
    background: var(--theme-color);
    color: #fff;
    border: 1px solid var(--theme-color);
}

.btn-register:hover {
    background: var(--theme-color-dark);
}

/* ==================== Banner ==================== */
.banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 0 0 20px 20px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    background: transparent;
}

.banner-slide.banner-placeholder {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.banner-slide.banner-placeholder-2 {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.banner-slide.banner-placeholder-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: var(--theme-color);
    width: 30px;
    border-radius: 12px;
}

/* ==================== Announcement ==================== */
.announcement {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.announcement .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.announcement-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--theme-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    flex-shrink: 0;
    min-width: 80px;
}

.announcement-date .year {
    font-size: 12px;
    opacity: 0.8;
}

.announcement-date .date {
    font-size: 20px;
    font-weight: bold;
}

.announcement-content {
    flex: 1;
}

.announcement-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.announcement-content p {
    font-size: 13px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-more {
    font-size: 13px;
    color: var(--theme-color);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ==================== Stats ==================== */
.stats {
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 24px 14px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
    border-color: var(--theme-border);
}

.stat-num {
    font-size: 32px;
    font-weight: bold;
    color: var(--theme-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 3px;
}

.stat-desc {
    font-size: 12px;
    color: #999;
}

/* ==================== Card Section ==================== */
.card-section {
    padding: 30px 0;
}

.card-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    overflow-x: auto;
}

.card-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    border: 2px solid transparent;
}

.card-tab:hover {
    background: var(--theme-bg);
}

.card-tab.active {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-light) 100%);
    border-color: var(--theme-color);
}

.card-tab.active span {
    color: #fff;
}

.card-tab img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.card-tab span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-list-container {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    min-height: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card-list {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.card-list.active {
    display: grid;
}

.card-item {
    border: 1px solid #eef2ff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.card-item:hover {
    border-color: var(--theme-border);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.1);
    transform: translateY(-6px);
}

.card-item a {
    display: block;
    padding: 18px;
    text-align: center;
}

.card-img {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 12px;
}

.card-img img {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
}

.card-img.no-img::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 14px;
}

.card-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-price {
    font-size: 16px;
    color: var(--theme-color);
    font-weight: bold;
}

.card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* ==================== Features ==================== */
.features {
    padding: 60px 0;
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 30px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-title p {
    font-size: 15px;
    color: #64748b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-light));
    border-radius: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 40px 28px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf4;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.1);
    border-color: var(--theme-border);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
}

/* ==================== Why Choose ==================== */
.why-choose {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.why-item {
    text-align: center;
    padding: 30px 15px;
    background: #fff;
    border-radius: 18px;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.why-item:hover {
    border-color: var(--theme-border);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
    transform: translateY(-6px);
}

.why-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.why-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.why-item p {
    font-size: 13px;
    color: #999;
}

/* ==================== FAQ ==================== */
.faq {
    padding: 50px 0;
    background: #fff;
}

.faq-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.faq-nav a {
    font-size: 14px;
    color: var(--theme-color);
}

.faq-nav span {
    color: #ddd;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--theme-tint2);
    box-shadow: 0 2px 10px var(--theme-a06);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--theme-bg2);
}

.faq-q-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-toggle {
    margin-left: auto;
    font-size: 22px;
    color: var(--theme-color);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px 0 60px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 18px 60px;
}

.faq-answer p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-highlight {
    color: var(--theme-color) !important;
    font-weight: 600;
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 50px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-nav ul li a {
    color: #94a3b8;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.contact-item {
    margin-bottom: 8px;
    font-size: 13px;
}

.contact-label {
    color: #94a3b8;
}

.contact-value {
    color: #e2e8f0;
    font-weight: 500;
}

.contact-time {
    color: #64748b;
    font-size: 12px;
}

.footer-notice {
    background: rgba(255,255,255,0.05);
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.footer-notice h4 {
    color: #818cf8;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-notice p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-cert {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    min-width: 90px;
}

.cert-item img {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

.cert-item span {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

.footer-links {
    text-align: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-links span {
    color: #64748b;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copyright p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

/* ==================== Float Sidebar ==================== */
.float-sidebar {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.float-item {
    position: relative;
}

.float-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-icon {
    background: var(--theme-color);
}

.help-icon:hover {
    background: var(--theme-color-dark);
}

.business-icon {
    background: #ff9800;
}

.business-icon:hover {
    background: #e68a00;
}

.float-text {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.float-item:hover .float-text {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

.float-submenu {
    position: absolute;
    right: 60px;
    top: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.float-item:hover .float-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.float-submenu a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.float-submenu a:hover {
    background: var(--theme-bg);
    color: var(--theme-color);
}

/* ==================== Float Bottom ==================== */
.float-bottom {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
    display: flex;
    gap: 2px;
}

.float-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 70px;
    height: 70px;
    background: var(--theme-a90);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.float-bottom-item:hover {
    background: var(--theme-color);
}

.float-bottom-item span {
    font-size: 11px;
    color: #fff;
}

.float-bottom-item #backToTop {
    cursor: pointer;
}

.qq-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 250px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.qq-consult:hover .qq-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qq-popup-header {
    background: var(--theme-color);
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
}

.qq-popup-body {
    padding: 15px;
    text-align: center;
}

.qq-btn {
    display: inline-block;
    padding: 8px 30px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.qq-btn:hover {
    background: var(--theme-color-dark);
    color: #fff;
}

.qq-popup-body p {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

/* ==================== User Dropdown (Logged In) ==================== */
.user-logged {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.user-name {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--theme-color);
    border-radius: 10px;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-level {
    display: inline-block;
    padding: 2px 10px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 14px;
    font-size: 12px;
    margin-right: 4px;
}

.user-privilege {
    font-size: 12px;
    color: #888;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
}

.user-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s ease;
}

.user-menu a:hover {
    background: var(--theme-bg);
    color: var(--theme-color);
}

/* ==================== Shared Page Template ==================== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    min-height: 60vh;
}

.page-sidebar {
    float: left;
    width: 220px;
    margin-right: 30px;
}

.page-main {
    float: left;
    width: calc(100% - 250px);
}

.page-clear::after {
    content: '';
    display: table;
    clear: both;
}

.sidebar-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.sidebar-box h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-color);
    font-weight: 600;
}

.sidebar-box ul li {
    margin-bottom: 8px;
}

.sidebar-box ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar-box ul li a:hover,
.sidebar-box ul li a.active {
    background: var(--theme-bg);
    color: var(--theme-color);
}

/* ==================== Login Page ==================== */
.login-page {
    background: #f0f2f5;
}

.login-wrapper {
    max-width: 450px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-light));
    color: #fff;
    padding: 25px 30px;
    text-align: center;
}

.login-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 13px;
    opacity: 0.9;
}

.login-body {
    padding: 30px;
}

.login-mode {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.login-mode span {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 15px;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
}

.login-mode span.active {
    color: var(--theme-color);
    font-weight: 600;
}

.login-mode span.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--theme-color);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group .input-wrap {
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px var(--theme-a08);
}

.phone-row {
    display: flex;
    gap: 10px;
}

.phone-row input {
    flex: 1;
}

.btn-sms {
    width: 120px;
    padding: 12px 8px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s;
}

.btn-sms:hover {
    background: var(--theme-color-dark);
}

.btn-sms:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-light));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--theme-color-dark), #e8584a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--theme-a30);
}

.login-extra {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.login-extra a {
    font-size: 13px;
    color: #888;
}

.login-extra a:hover {
    color: var(--theme-color);
}

.login-notice {
    margin-top: 20px;
    padding: 12px;
    background: var(--theme-bg2);
    border-radius: 12px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.login-features {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-features .feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

.login-features .feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-bg);
}

.error-msg {
    color: var(--theme-color);
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.error-msg.show {
    display: block;
}

/* ==================== Register Page ==================== */
.register-page {
    background: #f0f2f5;
}

.register-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-light));
    color: #fff;
    padding: 25px 30px;
    text-align: center;
}

.register-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.register-header p {
    font-size: 13px;
    opacity: 0.9;
}

.register-header p a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.register-body {
    padding: 30px;
}

.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.password-strength .bar {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 12px;
    transition: background 0.3s;
}

.password-strength .bar.weak {
    background: var(--theme-color);
}

.password-strength .bar.medium {
    background: #ff9800;
}

.password-strength .bar.strong {
    background: #4caf50;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
}

.strength-text.weak { color: var(--theme-color); }
.strength-text.medium { color: #ff9800; }
.strength-text.strong { color: #4caf50; }

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
}

.captcha-img {
    width: 100px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    border: 1px solid #ddd;
    font-style: italic;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 18px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--theme-color);
}

.promo-toggle {
    font-size: 13px;
    color: var(--theme-color);
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
}

.promo-input {
    display: none;
    margin-bottom: 15px;
}

.promo-input.show {
    display: block;
}

.promo-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

/* ==================== Card Form Page ==================== */
.card-form-page {
    background: #f5f5f5;
}

.card-form-container {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.card-form-container h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--theme-color);
}

.card-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-category-tab {
    padding: 8px 18px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.card-category-tab:hover,
.card-category-tab.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-row label .hint {
    font-weight: normal;
    color: #999;
    font-size: 12px;
}

.form-row select,
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-row select:focus,
.form-row input:focus {
    border-color: var(--theme-color);
}

.submit-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

.submit-mode-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submit-mode-tab:first-child {
    border-radius: 6px 0 0 6px;
}

.submit-mode-tab:last-child {
    border-radius: 0 6px 6px 0;
}

.submit-mode-tab.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.submit-mode-content {
    display: none;
}

.submit-mode-content.active {
    display: block;
}

.submit-mode-content textarea {
    width: 100%;
    height: 180px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: monospace;
}

.submit-mode-content textarea:focus {
    border-color: var(--theme-color);
}

.batch-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    line-height: 1.6;
}

.batch-counter {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    padding: 10px;
    background: var(--theme-bg2);
    border-radius: 12px;
}

.batch-counter strong {
    color: var(--theme-color);
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
}

.upload-area:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.upload-area svg {
    margin-bottom: 10px;
}

.agreement-list {
    margin: 20px 0;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.agreement-item input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.agreement-item label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.agreement-item a {
    color: var(--theme-color);
}

.card-submit-error {
    background: var(--theme-bg2);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    color: var(--theme-color);
    font-size: 14px;
    display: none;
}

.card-submit-error.show {
    display: block;
}

/* Card Grid on card listing page */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.card-cell {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.card-cell:hover {
    border-color: var(--theme-border);
    box-shadow: 0 6px 16px var(--theme-a08);
    transform: translateY(-3px);
}

.card-cell .card-cell-img {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 10px;
}

.card-cell .card-cell-img img {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
}

.card-cell .card-cell-name {
    font-size: 14px;
    color: #333;
    padding: 10px;
    font-weight: 500;
}

.card-cell .card-cell-price {
    font-size: 16px;
    color: var(--theme-color);
    font-weight: bold;
    padding-bottom: 10px;
}

.card-cell .card-cell-btn {
    display: block;
    padding: 8px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-light));
    color: #fff;
    font-size: 13px;
    transition: opacity 0.3s;
}

.card-cell .card-cell-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* ==================== User Center ==================== */
.user-center-page {
    background: #f5f5f5;
}

.user-panel {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--theme-bg2), #fff);
    border-radius: 14px;
    border: 1px solid var(--theme-tint);
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
}

.user-detail { flex: 1; }
.user-detail h3 { font-size: 20px; color: #333; margin-bottom: 5px; }
.user-detail .level-badge { display: inline-block; padding: 2px 10px; background: var(--theme-color); color: #fff; border-radius: 14px; font-size: 12px; margin-right: 8px; }
.user-detail .level-text { font-size: 13px; color: #888; }
.user-detail .balance-row { margin-top: 10px; }
.user-detail .balance-row span { font-size: 14px; color: #666; }
.user-detail .balance-row strong { font-size: 22px; color: var(--theme-color); }

.user-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.user-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background: #f9f9f9;
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.user-link-card:hover {
    background: var(--theme-bg);
    border-color: var(--theme-tint);
    transform: translateY(-3px);
}

.user-link-card svg {
    transition: transform 0.3s;
}

.user-link-card:hover svg {
    transform: scale(1.1);
}

.user-link-card span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ==================== Order/Record Tables ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.data-table th {
    background: #f8f8f8;
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.data-table td {
    padding: 12px 15px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.status-processing { color: #ff9800; }
.status-success { color: #4caf50; }
.status-failed { color: var(--theme-color); }

.empty-table {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.empty-table svg {
    margin-bottom: 15px;
}

/* ==================== Profile Form ==================== */
.profile-form {
    max-width: 500px;
}

.profile-form .form-row {
    margin-bottom: 20px;
}

.profile-form .form-row label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
}

.profile-form .form-row input,
.profile-form .form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

.profile-form .form-row input:focus {
    border-color: var(--theme-color);
}

.profile-form .form-row input:disabled {
    background: #f5f5f5;
    color: #999;
}

.profile-form .btn-row {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    padding: 10px 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* ==================== Help / Content Page ==================== */
.help-content {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    border: 1px solid #eee;
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}

.help-content h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.help-content h3 {
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--theme-color);
}

.help-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.help-content .highlight-box {
    background: var(--theme-bg2);
    border: 1px solid var(--theme-tint);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--theme-color);
}

/* Business page */
.business-page .business-category {
    margin-bottom: 30px;
}

.business-page .business-category h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.business-page .business-category h3 .icon {
    margin-right: 8px;
}

.business-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.business-tag {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s ease;
}

.business-tag:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.business-contact-card {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-light));
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.business-contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.business-contact-card p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Announcement list */
.announce-list .announce-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.announce-list .announce-item:last-child {
    border-bottom: none;
}

.announce-item .announce-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.announce-item .announce-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.announce-item .announce-title:hover {
    color: var(--theme-color);
}

.announce-item .announce-desc {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
    line-height: 1.6;
}

/* ==================== Feedback Page ==================== */
.feedback-form textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.feedback-form textarea:focus {
    border-color: var(--theme-color);
}

/* ==================== Flow Steps ==================== */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.flow-step {
    text-align: center;
    position: relative;
}

.flow-step .step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    font-weight: bold;
}

.flow-step .step-arrow {
    position: absolute;
    top: 20px;
    right: -8px;
    color: #ddd;
    font-size: 20px;
}

.flow-step:last-child .step-arrow {
    display: none;
}

.flow-step .step-text {
    font-size: 13px;
    color: #666;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .card-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav-menu ul {
        flex-wrap: wrap;
    }

    .nav-menu > ul > li > a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .banner {
        height: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        min-width: 300px;
        left: 0;
        transform: translateY(10px);
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .float-sidebar {
        display: none;
    }

    .float-bottom-item {
        width: 56px;
        height: 56px;
    }
}
