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

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

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

a:hover {
    color: #0a9d6e;
}

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 2px 8px rgba(0, 0, 0, 0.06);
}

.header-top {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #999;
    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: #0a9d6e;
    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: 4px;
    transition: all 0.3s ease;
}

.nav-menu > ul > li > a:hover,
.nav-menu > ul > li > a.active {
    color: #0a9d6e;
    background: rgba(232, 56, 45, 0.05);
}

.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: 8px;
    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: 6px;
    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: #0a9d6e;
    padding: 2px 8px;
    border: 1px solid #ffd6d3;
    border-radius: 3px;
}

.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: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login {
    color: #0a9d6e;
    border: 1px solid #0a9d6e;
}

.btn-login:hover {
    background: #0a9d6e;
    color: #fff;
}

.btn-register {
    background: #0a9d6e;
    color: #fff;
    border: 1px solid #0a9d6e;
}

.btn-register:hover {
    background: #d02d23;
}

/* ==================== Banner ==================== */
.banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #1a1a2e;
}

.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: 560px;
    object-fit: contain;
    display: block;
    background: #1a1a2e;
}

.banner-slide.banner-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide.banner-placeholder-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-slide.banner-placeholder-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 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: #0a9d6e;
    width: 30px;
    border-radius: 6px;
}

/* ==================== 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: #0a9d6e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    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: #0a9d6e;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ==================== Stats ==================== */
.stats {
    background: #fff;
    padding: 30px 0;
}

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

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 8px;
    border: 1px solid #ffe0de;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(232, 56, 45, 0.12);
    border-color: #ffbcb6;
}

.stat-num {
    font-size: 32px;
    font-weight: bold;
    color: #0a9d6e;
    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: 8px;
    overflow-x: auto;
}

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

.card-tab:hover {
    background: #fff5f5;
}

.card-tab.active {
    background: linear-gradient(135deg, #0a9d6e 0%, #ff6b5b 100%);
    border-color: #0a9d6e;
}

.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: 8px;
    padding: 20px;
    min-height: 300px;
}

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

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

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

.card-item:hover {
    border-color: #ffbcb6;
    box-shadow: 0 6px 16px rgba(232, 56, 45, 0.1);
    transform: translateY(-4px);
}

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

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

.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: 8px;
}

.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: #0a9d6e;
    font-weight: bold;
}

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

/* ==================== Features ==================== */
.features {
    padding: 50px 0;
    background: #fff;
}

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

.section-title h2 {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #0a9d6e;
    border-radius: 2px;
}

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

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #ffe8e6;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(232, 56, 45, 0.12);
}

.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: 50px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 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: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.why-item:hover {
    border-color: #ffbcb6;
    box-shadow: 0 8px 24px rgba(232, 56, 45, 0.08);
    transform: translateY(-4px);
}

.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: #0a9d6e;
}

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

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

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

.faq-item:hover {
    border-color: #ffd6d3;
    box-shadow: 0 2px 10px rgba(232, 56, 45, 0.06);
}

.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: #fff8f7;
}

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

.faq-toggle {
    margin-left: auto;
    font-size: 22px;
    color: #0a9d6e;
    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: #0a9d6e !important;
    font-weight: 600;
}

/* ==================== Footer ==================== */
.footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

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

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

.footer-nav ul li a {
    color: #aaa;
    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: #888;
}

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

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

.footer-notice {
    background: #333;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

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

.footer-notice p {
    font-size: 13px;
    color: #aaa;
    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: 8px 12px;
    background: #333;
    border-radius: 6px;
    min-width: 90px;
}

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

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

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

.footer-links span {
    color: #888;
}

.footer-links a {
    color: #aaa;
}

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

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.footer-copyright p {
    font-size: 13px;
    color: #888;
    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: #0a9d6e;
}

.help-icon:hover {
    background: #d02d23;
}

.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: 4px;
    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: 8px;
    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: 4px;
    transition: all 0.3s ease;
}

.float-submenu a:hover {
    background: #fff5f5;
    color: #0a9d6e;
}

