/* header start */
:root {
    --bg: #f8fafb;
    --surface: #ffffff;
    --primary: #10b981;
    --primary-light: rgba(16, 185, 129, 0.1);
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 16px -2px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

/* Navigation */
.ep-nav {
    font-family: 'Outfit', sans-serif;
}

.ep-nav>ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.ep-nav-item {
    position: relative;
}

.ep-nav-item>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ep-nav-item>a:hover,
.ep-nav-item.is-active>a {
    color: var(--primary);
    background: var(--primary-light);
}

.ep-nav-arrow {
    font-size: 8px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.ep-nav-item:hover>a .ep-nav-arrow {
    transform: rotate(180deg);
}





/* Submenu */
.ep-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 200;
}

.ep-nav-item:hover>.ep-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ep-submenu li a {
    display: block;
    padding: 10px 14px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}

.ep-submenu li a:hover,
.ep-submenu li.is-active>a {
    color: var(--primary);
    background: var(--primary-light);
}

/* Nested submenu */
.ep-submenu-nested {
    top: -8px;
    left: calc(100% + 4px);
}

.ep-submenu .ep-nav-arrow {
    float: right;
    margin-top: 4px;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    z-index: 300;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        position: relative;
    }

    .ep-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100vw;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 8px 0;
    }

    .ep-nav.is-open {
        display: block;
    }

    .ep-nav>ul {
        flex-direction: column;
        gap: 0;
        padding: 0 16px;
    }

    .ep-nav-item>a {
        padding: 12px 8px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .ep-nav-item:last-child>a {
        border-bottom: none;
    }

    /* Mobile submenu - expand via click, not hover */
    .ep-submenu {
        position: static;
        min-width: unset;
        padding: 0;
        margin: 0;
        background: #f8fafb;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .ep-submenu.is-expanded {
        max-height: 2000px;
    }

    .ep-submenu li {
        border-bottom: 1px solid var(--border);
    }

    .ep-submenu li:last-child {
        border-bottom: none;
    }

    .ep-submenu li a {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 0;
    }

    .ep-submenu-nested {
        top: unset;
        left: unset;
    }

    .ep-submenu-nested li a {
        padding-left: 36px;
    }

    .ep-submenu-nested .ep-submenu-nested li a {
        padding-left: 48px;
    }

    .ep-nav-item:hover>.ep-submenu {
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
    }

    .ep-nav-item:hover>.ep-submenu.is-expanded {
        max-height: 2000px;
    }

    .ep-nav-arrow {
        transition: transform 0.3s;
    }

    .ep-nav-arrow.is-rotated {
        transform: rotate(180deg);
    }

    .ep-nav-item:hover>a .ep-nav-arrow {
        transform: none;
    }

    .ep-nav-item:hover>a .ep-nav-arrow.is-rotated {
        transform: rotate(180deg);
    }

    .ep-submenu .ep-nav-arrow {
        float: right;
        margin-top: 4px;
    }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

/* header end */


    
    /* Main */
    main { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }

    /* Page title */
    .page-header {
      margin-bottom: 32px;
    }
    .page-title {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .page-title svg { width: 28px; height: 28px; color: var(--primary); }
    .page-desc {
      color: var(--text-light);
      font-size: 14px;
    }
    .section-tag {
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 4px;
      letter-spacing: 0.5px;
    }

    /* Stats cards */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 32px;
    }
    .stat-card {
      background: var(--surface);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .stat-value {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary);
    }
    .stat-value.orange { color: var(--accent-orange); }
    .stat-label {
      font-size: 12px;
      color: var(--text-light);
      margin-top: 4px;
    }
    .stat-change {
      font-size: 11px;
      margin-top: 8px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .trend-up { color: var(--primary); }
    .trend-down { color: #f43f5e; }

    /* Two column layout */
    .two-col {
      display: grid;
      grid-template-columns: 0.5fr 0.5fr;
      gap: 20px;
      margin-bottom: 32px;
      width: 100%;
    }

    /* Card */
    .card {
      background: var(--surface);
      border-radius: 12px;
      padding: 24px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .card-title {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .card-title svg { width: 20px; height: 20px; }
    .card-badge {
      font-size: 11px;
      padding: 4px 8px;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 4px;
    }
    .chart-container {
      height: 320px;
      position: relative;
      max-width: 100%;
    }

    /* Horizontal bar chart */
    .bar-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .bar-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .bar-label {
      width: 160px;
      font-size: 13px;
      font-weight: 500;
      flex-shrink: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .bar-wrapper {
      flex: 1;
      height: 28px;
      background: var(--bg);
      border-radius: 6px;
      overflow: hidden;
      position: relative;
    }
    .bar-fill {
      height: 100%;
      border-radius: 6px;
      transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-right: 10px;
      min-width: 40px;
    }
    .bar-value {
      font-size: 12px;
      font-weight: 600;
      color: white;
    }
    .bar-count {
      width: 50px;
      text-align: right;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }

    /* Table */
    .data-table {
      width: 100%;
      border-collapse: collapse;
    }
    .data-table th {
      text-align: left;
      padding: 12px 14px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 2px solid var(--border);
      background: var(--bg);
    }
    .data-table td {
      padding: 14px;
      font-size: 13px;
      border-bottom: 1px solid var(--border);
    }
    .data-table tbody tr {
      transition: background 0.2s;
    }
    .data-table tbody tr:hover td { background: var(--primary-light); cursor: pointer; }
    .rank {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      font-weight: 600;
      font-size: 12px;
      color: white;
    }
    .rank-1 { background: #fbbf24; }
    .rank-2 { background: #94a3b8; }
    .rank-3 { background: #cd7c4b; }
    .rank { background: var(--border); color: var(--text-light); }
    .pct-bar {
      width: 80px;
      height: 6px;
      background: var(--border);
      border-radius: 3px;
      overflow: hidden;
    }
    .pct-fill {
      height: 100%;
      background: var(--primary);
      border-radius: 3px;
    }

    /* Highlight row */
    .highlight-row td { background: var(--primary-light); }
    .highlight-row .rank { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }

    /* Responsive */
    @media (max-width: 1024px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .two-col { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      nav { display: none; }
      .stats-grid { grid-template-columns: 1fr; }
      .bar-label { width: 100px; font-size: 12px; }
      .pct-bar { width: 50px; }
      .card { padding: 16px; }
      .chart-container { overflow: hidden; width: 100%; }
      .data-table th { padding: 8px 6px; font-size: 10px; }
      .data-table td { padding: 8px 6px; font-size: 12px; }
      .rank { width: 20px; height: 20px; font-size: 10px; }
    }

    /* Feedback notice */
    .feedback-notice {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 32px;
      padding: 16px 24px;
      background: #fef3c7;
      border-radius: 10px;
      font-size: 14px;
      color: #92400e;
      text-align: center;
      border: 1px solid #fbbf24;
    }
    .feedback-notice svg {
      width: 20px;
      height: 20px;
      color: #f59e0b;
      flex-shrink: 0;
    }
/** footer */

#page-content {
    margin-top: 48px;
}

footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 40px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-inner a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.footer-copy {
    font-size: 13px;
}

.footer-beian {
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.footer-qr-container {
    display: flex;
    gap: 24px;
}

.footer-qr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
    font-size: 12px;
}

.footer-qr-item img {
    max-height: 100px;
    border-radius: 10px;
}

.footer-tech {
    font-size: 12px;
    text-align: right;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-tech {
        text-align: center;
    }

    .footer-qr-item img {
        max-height: 80px;
    }
}