/* ========================================
   老刀AI工具箱 - 主样式表（重组版）
   ========================================
   架构：
   1. CSS 变量定义
   2. 全局基础样式
   3. 通用组件样式
   4. 页面专用样式
   5. 响应式样式
======================================== */

/* ========================================
   1. CSS 变量定义
======================================== */
:root {
  /* 暖色调主题变量 */
  --primary-color: #ff9e7d;
  --primary-hover-color: #ff7f50;
  --secondary-color: #e6735c;
  --background-color: #fdf6f0;
  --card-background: #fffaf5;
  --border-color: #f5e4da;
  --text-color: #333;
  --text-secondary: #7a6259;
  --header-background: #ffefe6;
  --footer-background: #ffefe6;
  --success-color: #a3d9a5;
  --warning-color: #ffd591;
  --error-color: #ffbbcc;
  --box-shadow-light: rgba(255, 158, 125, 0.2);
  --box-shadow-medium: rgba(255, 158, 125, 0.3);
  --box-shadow-dark: rgba(255, 158, 125, 0.4);

  /* 间距变量 */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;

  /* 圆角变量 */
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-16: 16px;

  /* 字号变量 */
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.3rem;

  /* 补充变量 */
  --background-color-soft: #ffefe6;
  --text-color-secondary: #7a6259;

  /* 灰阶 & 边框 */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d1d1d1;
  --gray-400: #b3b3b3;
  --gray-500: #8c8c8c;
  --gray-600: #666;
  --gray-700: #444;
  --gray-800: #333;
  --gray-900: #1a1a1a;
  --border-light: var(--gray-200);
  --border-dark: var(--gray-400);

  /* 响应式断点 */
  --screen-sm: 600px;
  --screen-md: 900px;
  --screen-lg: 1200px;
}

/* ========================================
   2. 全局基础样式
======================================== */
/* 基础样式重置 */
* {
  box-sizing: border-box;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* 布局结构 */
.ant-layout {
  min-height: 100vh;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
}

/* 头部导航 */
.ant-layout-header {
  background: var(--header-background);
  height: 56px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px var(--box-shadow-light);
  padding: 0 32px;
  z-index: 10;
}

.ant-pro-header-logo {
  color: var(--secondary-color);
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-right: 36px;
  display: flex;
  align-items: center;
}

.ant-pro-header-logo-text {
  margin-left: 4px;
}

.ant-pro-header-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ant-pro-header-menu-item {
  color: #8b7367;
  font-size: 16px;
  margin-left: 24px;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
}

.ant-pro-header-menu-item.active,
.ant-pro-header-menu-item:hover {
  background: #ffe8d6;
  color: var(--secondary-color);
}

/* 主要内容区域 */
.ant-layout-content {
  padding: 32px 48px 0 48px;
  flex: 1;
  min-height: calc(100vh - 56px - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 页脚样式 */
.ant-layout-footer {
  background: var(--footer-background);
  color: #8b7367;
  text-align: center;
  padding: 18px 0 18px 0;
  font-size: 15px;
  border-top: 1px solid var(--border-color);
  letter-spacing: 1px;
}

/* ========================================
   3. 通用组件样式
======================================== */

/* ===== 3.1 卡片组件 ===== */
.ant-pro-card,
.card {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 2px 12px var(--box-shadow-light);
  padding: 32px 32px 40px 32px;
  margin: 0 auto 32px auto;
  max-width: 1200px;
  width: 100%;
}

.ant-pro-card-head,
.card-header {
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ant-pro-card-body,
.card-body {
  /* 卡片内容区域 */
}

.card-header-actions {
  display: flex;
  gap: 12px;
}

/* 特殊页面宽度控制 */
.password-card,
.pay-success-card {
  max-width: 700px;
}

.login-form,
.register-form {
  max-width: 500px;
}

/* ===== 3.2 表格组件 ===== */
.ant-pro-table,
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-background);
  color: #5a4a42;
  font-size: 14px;
}

.ant-pro-table th,
.ant-pro-table td,
.table th,
.table td {
  border: 1px solid var(--border-color);
  padding: 14px 12px;
  font-size: 14px;
  text-align: left;
}

.ant-pro-table th,
.table th,
.table thead th {
  background: var(--header-background);
  color: var(--secondary-color);
  font-weight: bold;
}

.ant-pro-table tr:hover,
.table tr:hover,
.table-hover tbody tr:hover {
  background: #fff0e6;
}

.table-striped tbody tr:nth-child(odd) {
  background: #fffaf5;
}

/* 表格工具类 */
.truncate-300 {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-200 {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 功能管理列表专用 */
.truncate-desc {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  max-height: 3em;
}

.truncate-workflow {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #666;
}

/* ===== 3.3 按钮组件 ===== */
.ant-pro-btn,
.ant-pro-btn-primary,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-8);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  border: 1px solid transparent;
  text-decoration: none;
  height: 38px;
  margin-right: 8px;
}

.ant-pro-btn,
.ant-pro-btn-primary,
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.ant-pro-btn:hover,
.ant-pro-btn-primary:hover,
.btn-primary:hover {
  background: var(--primary-hover-color);
  border-color: var(--primary-hover-color);
}

.ant-pro-btn:disabled,
.ant-pro-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-color);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.ant-pro-btn-danger,
.btn-danger {
  background: var(--error-color);
  color: #fff;
  border-color: var(--error-color);
}

.ant-pro-btn-danger:hover,
.btn-danger:hover {
  background: #ff9bb0;
}

.btn-link {
  color: var(--primary-color);
  padding: 0;
  border: none;
  height: auto;
  margin-right: 0;
  background: transparent;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 按钮尺寸 */
.btn-sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  height: 32px;
}

.btn-lg {
  padding: var(--space-12) var(--space-24);
  font-size: var(--font-size-lg);
  height: 46px;
}

/* ===== 3.4 表单组件 ===== */
/* 输入框统一样式 */
.ant-pro-input,
.ant-pro-textarea,
.ant-pro-select,
.form-control,
input[type='text'],
input[type='password'],
input[type='number'],
input[type='date'],
input[type='file'],
select,
textarea {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.ant-pro-input:hover,
.ant-pro-textarea:hover,
.ant-pro-select:hover,
.form-control:hover,
input[type='text']:hover,
input[type='password']:hover,
input[type='number']:hover,
input[type='date']:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-color);
}