/* ==================== 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: rgba(232, 56, 45, 0.9);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.float-bottom-item:hover {
    background: rgba(232, 56, 45, 1);
}

.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: 8px;
    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: #0a9d6e;
    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: #0a9d6e;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.qq-btn:hover {
    background: #d02d23;
    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: #0a9d6e;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #0a9d6e;
    border-radius: 4px;
}

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

.user-level {
    display: inline-block;
    padding: 2px 10px;
    background: #0a9d6e;
    color: #fff;
    border-radius: 3px;
    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: 6px;
    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: #fff5f5;
    color: #0a9d6e;
}

/* ==================== 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: 8px;
    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 #0a9d6e;
    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: 4px;
    transition: all 0.2s ease;
}

.sidebar-box ul li a:hover,
.sidebar-box ul li a.active {
    background: #fff5f5;
    color: #0a9d6e;
}

/* ==================== 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, #0a9d6e, #ff6b5b);
    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: #0a9d6e;
    font-weight: 600;
}

.login-mode span.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #0a9d6e;
}

.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: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #0a9d6e;
    box-shadow: 0 0 0 3px rgba(232, 56, 45, 0.08);
}

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

.phone-row input {
    flex: 1;
}

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

.btn-sms:hover {
    background: #d02d23;
}

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

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

.btn-submit:hover {
    background: linear-gradient(135deg, #d02d23, #e8584a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 56, 45, 0.3);
}

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

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

.login-extra a:hover {
    color: #0a9d6e;
}

.login-notice {
    margin-top: 20px;
    padding: 12px;
    background: #fff8f7;
    border-radius: 6px;
    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: #fff5f5;
}

.error-msg {
    color: #0a9d6e;
    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, #0a9d6e, #ff6b5b);
    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: 2px;
    transition: background 0.3s;
}

.password-strength .bar.weak {
    background: #0a9d6e;
}

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

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

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

.strength-text.weak { color: #0a9d6e; }
.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: 4px;
    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: #0a9d6e;
}

.promo-toggle {
    font-size: 13px;
    color: #0a9d6e;
    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: 6px;
    font-size: 14px;
    outline: none;
}

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

.card-form-container {
    background: #fff;
    border-radius: 8px;
    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 #0a9d6e;
}

.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: #0a9d6e;
    color: #fff;
    border-color: #0a9d6e;
}

.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: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-row select:focus,
.form-row input:focus {
    border-color: #0a9d6e;
}

.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: #0a9d6e;
    color: #fff;
    border-color: #0a9d6e;
}

.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: 6px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: monospace;
}

.submit-mode-content textarea:focus {
    border-color: #0a9d6e;
}

.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: #fff8f7;
    border-radius: 6px;
}

.batch-counter strong {
    color: #0a9d6e;
}

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

.upload-area:hover {
    border-color: #0a9d6e;
    color: #0a9d6e;
}

.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: #0a9d6e;
}

.card-submit-error {
    background: #fff8f7;
    border: 1px solid #ffbcb6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    color: #0a9d6e;
    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: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.card-cell:hover {
    border-color: #ffbcb6;
    box-shadow: 0 6px 16px rgba(232, 56, 45, 0.08);
    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: #0a9d6e;
    font-weight: bold;
    padding-bottom: 10px;
}

.card-cell .card-cell-btn {
    display: block;
    padding: 8px;
    background: linear-gradient(135deg, #0a9d6e, #ff6b5b);
    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: 8px;
    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, #fff8f7, #fff);
    border-radius: 8px;
    border: 1px solid #ffe0de;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0a9d6e;
    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: #0a9d6e; color: #fff; border-radius: 3px; 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: #0a9d6e; }

.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: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.user-link-card:hover {
    background: #fff5f5;
    border-color: #ffe0de;
    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: 8px;
    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: #0a9d6e; }

.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: 6px;
    font-size: 14px;
    outline: none;
}

.profile-form .form-row input:focus {
    border-color: #0a9d6e;
}

.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: 6px;
    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: 8px;
    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 #0a9d6e;
}

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

.help-content .highlight-box {
    background: #fff8f7;
    border: 1px solid #ffe0de;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #0a9d6e;
}

/* 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: #0a9d6e;
    color: #fff;
    border-color: #0a9d6e;
}

.business-contact-card {
    background: linear-gradient(135deg, #0a9d6e, #ff6b5b);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    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: #0a9d6e;
}

.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: 6px;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.feedback-form textarea:focus {
    border-color: #0a9d6e;
}

/* ==================== 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, #0a9d6e, #ff6b5b);
    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;
    }
}
