/* Global Layout */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --purple-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --warm-gradient: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    --cool-gradient: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    --bg-color: #f8f9fc;
    --sidebar-bg: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --hover-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

body {
    background-color: var(--bg-color);
    font-family: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 12px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.01);
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 22px;
    color: #667eea;
}

.nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b2bec3;
    padding: 16px 20px 6px;
    font-weight: 700;
}

.nav-item {
    padding: 2px 10px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f1f2f6;
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.nav-link i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.badge-coming-soon-nav {
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #dfe6e9;
    color: #636e72;
    margin-left: auto;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        padding: 26px 36px;
    }
    .sidebar-header {
        height: 60px;
        padding: 0 18px;
    }
    .logo-text {
        font-size: 17px;
    }
    .logo-icon {
        font-size: 20px;
    }
    .nav-section-title {
        padding: 14px 18px 6px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        padding: 22px 26px;
    }
    .nav-item {
        padding: 1px 8px;
    }
    .nav-link {
        padding: 7px 10px;
        font-size: 12px;
    }
    .nav-link i {
        font-size: 15px;
        width: 16px;
    }
    .nav-section-title {
        font-size: 9px;
        letter-spacing: 0.6px;
        padding: 12px 16px 5px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 190px;
    }
    .main-content {
        margin-left: 190px;
        padding: 20px 18px;
    }
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 30px 50px;
    min-height: 100vh;
}

.main-content.no-global-sidebar {
    margin-left: 0;
    padding: 26px 32px;
}

@media (max-width: 992px) {
    .main-content.no-global-sidebar {
        padding: 22px 18px;
    }
    .main-content.no-global-sidebar .content-card {
        padding: 22px;
    }
}

@media (max-width: 576px) {
    .main-content.no-global-sidebar {
        padding: 18px 12px;
    }
    .main-content.no-global-sidebar .content-card {
        padding: 18px;
    }
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 60px;
    margin-bottom: 30px;
    gap: 20px;
}

.notice-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.notice-link:hover {
    color: #6c5ce7;
    transform: translateY(-1px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--purple-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(161, 140, 209, 0.3);
}

/* Feature Cards */
.home-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f1ff 60%, #f3f7ff 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.hero-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    gap: 16px;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 64px) / 5);
    overflow-x: auto;
    padding: 6px 4px 16px 4px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.feature-grid::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1200px) {
    .feature-grid {
        grid-auto-columns: 240px;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-auto-columns: 220px;
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-auto-columns: 200px;
    }
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    height: 120px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}

.feature-card .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-card .card-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c5ce7;
    font-size: 14px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

 

/* Admin & Dashboard Styles */
.content-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: none;
    padding: 30px;
}

.page-header-title {
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.admin-sidebar-link {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: 2px;
}
.admin-sidebar-link:hover {
    background: #f1f2f6;
    color: var(--text-primary);
}
.admin-sidebar-link.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.quick-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.quick-card h5 {
    font-weight: 700;
    margin-bottom: 6px;
}

.quick-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.quick-primary .quick-icon {
    background: var(--primary-gradient);
}

.quick-purple .quick-icon {
    background: var(--purple-gradient);
}

.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-card .stat-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.stat-card.primary .stat-icon {
    background: var(--primary-gradient);
}

.stat-card.purple .stat-icon {
    background: var(--purple-gradient);
}

.stat-card.warm .stat-icon {
    background: var(--warm-gradient);
}

.stat-card.cool .stat-icon {
    background: var(--cool-gradient);
}

/* Card Styles */
.card-gradient-primary {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.1);
}
.card-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--primary-gradient);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
    z-index: 0;
}
.card-gradient-primary .icon-box {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.card-gradient-purple {
    background: #fff;
    border: 1px solid rgba(161, 140, 209, 0.1);
}
.card-gradient-purple::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--purple-gradient);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
    z-index: 0;
}
.card-gradient-purple .icon-box {
    background: rgba(161, 140, 209, 0.1);
    color: #a18cd1;
}

.card-small {
    background: #fff;
}
.card-small .icon-box {
    background: #f1f2f6;
    color: #636e72;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: #fd79a8;
}

/* Hot List */
.hot-list-container {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

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

.hot-item:hover {
    color: #6c5ce7;
}

.hot-index {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1f2f6;
    color: #999;
    font-weight: 700;
    font-size: 12px;
    margin-right: 12px;
}

.hot-index.top {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.hot-tag {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

/* Guide Cards */
.guide-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.guide-card:hover {
    transform: translateY(-3px);
}

.guide-thumb {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.guide-thumb-blue {
    background: rgba(116, 185, 255, 0.1);
    color: #0984e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-thumb-purple {
    background: rgba(162, 155, 254, 0.1);
    color: #6c5ce7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Coming Soon Badge */
.badge-coming-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.05);
    color: #b2bec3;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 1;
}

.feature-card.coming-soon {
    opacity: 0.8;
}