.ant-pro-input:focus,
.ant-pro-textarea:focus,
.ant-pro-select:focus,
.form-control:focus,
input[type='text']:focus,
input[type='password']:focus,
input[type='number']:focus,
input[type='date']:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-hover-color);
  box-shadow: 0 0 0 2px var(--box-shadow-light);
}

select.ant-pro-input,
select,
input[type='date'].ant-pro-input {
  cursor: pointer;
}

/* Placeholder 统一样式 */
.ant-pro-input::placeholder,
.ant-pro-textarea::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #bbb;
}

/* 表单组和标签 */
.form-group {
  margin-bottom: var(--space-16);
}

.form-label {
  display: block;
  margin-bottom: var(--space-4);
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.form-check input {
  width: auto;
}

/* 表单动作按钮区 */
.ant-pro-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== 3.5 消息提示 ===== */
.ant-pro-message-zone {
  margin: 16px 0 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.ant-message {
  min-width: 320px;
  max-width: 600px;
  margin-bottom: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #fff;
}

.ant-message-success {
  background: var(--success-color);
}
.ant-message-info {
  background: var(--primary-color);
}
.ant-message-warning {
  background: var(--warning-color);
}
.ant-message-error {
  background: var(--error-color);
}

.ant-message-root {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

/* ===== 3.6 提示框组件 ===== */
.alert {
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-8);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-16);
}

.alert-success {
  background: var(--success-color);
  color: #fff;
}
.alert-warning {
  background: var(--warning-color);
  color: #fff;
}
.alert-error {
  background: var(--error-color);
  color: #fff;
}
.alert-info {
  background: var(--primary-color);
  color: #fff;
}

/* ===== 3.7 代码块组件 ===== */
.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.code-block .hljs-comment {
  color: #7ec699;
}
.code-block .hljs-keyword {
  color: #ff79c6;
}
.code-block .hljs-string {
  color: #f1fa8c;
}

.code-inline {
  background: #1a1f2e;
  color: #52c41a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 12px;
}

/* ===== 3.8 分页组件 ===== */
.ant-pro-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ===== 3.9 工具类 ===== */
/* 显示工具类 */
.hidden {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 文本对齐 */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* 文本颜色 */
.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-success {
  color: var(--success-color);
}
.text-warning {
  color: var(--warning-color);
}
.text-error {
  color: var(--error-color);
}
.text-muted {
  color: #999;
}
.text-muted-info {
  color: #999;
}

/* 间距工具类 - margin-top */
.mt-4 {
  margin-top: var(--space-4);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mt-12 {
  margin-top: var(--space-12);
}
.mt-16 {
  margin-top: var(--space-16);
}
.mt-18 {
  margin-top: 18px;
}
.mt-20 {
  margin-top: var(--space-20);
}
.mt-24 {
  margin-top: var(--space-24);
}
.mt-32 {
  margin-top: var(--space-32);
}

/* 间距工具类 - margin-bottom */
.mb-0 {
  margin-bottom: 0;
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mb-12 {
  margin-bottom: var(--space-12);
}
.mb-16 {
  margin-bottom: var(--space-16);
}
.mb-18 {
  margin-bottom: 18px;
}
.mb-20 {
  margin-bottom: var(--space-20);
}
.mb-24 {
  margin-bottom: var(--space-24);
}
.mb-32 {
  margin-bottom: var(--space-32);
}

/* 间距工具类 - margin-left */
.ml-4 {
  margin-left: var(--space-4);
}
.ml-8 {
  margin-left: var(--space-8);
}
.ml-10 {
  margin-left: 10px;
}
.ml-12 {
  margin-left: var(--space-12);
}
.ml-15 {
  margin-left: 15px;
}
.ml-16 {
  margin-left: var(--space-16);
}
.ml-18 {
  margin-left: 18px;
}
.ml-20 {
  margin-left: var(--space-20);
}
.ml-24 {
  margin-left: var(--space-24);
}
.ml-32 {
  margin-left: var(--space-32);
}

/* 间距工具类 - 其他 */
.mx-15 {
  margin-left: 15px;
  margin-right: 15px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* 间距工具类 - padding */
.p-4 {
  padding: var(--space-4);
}
.p-8 {
  padding: var(--space-8);
}
.p-12 {
  padding: var(--space-12);
}
.p-16 {
  padding: var(--space-16);
}
.p-20 {
  padding: var(--space-20);
}
.p-24 {
  padding: var(--space-24);
}

/* 通用信息显示 */
/* 顶部信息区域通用样式 */
.ant-pro-info {
  background: linear-gradient(135deg, #fff8f2 0%, #fff0e6 100%);
  border-radius: var(--radius-8);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(255, 158, 125, 0.08);
  border: 1px solid rgba(255, 158, 125, 0.15);
}

.ant-pro-section-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 16px;
}

/* 积分显示 */
.points-display {
  background: linear-gradient(135deg, #fff8f2 0%, #fff0e6 100%);
  border-radius: var(--radius-8);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(255, 158, 125, 0.08);
  border: 1px solid rgba(255, 158, 125, 0.15);
}

.points-value {
  color: var(--primary-color);
  font-weight: normal;
  font-size: 18px;
}

.points-cost-deducted {
  color: var(--error-color);
  font-weight: normal;
}

.points-cost-free {
  color: var(--success-color);
  font-weight: normal;
}

/* ========================================
   4. 页面专用样式
======================================== */

/* ===== 4.1 首页营销页面 (index.html) ===== */
.index-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Hero 区域 */
.hero-section {
  background: linear-gradient(135deg, #ffe8d6 0%, #ffd5b7 100%);
  border-radius: var(--radius-16);
  padding: var(--space-60) var(--space-40);
  margin: 0 0 40px 0;
  text-align: center;
  box-shadow: 0 8px 32px var(--box-shadow-medium);
}

.hero-title {
  font-size: 3em;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.3em;
  color: #8b7367;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: var(--space-16) 48px;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-8);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--box-shadow-dark);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--box-shadow-dark);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.hero-btn-secondary:hover {
  background: rgba(255, 158, 125, 0.1);
  transform: translateY(-2px);
}

/* 统计数据区域 */
.stats-section {
  background: linear-gradient(135deg, #fff8f2 0%, #fff0e6 100%);
  border-radius: var(--radius-16);
  padding: var(--space-40) var(--space-20);
  margin: 0 0 40px 0;
  box-shadow: 0 4px 16px var(--box-shadow-light);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1em;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 功能展示区域 */
.features-section {
  margin: 0 0 var(--space-40) 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
  justify-content: center;
}

.feature-icon {
  font-size: 3em;
  margin-bottom: var(--space-16);
}

.feature-name {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--space-12);
}

.feature-tag {
  display: inline-block;
  background: rgba(255, 158, 125, 0.2);
  color: #ff7f50;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-12);
  font-size: 0.85em;
  margin-top: var(--space-12);
}

/* 使用流程区域 */
.process-section {
  margin: 0 0 var(--space-40) 0;
}

.process-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-20);
}

.process-step {
  text-align: center;
  min-width: 180px;
}

.step-number {
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-8);
}

.step-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--space-8);
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95em;
}

.section-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--space-24);
  text-align: center;
}

/* CTA 行动号召区域 */
.cta-section {
  background: linear-gradient(135deg, #ffe8d6 0%, #ffd5b7 100%);
  border-radius: var(--radius-16);
  padding: var(--space-40) var(--space-24);
  text-align: center;
  margin: 0 0 var(--space-40) 0;
  box-shadow: 0 4px 16px var(--box-shadow-light);
}

.cta-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--space-12);
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-bottom: var(--space-20);
}

