/* 基础样式 */
body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    padding: 2rem;
    text-align: center;
}

.logo-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-badge .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D4AF37;
}

.login-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.login-subtitle {
    color: #4b5563;
    margin: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #1f2937;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.2);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E5E7EB;
}

.divider-text {
    background-color: white;
    padding: 0 1rem;
    color: #6B7280;
    font-size: 0.875rem;
    position: relative;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-button i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.social-wechat {
    color: #10B981;
}

.social-whatsapp {
    color: #25D366;
}

.social-facebook {
    color: #1877F2;
}

/* 首页样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-button.primary {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #1f2937;
}

.hero-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
    line-height: 1.6;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4b5563;
    font-size: 0.875rem;
}

/* 仪表板页面样式 */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #4b5563;
    font-size: 1rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card.enhanced {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-trend.positive {
    color: #10B981;
}

.stat-trend.negative {
    color: #EF4444;
}

.stat-trend i {
    margin-right: 0.25rem;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-action-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #D1D5DB;
    background-color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-action-btn.active,
.chart-action-btn:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.chart-placeholder {
    padding: 2rem;
    text-align: center;
}

.chart-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.chart-icon {
    font-size: 3rem;
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.chart-text {
    color: #6B7280;
    margin: 0;
}

.activity-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-list {
    padding: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

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

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.activity-type {
    color: #3b82f6;
    font-weight: 500;
}

.activity-time {
    color: #6B7280;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    color: white;
    font-weight: 500;
}

.user-name {
    color: #4B5563;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 120px;
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: left;
    color: #4B5563;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #F3F4F6;
}

.language-toggle {
    background-color: #F3F4F6;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle:hover {
    background-color: #E5E7EB;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link.active {
    color: #3b82f6;
    font-weight: bold;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background-color: #2563eb;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.card-content {
    color: #4b5563;
    line-height: 1.6;
}

/* 权限提示 */
.permission-notice {
    margin: 1rem;
    padding: 1rem;
}

/* 页脚 */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-top: 2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 管理后台布局 */
.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.flex-col {
    flex-direction: column;
}

/* 顶栏样式 */
.bg-white {
    background-color: #ffffff;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.container {
    width: 100%;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.h-16 {
    height: 4rem;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.text-white {
    color: #ffffff;
}

.font-bold {
    font-weight: 700;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-gray-900 {
    color: #111827;
}

.hidden {
    display: none;
}

.md\:flex {
    display: flex;
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.text-gray-600 {
    color: #4b5563;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

.relative {
    position: relative;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.w-48 {
    width: 12rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.z-50 {
    z-index: 50;
}

.rounded-md {
    border-radius: 0.375rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.block {
    display: block;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-700 {
    color: #374151;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.w-full {
    width: 100%;
}

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

.border-b {
    border-bottom-width: 1px;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.overflow-y-auto {
    overflow-y: auto;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.75rem * var(--tw-space-x-reverse));
    margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-gray-600 {
    color: #4b5563;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.md\:block {
    display: block;
}

.w-64 {
    width: 16rem;
}

.border-r {
    border-right-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.p-4 {
    padding: 1rem;
}

.flex-1 {
    flex: 1 1 0%;
}

.border-t {
    border-top-width: 1px;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.flex-col {
    flex-direction: column;
}

.md\:flex-row {
    flex-direction: row;
}

.mt-4 {
    margin-top: 1rem;
}

.md\:mt-0 {
    margin-top: 0px;
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.text-gray-600 {
    color: #4b5563;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.border-yellow-200 {
    border-color: #fef08a;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.text-yellow-400 {
    color: #facc15;
}

.mt-2 {
    margin-top: 0.5rem;
}

.text-yellow-700 {
    color: #a16207;
}

.font-medium {
    font-weight: 500;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #4b5563;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.stat-card.enhanced {
    border-top: 4px solid #3b82f6;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.card-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.feature-description {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 权限提示 */
.permission-notice {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-icon {
    color: #f59e0b;
    font-size: 1.25rem;
}

.notice-text h3 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 1rem;
}

.notice-text p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
}

.contact-wechat {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .permission-notice {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
}