/* Internetware 2025 - 主样式文件 */

/* CSS 变量定义 */
:root {
  --primary: #1e40af;
  --bg: #f8fafc;
  --sidebar: #1e3a8a;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --hover: #3b82f6;
}

/* 重置样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* 布局样式 */
.container {
  display: flex;
  min-height: calc(100vh - 64px);
  width: 100%;
  overflow-x: hidden;
}

.main {
  flex: 1;
  padding: 24px;
  margin-left: 280px;
  transition: margin-left 0.3s;
}

/* 内容区域样式 */
.content-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.content-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.content-header p {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card ul {
  margin: 12px 0;
  padding-left: 20px;
}

.card li {
  margin: 4px 0;
}

/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 18px;
  color: var(--muted);
}

/* 折叠状态下的主内容区 */
.sidebar.collapsed ~ .main {
  margin-left: 60px;
}