/* ===== 4.2 功能列表页面 (features.html) ===== */
/* 分类筛选标签 */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-color);
}

.category-tag {
  padding: var(--space-8) 18px;
  background: var(--card-background);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-12);
  font-size: 0.95em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.category-tag:hover {
  background: #ffe8d6;
  border-color: var(--primary-color);
  color: var(--primary-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--box-shadow-light);
}

.category-tag.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

/* 功能卡片 */
.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  background: var(--card-background);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--box-shadow-light);
  padding: 24px 20px 16px 20px;
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px var(--box-shadow-light);
  border-color: var(--primary-color);
}

.feature-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.feature-desc {
  font-size: 0.98em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 48px;
  word-break: break-all;
  line-height: 1.6;
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.feature-points {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 16px;
}

.feature-action {
  margin-top: auto;
}

.feature-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #ffe8d6 0%, #ffd5b7 100%);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  font-size: 0.85em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 500;
}

/* Markdown 渲染样式 */
.feature-desc h1,
.feature-desc h2,
.feature-desc h3,
.markdown-result h1,
.markdown-result h2,
.markdown-result h3 {
  color: var(--text-color);
  margin-top: 12px;
  margin-bottom: 8px;
}

.feature-desc h1,
.markdown-result h1 {
  font-size: 1.3em;
  font-weight: 700;
}
.feature-desc h2,
.markdown-result h2 {
  font-size: 1.15em;
  font-weight: 600;
}
.feature-desc h3,
.markdown-result h3 {
  font-size: 1.05em;
  font-weight: 600;
}

