/* ========================================
   通用配置文件 - comm.css
   包含整个项目的设计系统配置
   ======================================== */

/* ================== CSS Variables ================== */
:root {
  /* 主色调配置 */
  --primary-color: #ff69b4;
  --primary-dark: #ff1493;
  --primary-light: #ffb6d9;

  /* 中性色配置 */
  --white: #ffffff;
  --black: #000000;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;

  /* 背景色配置 */
  --bg-gradient-start: #fef5fb;
  --bg-gradient-end: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-pink-light: #fff0f6;
  --bg-pink-lighter: #ffe6f0;

  /* 功能色配置 */
  --color-activity: #ff6f00;
  --bg-activity: #fff3e0;
  --color-system: #1976d2;
  --bg-system: #e3f2fd;

  /* 边框颜色 */
  --border-light: #e0e0e0;
  --border-medium: #d0d0d0;
  --border-dark: #b0b0b0;

  /* 阴影配置 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);

  /* 圆角配置 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* 间距配置 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 10px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;

  /* 字体大小配置 */
  --font-xs: 12px;
  --font-sm: 13px;
  --font-base: 14px;
  --font-md: 15px;
  --font-lg: 16px;
  --font-xl: 18px;
  --font-2xl: 20px;
  --font-3xl: 24px;

  /* 字体粗细配置 */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* 行高配置 */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;

  /* 过渡效果 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ================== 全局重置 ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  min-height: 100vh;
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: var(--line-height-normal);
}

/* ================== 按钮系统 ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, rgb(248 164 10 / 68%), #ff8fb3);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--white);
  border-color: var(--border-medium);
}

.btn-outline {
  background: transparent;
  color: rgba(248 144 10 / 78%);
  border: 1px solid rgba(248 144 10 / 78%);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-sm);
}

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

.btn-full {
  width: 100%;
}

.btn-disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ================== 卡片系统 ================== */
.card {
  background: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: 10px;
}

.card-sm {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.card-lg {
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
}

.card-bordered {
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.card-hover {
  transition: all var(--transition-base);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================== 标签系统 ================== */
.tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-xs);
  font-weight: var(--font-medium);
}

.tag-activity {
  background: var(--bg-activity);
  color: var(--color-activity);
}

.tag-system {
  background: var(--bg-system);
  color: var(--color-system);
}

.tag-primary {
  background: var(--bg-pink-light);
  color: var(--primary-dark);
}

/* ================== 表单元素 ================== */
.input,
.select,
.textarea {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font-size: var(--font-lg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(248 144 10 / 78%);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
  
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-tertiary);
}

.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* ================== 文字样式 ================== */
.text-xs {
  font-size: var(--font-xs);
}
.text-sm {
  font-size: var(--font-sm);
}
.text-base {
  font-size: var(--font-base);
}
.text-md {
  font-size: var(--font-md);
}
.text-lg {
  font-size: var(--font-lg);
}
.text-xl {
  font-size: var(--font-xl);
}
.text-2xl {
  font-size: var(--font-2xl);
}
.text-3xl {
  font-size: var(--font-3xl);
}

.text-normal {
  font-weight: var(--font-normal);
}
.text-medium {
  font-weight: var(--font-medium);
}
.text-semibold {
  font-weight: var(--font-semibold);
}
.text-bold {
  font-weight: var(--font-bold);
}

.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-tertiary {
  color: var(--text-tertiary);
}
.text-pink {
  color: var(--primary-color);
}
.text-pink-dark {
  color: var(--primary-dark);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* ================== 渐变文字 ================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================== 间距工具类 ================== */
.m-0 {
  margin: 0;
}
.m-xs {
  margin: var(--spacing-xs);
}
.m-sm {
  margin: var(--spacing-sm);
}
.m-md {
  margin: var(--spacing-md);
}
.m-lg {
  margin: var(--spacing-lg);
}
.m-xl {
  margin: var(--spacing-xl);
}

.mt-0 {
  margin-top: 0;
}
.mt-xs {
  margin-top: var(--spacing-xs);
}
.mt-sm {
  margin-top: var(--spacing-sm);
}
.mt-md {
  margin-top: var(--spacing-md);
}
.mt-lg {
  margin-top: var(--spacing-lg);
}
.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-xs {
  margin-bottom: var(--spacing-xs);
}
.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}
.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.p-0 {
  padding: 0;
}
.p-xs {
  padding: var(--spacing-xs);
}
.p-sm {
  padding: var(--spacing-sm);
}
.p-md {
  padding: var(--spacing-md);
}
.p-lg {
  padding: var(--spacing-lg);
}
.p-xl {
  padding: var(--spacing-xl);
}

/* ================== 边框工具类 ================== */
.border {
  border: 1px solid var(--border-light);
}
.border-medium {
  border: 1px solid var(--border-medium);
}
.border-dark {
  border: 1px solid var(--border-dark);
}
.border-primary {
  border: 1px solid var(--primary-color);
}

.border-top {
  border-top: 1px solid var(--border-light);
}
.border-bottom {
  border-bottom: 1px solid var(--border-light);
}
.border-left {
  border-left: 1px solid var(--border-light);
}
.border-right {
  border-right: 1px solid var(--border-light);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}

/* ================== 阴影工具类 ================== */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-none {
  box-shadow: none;
}

/* ================== 布局工具类 ================== */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-end {
  justify-content: flex-end;
}

.gap-xs {
  gap: var(--spacing-xs);
}
.gap-sm {
  gap: var(--spacing-sm);
}
.gap-md {
  gap: var(--spacing-md);
}
.gap-lg {
  gap: var(--spacing-lg);
}
.gap-xl {
  gap: var(--spacing-xl);
}

/* ================== 溢出处理 ================== */
.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}
.overflow-scroll {
  overflow: scroll;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================== 背景色工具类 ================== */
.bg-white {
  background: var(--bg-white);
}
.bg-light {
  background: var(--bg-light);
}
.bg-pink-light {
  background: var(--bg-pink-light);
}
.bg-gradient-pink {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.bg-gradient-light {
  background: linear-gradient(90deg, var(--bg-pink-light), var(--bg-pink-lighter));
}

/* ================== 交互效果 ================== */
.cursor-pointer {
  cursor: pointer;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}

.transition-fast {
  transition: all var(--transition-fast);
}
.transition-base {
  transition: all var(--transition-base);
}
.transition-slow {
  transition: all var(--transition-slow);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-opacity:hover {
  opacity: 0.8;
}

/* ================== 收藏按钮样式 ================== */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
/*  padding: var(--spacing-md) var(--spacing-lg);*/
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}



.favorite-btn svg {
  width: 18px;
  height: 18px;
  transition: all var(--transition-base);
}

/* 已收藏状态 */
.favorite-btn.favorited {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary-dark);
}

.favorite-btn.favorited:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 已收藏状态的图标 - 实心爱心 */
.favorite-btn.favorited svg {
  fill: currentColor;
}

/* 未收藏状态的图标 - 空心爱心 */
.favorite-btn:not(.favorited) svg {
  fill: none;
}

/* ================== 显示/隐藏 ================== */
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.inline-block {
  display: inline-block;
}

/* ================== 位置工具类 ================== */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}

/* ================== 宽度工具类 ================== */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-full {
  height: 100%;
}
.h-auto {
  height: auto;
}
 a{
      text-decoration: none;
       color: inherit;
    }