/* 简约绿白风格样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* 头部导航 */
.header {
    background: #fff;
    border-bottom: 2px solid #005826;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: #005826;
}

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

.nav-links a {
    color: #666;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #005826;
    border-bottom-color: #005826;
}

/* Hero区域 */
.hero {
    background: #005826;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero p {
    font-size: 15px;
    opacity: 0.9;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 页面标题 */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

/* 校区网格 */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.campus-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.2s;
}

.campus-card:hover {
    border-color: #005826;
    background: #e8f5e9;
}

.campus-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.campus-card .count {
    color: #666;
    font-size: 13px;
}

/* 餐厅网格 */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.restaurant-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.2s;
    display: block;
}

.restaurant-card:hover {
    border-color: #005826;
    box-shadow: 0 4px 12px rgba(0, 88, 38, 0.1);
}

.restaurant-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.restaurant-image-placeholder {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

.restaurant-content {
    padding: 16px;
}

.restaurant-campus {
    display: inline-block;
    background: #e8f5e9;
    color: #005826;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.restaurant-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.restaurant-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.score-badge {
    background: #005826;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
}

.score-label {
    font-size: 13px;
    color: #666;
}

.restaurant-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 雷达图容器 */
.radar-chart-container {
    width: 100%;
    height: 160px;
    margin-bottom: 12px;
}

.radar-chart {
    width: 100%;
    height: 100%;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

/* 按钮 */
.btn {
    display: inline-block;
    background: #005826;
    color: #fff;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #00441c;
}

.btn-secondary {
    background: #fff;
    color: #005826;
    border: 1px solid #005826;
}

.btn-secondary:hover {
    background: #e8f5e9;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.discover-btn {
    text-align: center;
    margin-bottom: 48px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #005826;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* 表格 */
.table-container {
    overflow-x: auto;
    margin-bottom: 32px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #005826;
    color: #fff;
}

thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

tbody tr:hover {
    background: #f8f8f8;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.pagination a:hover {
    background: #e8f5e9;
    border-color: #005826;
}

.pagination .current {
    background: #005826;
    color: #fff;
    border-color: #005826;
}

/* 餐厅详情页 */
.restaurant-detail {
    max-width: 900px;
    margin: 0 auto;
}

.restaurant-header {
    margin-bottom: 32px;
}

.restaurant-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.restaurant-header .campus {
    display: inline-block;
    background: #e8f5e9;
    color: #005826;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 3px;
}

.restaurant-header .address {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.restaurant-header .phone {
    color: #666;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.detail-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.score-name {
    font-size: 14px;
    color: #666;
}

.score-value {
    font-size: 14px;
    font-weight: 600;
    color: #005826;
}

.radar-detail {
    width: 100%;
    height: 300px;
}

/* 评论区 */
.comment-list {
    margin-top: 16px;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-user {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.login-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.login-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.login-footer a {
    color: #005826;
}

/* 管理后台 */
.admin-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 220px;
    background: #f8f8f8;
    border-right: 1px solid #e5e5e5;
    padding: 24px 0;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: #e8f5e9;
    color: #005826;
    border-left: 3px solid #005826;
}

.admin-content {
    flex: 1;
    padding: 32px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 24px;
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 600;
    color: #005826;
}

/* 提示信息 */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 页脚 */
.footer {
    background: #005826;
    color: #fff;
    padding: 32px 20px;
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 15px;
        gap: 10px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .nav-links {
        width: 100%;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 0;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .container {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 16px 0;
    }

    .admin-nav {
        display: flex;
        overflow-x: auto;
    }

    .admin-nav li a {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .admin-nav li a:hover,
    .admin-nav li a.active {
        border-left: none;
        border-bottom-color: #005826;
    }

    .admin-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .campus-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