.feature-desc p,
.markdown-result p {
  margin: 6px 0;
}

.feature-desc ul,
.feature-desc ol,
.markdown-result ul,
.markdown-result ol {
  margin: 6px 0;
  padding-left: 20px;
}

.feature-desc li,
.markdown-result li {
  margin: 3px 0;
}

.feature-desc a,
.markdown-result a {
  color: var(--primary-color);
  text-decoration: underline;
}

.feature-desc a:hover,
.markdown-result a:hover {
  color: var(--primary-hover-color);
}

.feature-desc code,
.markdown-result code {
  background: var(--border-color);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: var(--secondary-color);
}

.feature-desc pre,
.markdown-result pre {
  background: var(--card-background);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  margin: 6px 0;
}

.feature-desc pre code,
.markdown-result pre code {
  background: none;
  padding: 0;
  color: #333;
}

.feature-desc blockquote,
.markdown-result blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
  margin: 6px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.feature-desc strong,
.markdown-result strong {
  font-weight: 600;
  color: var(--secondary-color);
}

.feature-desc em,
.markdown-result em {
  font-style: italic;
  color: var(--text-secondary);
}

.feature-desc table,
.markdown-result table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0;
  font-size: 0.9em;
}

.feature-desc table th,
.feature-desc table td,
.markdown-result table th,
.markdown-result table td {
  border: 1px solid var(--border-color);
  padding: 6px;
  text-align: left;
}

.feature-desc table th,
.markdown-result table th {
  background: var(--card-background);
  font-weight: 600;
}

/* ===== 4.3 功能详情页面 (feature_detail.html) ===== */
/* 功能详情页 - 全屏三栏布局 */
.ant-pro-card-detail {
  background: var(--background-color);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}

.ant-pro-card-detail .ant-pro-card-head {
  font-size: var(--font-size-xl);
  font-weight: 600;
  text-align: center;
  padding: var(--space-16);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
}

.ant-pro-card-detail .ant-pro-card-body {
  padding: 0 0 48px 0;
}

.detail-bg {
  background: var(--background-color) !important;
}

/* 三栏容器 - 全屏无宽度限制 */
/* 上方：功能介绍区域 */
.detail-feature-intro-top {
  width: 100%;
  padding: 32px 40px;
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0;
}

/* 下方：左右布局容器 */
.detail-cards-container {
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100%;
  max-width: none;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
}

/* 左侧：表单区，占捥50% */
.detail-cards-container .detail-form-card {
  flex: 0 0 50%;
  width: 50%;
  min-height: calc(100vh - 280px);
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border-color);
  box-shadow: none;
  padding: 32px 40px;
  margin: 0;
  overflow-y: auto;
}

/* 右侧：结果展示区，占捥50% */
.detail-cards-container .detail-result-card {
  flex: 0 0 50%;
  width: 50%;
  min-height: calc(100vh - 280px);
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 32px 40px;
  margin: 0;
  background: #fafbfc;
  overflow-y: auto;
}

/* 旧版兼容样式 */
.detail-cards-container .feature-card {
  flex: 1;
  width: auto;
  min-height: calc(100vh - 56px);
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border-color);
  box-shadow: none;
  padding: 32px 24px;
  margin: 0;
  transition: background 0.2s;
}

.detail-cards-container .feature-card:last-child {
  border-right: none;
}

.detail-cards-container .feature-card:hover {
  background: var(--background-color-soft);
  box-shadow: none;
  border-color: var(--border-color);
}

/* 卡片区域标题 */
.card-section-title {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-align: left;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
}

/* 表单容器 */
.detail-form-card .custom-detail-form,
.detail-form-section .custom-detail-form {
  width: 100%;
}

.custom-detail-row {
  display: flex;
  align-items: flex-start;
  padding: 16px 0 10px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 0 24px;
}

