/*
 * 相亲信息系统 - 主样式文件
 * 粉色调为主的响应式设计
 */

/* 全局变量 */
:root {
  --primary-pink: #ff6b9d;
  --secondary-pink: #ff8fab;
  --light-pink: #ffc2d1;
  --lighter-pink: #ffe5ec;
  --accent-pink: #ff4d8a;
  --dark-pink: #d63384;
  
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #fef6f9;
  --border-color: #ffd1dc;
  --shadow: 0 2px 12px rgba(255, 107, 157, 0.15);
  --shadow-hover: 0 4px 20px rgba(255, 107, 157, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --transition: all 0.3s ease;
}

/* 基础样式 */
* {
  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: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 50%, #fff0f5 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-pink);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
}

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

/* 头部 */
.header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-icon {
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 主要内容区 */
.main {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

/* 卡片样式 */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px dashed var(--light-pink);
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-pink);
  font-weight: bold;
}

/* 用户卡片 */
.user-card {
  position: relative;
  overflow: hidden;
}

.user-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-pink);
  margin: 0 auto 15px;
  display: block;
}

.user-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-pink);
  text-align: center;
  margin-bottom: 10px;
}

.user-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.user-tag {
  background: var(--lighter-pink);
  color: var(--dark-pink);
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
}

.user-intro {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 用户列表网格 */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--accent-pink) 100%);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary-pink);
  border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
  background: var(--lighter-pink);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-pink);
  color: var(--primary-pink);
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6b9d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

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

/* 搜索栏 */
.search-bar {
  background: white;
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.search-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.search-item {
  flex: 1;
  min-width: 150px;
}

.search-btn {
  align-self: flex-end;
}

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

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: white;
  color: var(--primary-pink);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.page-link:hover,
.page-link.active {
  background: var(--primary-pink);
  color: white;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  display: block;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .user-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .user-grid {
    grid-template-columns: 1fr;
  }
  
  .search-row {
    flex-direction: column;
  }
  
  .search-item {
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
  }
}

/* 装饰元素 */
.heart-decoration {
  position: fixed;
  font-size: 3rem;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* 提示信息 */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.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;
}

/* VIP标签 */
.vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.status-hidden {
  background: #e2e3e5;
  color: #383d41;
}
