
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

body.night-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header-container {
    position: relative;
    z-index: 1000;
}

.night-mode .header {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-family: Source Han Sans, Source Han Sans;
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
    line-height: 18px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b35;
}

.night-mode .nav-links a {
    color: #ffffff;
}

.night-mode .nav-links a:hover,
.night-mode .nav-links a.active {
    color: #ff6b35;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.nav-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    max-width: 600px;
    margin-left: auto;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 288px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 19px 19px 19px 19px;
    padding: 8px 15px;
    border: none;
    gap: 10px;
    box-sizing: border-box;
}

.night-mode .search-bar {
    background: #404040;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    padding: 5px 10px;
    font-size: 14px;
}

.night-mode .search-bar input {
    color: #e0e0e0;
}

.search-bar input::placeholder {
    color: #666;
}

.night-mode .search-bar input::placeholder {
    color: #888;
}

.search-icon-img {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    object-fit: contain;
}

.search-extra-icon {
    color: #999;
    font-size: 14px;
    cursor: pointer;
}

/*.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #999999;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.nav-icon-btn:hover {
    color: #ff6b35;
}

.night-mode .nav-icon-btn {
    color: #ffffff;
}

.nav-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.user-menu-wrapper {
    position: relative;
}

.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    color: #ffffff;
}

.user-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}*/

.night-mode .user-icon {
    background: rgba(255, 255, 255, 0.15);
}

.night-mode .user-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

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

.user-dropdown-menu li {
    margin: 0;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.user-dropdown-menu a:hover {
    background: #f5f5f5;
    color: #ff6b35;
}

.night-mode .user-dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.night-mode .user-dropdown-menu a {
    color: #e0e0e0;
}

.night-mode .user-dropdown-menu a:hover {
    background: #404040;
    color: #ff6b35;
}

.main-content {
    min-height: calc(100vh - 195px);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.night-mode .card {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #ffffff;
}

.night-mode .loading {
    background: #1a1a1a;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes messageFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes messageFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes confirmSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes confirmSlideOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

#footer-container {
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.night-mode ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.footer {
    position: relative;
    height: 118px;
    background: #191E22;
    border-radius: 0px 0px 0px 0px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.footer-info {
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-item {
    white-space: nowrap;
    color: white;
}

.info-separator {
    color: white;
    margin: 0 5px;
}

.footer-bottom-line {
    height: 2px;
    background: #FF69B4;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.night-mode .footer {
    background: #0f1214;
}

.night-mode .footer-main {
    background: transparent;
}

.night-mode .info-item {
    color: #e0e0e0;
}

.night-mode .info-separator {
    color: #e0e0e0;
}

.section-title {
    font-size: 20px;
    padding-left: 20px;
    padding-top: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.night-mode .section-title {
    color: #e0e0e0;
}

.page-container {
    padding: 40px 0;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.night-mode .page-container {
    background: #1a1a1a;
}

.page-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.night-mode .page-card {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.back-to-top:hover {
    background: #e55a2b;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.night-mode .back-to-top {
    background: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.night-mode .back-to-top:hover {
    background: #e55a2b;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}