.custom-detail-row:last-child {
  border-bottom: none;
}

.param-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px 0;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.custom-detail-label {
  width: 100%;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 2px;
  padding-top: 0;
}

/* 输入框宽度优化 */
.custom-detail-input-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.input-beauty {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.custom-detail-aux {
  color: #aaa;
  font-size: 12px;
  margin-left: 0;
  margin-top: 2px;
}

input[type='file'].input-beauty {
  padding: 6px 0;
  background: #fff;
  border: none;
  font-size: 14px;
  color: #444;
}

/* 单选按钮组 */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s;
  user-select: none;
}

.radio-label:hover {
  background: #ffe8d6;
  border-color: var(--primary-color);
}

.radio-input {
  margin: 0 10px 0 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.radio-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.radio-input:checked + .radio-text {
  font-weight: 600;
  color: var(--primary-hover-color);
}

.radio-label:has(.radio-input:checked) {
  background: #ffe8d6;
  border-color: var(--primary-color);
}

/* 多行文本框 */
textarea.ant-pro-textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  color: #333;
  line-height: 1.5;
  transition: border-color 0.3s;
}

textarea.ant-pro-textarea:hover {
  border-color: var(--primary-color);
}

textarea.ant-pro-textarea:focus {
  outline: none;
  border-color: var(--primary-hover-color);
  box-shadow: 0 0 0 2px var(--box-shadow-light);
}

textarea.ant-pro-textarea::placeholder {
  color: #bbb;
}

/* 日期选择器 */
input[type='date'].ant-pro-input {
  cursor: pointer;
}

input[type='date'].ant-pro-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* 表单按钮行 */
.form-btn-row {
  margin-top: 18px;
  justify-content: center;
  border-bottom: none !important;
}

.btn-beauty {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: var(--space-8) var(--space-16);
  height: 38px;
  min-width: 120px;
  box-shadow: 0 2px 8px var(--box-shadow-light);
  transition:
    background 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-beauty:hover {
  background: linear-gradient(90deg, var(--primary-hover-color) 60%, var(--primary-color) 100%);
  box-shadow: 0 4px 16px var(--box-shadow-medium);
}

.btn-back {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: var(--space-8) var(--space-16);
  height: 38px;
  min-width: 120px;
  box-shadow: none;
  margin-left: 12px;
  transition:
    background 0.2s,
    color 0.2s,
    border 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.btn-back:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.form-success-msg {
  margin: 12px auto 0 auto;
  color: #52c41a;
  font-size: var(--font-size-lg);
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 结果展示卡片 */
.detail-result-card {
  background: #fff;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 24px var(--box-shadow-light);
  padding: var(--space-32) 28px var(--space-24) 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.result-content {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: none;
  padding: 0;
  width: 100%;
}

.result-title {
  font-size: 1.08em;
  font-weight: 600;
  color: #888;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.result-pre {
  white-space: pre-wrap;
  background: #f7f9fa;
  padding: 12px 16px;
  border-radius: 6px;
  color: #222;
  font-size: 14px;
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
}

.result-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 8px #0002;
}

.result-link {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: underline;
  margin-top: 4px;
}

.result-link:hover {
  color: var(--primary-hover-color);
}

.result-empty {
  color: #bbb;
  font-size: 14px;
  padding: 32px 0;
  text-align: center;
  width: 100%;
}

.audio-result {
  width: 100%;
  max-width: 340px;
  margin-bottom: var(--space-8);
}

/* 自动保存提示 */
.auto-save-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  transition: opacity 0.3s;
}

/* ===== 4.4 支付页面 (wechat_pay.html, pay_success.html) ===== */
/* 支付容器 */
.ant-pro-pay-container {
  text-align: center;
}

.ant-pro-pay-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-16);
  color: var(--text-color);
}

.ant-pro-pay-amount {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-20);
  font-weight: 600;
}

.qrcode-img {
  width: 200px;
  height: 200px;
  background: var(--background-color);
  padding: var(--space-4);
  border-radius: var(--radius-4);
}

.package-tips {
  color: var(--text-color-secondary);
  margin-bottom: var(--space-16);
}

.package-status {
  font-size: var(--font-size-base);
  color: var(--primary-color);
  margin-bottom: var(--space-16);
}

.status-success {
  color: var(--success-color);
  font-weight: bold;
}

.status-failed {
  color: var(--warning-color);
  font-weight: bold;
}

.status-error {
  color: var(--error-color);
  font-weight: bold;
}

/* 充值面值说明 */
.package-explanation {
  margin-bottom: var(--space-20);
  background: var(--background-color-soft);
  padding: var(--space-12);
  border-radius: var(--radius-8);
  border-left: 4px solid var(--primary-color);
}

/* 充值面值卡片网格 */
.package-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 20px;
  max-width: 100%;
}

