/* ============================================
   旅游综合管理系统 - 样式表
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Navbar */
.navbar { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; height: 56px; }
.navbar-brand { color: #fff; font-size: 20px; font-weight: bold; text-decoration: none; margin-right: 30px; white-space: nowrap; }
.nav-menu { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; flex: 1; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { color: rgba(255,255,255,0.9); text-decoration: none; padding: 18px 14px; display: block; font-size: 14px; transition: 0.2s; white-space: nowrap; }
.nav-menu > li > a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 160px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 0 0 4px 4px; z-index: 200; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a { color: #333; padding: 10px 16px; display: block; text-decoration: none; font-size: 14px; }
.dropdown-menu a:hover { background: #e8f0fe; color: #1a73e8; }
.dropdown:hover .dropdown-menu { display: block; }
.nav-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.user-info { font-size: 13px; opacity: 0.9; }
.btn-login, .btn-logout { color: #fff; text-decoration: none; padding: 6px 16px; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; font-size: 13px; transition: 0.2s; }
.btn-login:hover, .btn-logout:hover { background: rgba(255,255,255,0.2); }
.nav-right a { color: #fff; text-decoration: none; }

/* Hamburger Menu Button */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: #0d47a1; z-index: 99; overflow-y: auto; padding: 12px 0; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 20px; color: rgba(255,255,255,0.9); text-decoration: none; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a:hover { background: rgba(255,255,255,0.1); }
.mobile-nav .mobile-dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: rgba(255,255,255,0.9); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; }
.mobile-nav .mobile-dropdown-header:hover { background: rgba(255,255,255,0.1); }
.mobile-nav .mobile-dropdown-header .arrow { transition: 0.3s; }
.mobile-nav .mobile-dropdown-header .arrow.open { transform: rotate(180deg); }
.mobile-nav .mobile-submenu { display: none; background: rgba(0,0,0,0.15); }
.mobile-nav .mobile-submenu.open { display: block; }
.mobile-nav .mobile-submenu a { padding-left: 36px; font-size: 14px; }

/* Main Content */
.main-content { padding: 24px 15px; min-height: calc(100vh - 56px - 60px); }

/* Cards */
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; transition: 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.stat-card .number { font-size: 32px; font-weight: bold; color: #1a73e8; }
.stat-card .label { color: #666; font-size: 14px; margin-top: 4px; }
.stat-card .icon { font-size: 36px; margin-bottom: 8px; }

/* Module Grid */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.module-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-decoration: none; color: #333; transition: 0.2s; display: block; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.module-card .module-icon { font-size: 32px; margin-bottom: 8px; }
.module-card h3 { font-size: 16px; margin-bottom: 6px; }
.module-card p { color: #666; font-size: 13px; line-height: 1.5; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.table th { background: #f8f9fa; font-weight: 600; color: #555; }
.table tr:hover { background: #f8f9ff; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.table-wrap table { min-width: 600px; }

/* Buttons */
.btn { display: inline-block; padding: 8px 18px; border-radius: 4px; text-decoration: none; font-size: 14px; border: none; cursor: pointer; transition: 0.2s; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; }
.btn-success { background: #34a853; color: #fff; }
.btn-success:hover { background: #2d8f47; }
.btn-warning { background: #fbbc04; color: #333; }
.btn-warning:hover { background: #e5ab00; }
.btn-danger { background: #ea4335; color: #fff; }
.btn-danger:hover { background: #c5221f; }
.btn-secondary { background: #5f6368; color: #fff; }
.btn-secondary:hover { background: #4a4d52; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; color: #444; }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; transition: 0.2s; }
.form-control:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-inline { display: flex; gap: 8px; align-items: center; }
textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control { appearance: auto; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.alert-danger { background: #fce8e6; color: #c5221f; border: 1px solid #f5c6cb; }
.alert-warning { background: #fef7e0; color: #b06000; border: 1px solid #fce8b2; }
.alert-info { background: #e8f0fe; color: #1a73e8; border: 1px solid #d2e3fc; }

/* Badge */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-primary { background: #e8f0fe; color: #1a73e8; }
.badge-success { background: #e6f4ea; color: #137333; }
.badge-danger { background: #fce8e6; color: #c5221f; }
.badge-warning { background: #fef7e0; color: #b06000; }
.badge-info { background: #e8f0fe; color: #1967d2; }
.badge-secondary { background: #f1f3f4; color: #5f6368; }

/* Pagination */
.pagination { display: flex; list-style: none; gap: 4px; justify-content: center; margin-top: 16px; }
.page-item { }
.page-link { display: block; padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #1a73e8; font-size: 14px; }
.page-item.active .page-link { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.page-item.disabled .page-link { color: #999; cursor: not-allowed; }

/* Login Page */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #1a73e8, #0d47a1); }
.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); width: 400px; max-width: 92%; }
.login-box h1 { text-align: center; margin-bottom: 8px; font-size: 22px; color: #333; }
.login-box .subtitle { text-align: center; color: #666; margin-bottom: 24px; font-size: 14px; }
.login-box .form-group { margin-bottom: 18px; }
.login-box label { font-weight: 600; color: #555; }
.login-box .btn { width: 100%; padding: 12px; font-size: 16px; }

/* Search / Filter */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search-bar .form-control { max-width: 300px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }

/* Footer */
.footer { background: #fff; border-top: 1px solid #eee; padding: 16px 0; text-align: center; color: #999; font-size: 13px; margin-top: 24px; }

/* Responsive */
/* 用户管理 - 待审核行高亮 */
.row-pending { background: #fffcf0 !important; }
.row-pending:hover { background: #fff8e0 !important; }
.row-disabled { opacity: 0.6; }
.row-disabled:hover { opacity: 0.8; }

/* 游客个人中心 */
.greeting-card { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; border-radius: 12px; padding: 32px; margin-bottom: 24px; }
.greeting-card h1 { font-size: 24px; margin-bottom: 4px; }
.greeting-card p { opacity: 0.9; font-size: 14px; }

@media (max-width: 768px) {
    .navbar .container { height: auto; padding: 10px 15px; }
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card .number { font-size: 26px; }
    .module-grid { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: flex-start; }
    .toolbar .btn { width: 100%; text-align: center; }
    .toolbar > div { width: 100%; }
    .toolbar > div .btn { flex: 1; }
    .search-bar .form-control { max-width: 100%; }
    .search-bar { flex-direction: column; }
    .search-bar .btn { width: 100%; }
    .login-box { padding: 28px 20px; }
    .login-box h1 { font-size: 20px; }
    .main-content { padding: 16px 12px; }
    .card-header { padding: 14px 16px; font-size: 15px; }
    .card-body { padding: 16px; }
    .table th, .table td { padding: 8px 10px; font-size: 13px; }
    .greeting-card { padding: 24px 20px; }
    .greeting-card h1 { font-size: 20px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .number { font-size: 22px; }
    .stat-card .icon { font-size: 28px; }
    .stat-card .label { font-size: 12px; }
    .navbar-brand { font-size: 16px; margin-right: 16px; }
    .nav-right { gap: 6px; }
    .btn-login, .btn-logout { padding: 4px 10px; font-size: 12px; }
    .user-info { display: none; }
    .table th, .table td { padding: 6px 8px; font-size: 12px; }
    .btn { padding: 6px 14px; font-size: 13px; }
    .btn-sm { padding: 3px 8px; font-size: 11px; }
    h2 { font-size: 18px; }
    .pagination { gap: 2px; }
    .page-link { padding: 4px 10px; font-size: 13px; }
}

@media (max-width: 360px) {
    .stats-grid { grid-template-columns: 1fr; }
    .navbar-brand { font-size: 14px; margin-right: 10px; }
}
