/**
 * 商务专业风格 - CSS美化框架
 * 特点：正式稳重、信任感强、专业可靠
 * 时间：2025-11-07
 */

/* ===================================
   颜色变量定义（专业商务色系）
   =================================== */

:root {
  /* 主色系 - 深蓝/专业蓝 */
  --primary-color: #1a365d;        /* 深蓝 */
  --primary-hover: #0f1f3a;        /* 更深蓝 */
  --primary-light: #eef2f9;        /* 深蓝浅色 */
  
  /* 辅助色 */
  --accent-color: #2d5a8c;         /* 专业蓝 */
  --success-color: #27743f;        /* 深绿 */
  --warning-color: #8b5a00;        /* 深棕 */
  --danger-color: #8b1a1a;         /* 深红 */
  
  /* 中性色 - 灰色体系 */
  --text-primary: #1f2937;         /* 深灰（主文本） */
  --text-secondary: #4b5563;       /* 中灰（次文本） */
  --text-disabled: #9ca3af;        /* 浅灰（禁用） */
  --border-color: #d1d5db;         /* 边框灰 */
  --bg-light: #f3f4f6;             /* 浅灰背景 */
  --bg-white: #ffffff;             /* 纯白 */
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%);
  --gradient-dark: linear-gradient(180deg, #0f1f3a 0%, #1a365d 100%);
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* 圆角 */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 6px;
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
}

/* ===================================
   全局样式
   =================================== */

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: #fafbfc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-color);
}

/* ===================================
   按钮样式
   =================================== */

button, .btn, input[type="button"], input[type="submit"] {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

button:active, .btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ===================================
   导航栏
   =================================== */

.nav {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  height: 76px;
  line-height: 74px;
}

.nav a {
  color: white !important;
  padding: 0 !important;
  display: block;
  height: 74px;
  line-height: 74px;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: white !important;
  border-bottom-color: white;
}

.nav li.home a {
  border-bottom-color: white;
}

/* ===================================
   卡片和容器
   =================================== */

.card, .container, .frame-1 {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.card:hover, .frame-1:hover {
  box-shadow: var(--shadow-md);
}

/* ===================================
   标题
   =================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin: var(--spacing-md) 0;
}

h1 {
  font-size: 28px;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: var(--spacing-md);
}

h2 {
  font-size: 22px;
  color: var(--primary-color);
}

h3 {
  font-size: 18px;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* ===================================
   表格
   =================================== */

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--gradient-primary);
  color: white;
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

tbody tr:hover {
  background: var(--primary-light);
}

tbody tr:nth-child(even) {
  background: var(--bg-light);
}

/* ===================================
   表单
   =================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  background: white;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: white;
}

/* ===================================
   页脚
   =================================== */

.footer {
  background: var(--gradient-dark);
  color: #e5e7eb;
  padding: 40px 24px;
}

.footer a {
  color: #e5e7eb;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

.footer h4, .footer h5 {
  color: white;
  margin: 0 0 12px 0;
  font-weight: 700;
}

/* ===================================
   分页
   =================================== */

.pagination, .pagelist {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span,
.pagelist a, .pagelist span {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  font-weight: 500;
}

.pagination a:hover, .pagelist a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

.pagination .current, .pagination .active,
.pagelist .current, .pagelist .active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ===================================
   响应式
   =================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 22px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  table {
    font-size: 13px;
  }
  
  th, td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  button, .btn {
    width: 100%;
    padding: 12px 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px;
  }
}