/* 每个独立的卡片项 */
.package-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 卡片表单 */
.package-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 积分卡片主体 */
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 卡片顶部装饰条 */
.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-hover-color) 50%,
    var(--primary-color) 100%
  );
  opacity: 0.8;
}

.package-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow:
    0 12px 32px rgba(255, 158, 125, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.package-card:hover::before {
  height: 8px;
  opacity: 1;
}

/* 卡片头部 - 金额和积分展示区 */
.package-card-header {
  background: linear-gradient(135deg, #fffbf7 0%, #fff5ed 100%);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  position: relative;
  border-bottom: 1px dashed rgba(255, 158, 125, 0.15);
}

/* 卡片头部装饰背景 */
.package-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 158, 125, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.package-card:hover .package-card-header {
  background: linear-gradient(135deg, #fff0e6 0%, #ffe8d6 100%);
  border-bottom-color: rgba(255, 158, 125, 0.3);
}

/* 价格金额 - 主角 */
.package-price-amount {
  font-size: 3.5em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  transition: all 0.3s;
  text-shadow: 0 2px 8px rgba(255, 158, 125, 0.15);
  letter-spacing: -0.02em;
}

.package-card:hover .package-price-amount {
  color: var(--primary-hover-color);
  transform: scale(1.05);
  text-shadow: 0 4px 12px rgba(255, 158, 125, 0.3);
}

/* 价格和积分之间的分隔 */
.package-price-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 158, 125, 0.2) 50%,
    transparent 100%
  );
  margin: 8px 0;
}

.package-card:hover .package-price-divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 158, 125, 0.4) 50%,
    transparent 100%
  );
}

/* 积分信息容器 */
.package-points-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-secondary);
}

/* 积分数字 */
.package-points-number {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1;
  transition: all 0.3s;
}

.package-card:hover .package-points-number {
  color: var(--primary-color);
}

/* 积分单位 */
.package-points-unit {
  font-size: 0.85em;
  color: var(--text-muted);
  font-weight: normal;
  transition: all 0.3s;
}

.package-card:hover .package-points-unit {
  color: var(--text-secondary);
}

/* 购买按钮 */
.package-buy-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(255, 158, 125, 0.3);
}

.package-buy-btn:hover {
  background: var(--primary-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 158, 125, 0.4);
}

.package-buy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 158, 125, 0.3);
}

/* 表单动作区域 */
.ant-pro-form-section {
  margin-bottom: var(--space-20);
}

.ant-pro-form-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--space-12);
}

.ant-pro-explanation {
  background: var(--background-color-soft);
  padding: var(--space-12);
  border-radius: var(--radius-8);
  margin-bottom: var(--space-16);
}

.ant-pro-form-action {
  margin-top: var(--space-32);
  text-align: center;
}

.ant-pro-form-action .btn-lg {
  min-width: 200px;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
}

/* 支付成功页面 */
.pay-success-icon {
  font-size: 64px;
  color: var(--success-color);
  margin-bottom: 24px;
}

.pay-success-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--success-color);
}

.pay-success-message {
  font-size: 16px;
  margin-bottom: 20px;
}

.pay-success-highlight {
  color: var(--warning-color);
  font-weight: bold;
}

.pay-order-info {
  background: #22304a;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: left;
}

.pay-order-info-item {
  margin-bottom: 8px;
}

.pay-order-info-item:last-child {
  margin-bottom: 0;
}

.pay-tips {
  background: #2a3b57;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: left;
  border-left: 4px solid var(--warning-color);
}

.pay-tips-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.pay-tips-content {
  font-size: 14px;
  color: #ccc;
}

.pay-tips-content p {
  margin: 4px 0;
}

/* ===== 4.5 后台管理页面 ===== */
/* 统计信息卡片 */
/* 统计信息区域 */
.stats-info {
  background: linear-gradient(135deg, #fff8f2 0%, #fff0e6 100%);
  border-radius: var(--radius-8);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(255, 158, 125, 0.08);
  border: 1px solid rgba(255, 158, 125, 0.15);
}

.stats-info-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.stats-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.stats-info-item strong {
  color: var(--text-color);
  font-weight: normal;
}

.stats-info-item .text-primary {
  font-weight: normal;
  font-size: 18px;
  color: var(--primary-color);
}

.stats-info-item .text-success {
  font-weight: normal;
  font-size: 18px;
  color: var(--success-color);
}

.stats-info-item .text-warning {
  font-weight: normal;
  font-size: 18px;
  color: var(--warning-color);
}

.stats-info-item .text-error {
  font-weight: normal;
  font-size: 18px;
  color: var(--error-color);
}

.stats-info-title {
  font-size: 16px;
  font-weight: normal;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.stats-info-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.info-list li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* 使用说明提示框 */
.usage-tips {
  background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
  border-left: 4px solid #faad14;
  border-radius: var(--radius-8);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.1);
  border: 1px solid rgba(250, 173, 20, 0.15);
  border-left: 4px solid #faad14;
}

.usage-tips-title {
  font-size: 16px;
  font-weight: normal;
  color: #d48806;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.usage-tips-list {
  margin: 0;
  padding-left: 24px;
  color: #595959;
}

.usage-tips-list li {
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 16px;
  color: #595959;
}

.usage-tips-list li:last-child {
  margin-bottom: 0;
}

/* 筛选表单 */
.filter-form {
  background: linear-gradient(135deg, #fff8f2 0%, #fff0e6 100%);
  border-radius: var(--radius-8);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(255, 158, 125, 0.08);
  border: 1px solid rgba(255, 158, 125, 0.15);
}

.filter-form-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.filter-form-group {
  display: flex;
  flex-direction: column;
}

.filter-select-sm {
  width: 120px;
}

.filter-select-md {
  width: 150px;
}

.filter-select-lg {
  width: 200px;
}

/* 信息提示框 */
.info-box {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: var(--radius-8);
}

.info-box-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1890ff;
  font-size: 16px;
  font-weight: 600;
}

.info-box-list {
  margin-bottom: 0;
  padding-left: 20px;
  color: #333;
}

.info-box-list li {
  margin-bottom: 4px;
}

/* 表格内表单 */
.table-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-inline-input {
  width: 80px;
  padding: 6px 8px;
  margin: 0;
}

/* ===== 4.6 调用记录详情页 (call_log_detail.html) ===== */
.detail-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #f7f9fa;
  border-radius: 8px;
  border: 1px solid #e5e6eb;
}

.detail-section h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.detail-row {
  display: flex;
  margin-bottom: 12px;
  line-height: 1.6;
}

.detail-label {
  width: 120px;
  font-weight: 500;
  color: #555;
}

.detail-value {
  flex: 1;
  color: #222;
}

.detail-value-break {
  word-break: break-all;
}

.error-message {
  background: #fff2e8;
  border: 1px solid #ffbb96;
  padding: 15px;
  border-radius: 6px;
  color: #d4380d;
}

/* Markdown内容样式 */
.markdown-content {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  color: #222;
  font-size: 14px;
  line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  color: #222;
  margin-top: 16px;
  margin-bottom: 10px;
}

.markdown-content h1 {
  font-size: 1.6em;
  font-weight: 700;
}
.markdown-content h2 {
  font-size: 1.4em;
  font-weight: 600;
}
.markdown-content h3 {
  font-size: 1.2em;
  font-weight: 600;
}

.markdown-content p {
  margin: 10px 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 10px 0;
  padding-left: 28px;
}

.markdown-content li {
  margin: 6px 0;
}

.markdown-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.markdown-content a:hover {
  color: var(--primary-hover-color);
}

.markdown-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: #c7254e;
}

.markdown-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 10px 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: #f8f8f2;
}

.markdown-content blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 12px;
  margin: 10px 0;
  color: #7a6259;
  font-style: italic;
}

.markdown-content strong {
  font-weight: 600;
  color: #222;
}

.markdown-content em {
  font-style: italic;
  color: #555;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.markdown-content table th,
.markdown-content table td {
  border: 1px solid #e0e0e0;
  padding: 8px;
  text-align: left;
}

.markdown-content table th {
  background: #f7f9fa;
  font-weight: 600;
}

/* ===== 4.7 表单页面 (admin_*_form.html, login.html, register.html, change_password.html) ===== */
/* 表单表格布局 */
.ant-pro-form-table {
  width: 92%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.ant-pro-form-label {
  width: 110px;
  text-align: right;
  vertical-align: middle;
  color: #bfc7d5;
  font-weight: 500;
  padding-right: 12px;
  font-size: 14px;
}

.ant-pro-form-aux {
  color: #aaa;
  font-size: 12px;
  margin-left: 8px;
  min-width: 40px;
  max-width: 350px;
  word-break: break-all;
  vertical-align: middle;
}

.ant-pro-form-error {
  color: #ff4d4f;
  font-size: 13px;
  margin-top: 4px;
  display: block;
  text-align: left;
}

/* 水平单选按钮组 */
.radio-group-horizontal {
  display: flex;
  gap: 16px;
}

.radio-label-inline {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 18px;
  background: #1a1f2e;
  border: 1.5px solid #434e5e;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 14px;
  color: #e6eaf3;
}

.radio-label-inline:hover {
  background: #232936;
  border-color: #40a9ff;
  box-shadow: 0 2px 8px rgba(64, 169, 255, 0.15);
}

.radio-label-inline input[type='radio'] {
  margin: 0 10px 0 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.radio-label-inline:has(input:checked) {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border-color: #1890ff;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 表单输入框宽度工具类 */
.input-width-sm {
  width: 120px;
}

.input-width-md {
  width: 240px;
}

.input-width-lg {
  width: 480px;
}

/* 文本域高度工具类 */
.textarea-height-sm {
  height: 100px;
  resize: vertical;
}

.textarea-height-md {
  height: 180px;
  resize: vertical;
}

.textarea-height-lg {
  height: 600px;
  resize: vertical;
}

/* 表单辅助说明样式 */
.form-hint {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.form-hint-warning {
  color: #e67e22;
  font-weight: 600;
}

.form-hint-success {
  color: #52c41a;
  font-weight: 600;
}

.form-hint-list {
  margin: 4px 0 8px 16px;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.form-hint-badge {
  color: #52c41a;
  font-weight: 600;
}

.code-example {
  background: #232b3b;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  overflow-x: auto;
  max-width: 320px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  line-height: 1.4;
  font-family: 'Courier New', Consolas, Monaco, monospace;
}

.form-aux-wide {
  max-width: 350px;
  word-break: break-all;
}

/* ========================================
   5. 响应式样式
======================================== */

/* 1100px 以下 - 功能详情页三栏改为垂直 */
@media (max-width: 1100px) {
  .detail-cards-container {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .detail-cards-container .feature-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    min-height: auto;
    padding: 24px 20px;
  }

  .detail-cards-container .feature-card:last-child {
    border-bottom: none;
  }

  .feature-card {
    padding: 18px 20px var(--space-12) 20px;
  }

  .ant-layout-content {
    padding: 24px 32px 0 32px;
  }

  .ant-pro-card {
    padding: 24px 24px var(--space-32) 24px;
  }

  /* 充值卡片响应式 */
  .package-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
}

/* 1024px 以下 - 平板优化 */
@media (max-width: 1024px) {
  .ant-layout-header {
    padding: 0 20px;
  }

  .ant-pro-header-menu-item {
    margin-left: 16px;
    padding: 6px var(--space-12);
    font-size: 15px;
  }

  .hero-section {
    padding: var(--space-40) 24px;
  }

  .hero-title {
    font-size: 2.5em;
  }

  .hero-desc {
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-buttons {
    gap: 12px;
  }
}

/* 700px 以下 - 移动端优化 */
@media (max-width: 700px) {
  .param-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px 0;
  }

  .custom-detail-label {
    width: 100%;
    min-width: 0;
    text-align: left;
    padding-top: 0;
    margin-bottom: 2px;
  }

  .custom-detail-input-wrap {
    width: 100%;
    max-width: 100%;
  }

  .input-beauty {
    max-width: 100%;
  }

  .ant-layout-content {
    padding: 20px 24px 0 24px;
  }

  /* 充值卡片移动端优化 */
  .package-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .package-card {
    padding: 20px 12px;
  }

  .package-card-icon {
    font-size: 2em;
  }

  .package-card-amount {
    font-size: 1.8em;
  }
}

/* 600px 以下 - 小屏幕 */
@media (max-width: 600px) {
  .sm-hidden {
    display: none;
  }
  .sm-text-center {
    text-align: center;
  }
  .sm-block {
    display: block;
    width: 100%;
  }
}

/* 无障碍访问增强 */
/* 跳过导航链接 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.3s;
  font-size: 14px;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* 焦点可见性增强 */
*:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .ant-pro-header-menu-item {
    border-bottom: 2px solid transparent;
  }
  
  .ant-pro-header-menu-item.active {
    border-bottom-color: #000;
  }
  
  .ant-btn-primary {
    background: #000;
    border-color: #000;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 屏幕阅读器专用内容 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 键盘导航可见性 */
.ant-pro-header-menu-item:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 错误状态增强 */
.ant-message-error {
  border-left: 4px solid #ff4d4f;
}

.ant-message-success {
  border-left: 4px solid #52c41a;
}

.ant-message-info {
  border-left: 4px solid #1890ff;
}

/* 表单标签增强 */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 必填字段标识 */
.required::after {
  content: ' *';
  color: #ff4d4f;
}

/* 按钮状态增强 */
.ant-btn[aria-busy="true"] {
  position: relative;
  overflow: hidden;
}

.ant-btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 900px 以下 - 中等屏幕 */
@media (max-width: 900px) {
  .md-hidden {
    display: none;
  }
}

/* ========================================
   6. 可访问性与无障碍支持
======================================== */

/* 跳过导航链接 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.3s;
  font-size: 14px;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* 屏幕阅读器专用内容 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .ant-pro-header-menu-item {
    border-bottom: 2px solid transparent;
  }
  
  .ant-pro-header-menu-item.active {
    border-bottom-color: #000;
  }
  
  .ant-btn-primary {
    background: #000;
    border-color: #000;
  }
}

/* 表单标签增强 */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 必填字段标识 */
.required::after {
  content: ' *';
  color: #ff4d4f;
}

/* 按钮状态增强 */
.ant-btn[aria-busy="true"] {
  position: relative;
  overflow: hidden;
}

.ant-btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}
