/**
 * RolePilot 网站 - 组件样式
 * 赛博朋克风格按钮、卡片等
 */

/* ========== 战术按钮 ========== */
.rp-btn-cyber {
  position: relative;
  padding: 18px 50px;
  font-family: var(--rp-font-mono);
  font-size: var(--rp-text-lg);
  font-weight: bold;
  color: var(--rp-bg-color);
  background: var(--rp-primary);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  transition: 0.3s;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.rp-btn-cyber:hover {
  background: white;
  box-shadow: 0 0 30px var(--rp-primary);
  color: black;
}

/* 按钮扫描光 */
.rp-btn-cyber::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  animation: buttonScan 3s infinite;
}

@keyframes buttonScan {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.rp-btn-ghost {
  background: transparent;
  color: var(--rp-primary);
  border: 1px solid var(--rp-primary);
}

.rp-btn-ghost:hover {
  background: rgba(0, 243, 255, 0.1);
  color: white;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.rp-btn-large {
  padding: 20px 60px;
  font-size: var(--rp-text-xl);
}

/* ========== 功能卡片 ========== */
.rp-feature-card {
  position: relative;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  transition: all var(--rp-transition-normal);
  clip-path: polygon(
    0 var(--rp-cut-md),
    var(--rp-cut-md) 0,
    100% 0,
    100% calc(100% - var(--rp-cut-md)),
    calc(100% - var(--rp-cut-md)) 100%,
    0 100%
  );
  backdrop-filter: blur(5px);
}

.rp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  border-color: var(--rp-accent);
}

/* 卡片顶部强调线 */
.rp-feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--rp-cut-md);
  right: 0;
  height: 3px;
  background: var(--rp-accent);
  box-shadow: 0 0 10px var(--rp-accent);
  opacity: 0.8;
  transition: opacity var(--rp-transition-fast);
}

.rp-feature-card:hover::after {
  opacity: 1;
}

/* 演示区域 */
.rp-feature-demo {
  height: 200px;
  padding: var(--rp-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--rp-border);
  overflow: hidden;
}

/* 信息区域 */
.rp-feature-info {
  padding: var(--rp-space-lg);
}

.rp-feature-title {
  font-size: var(--rp-text-lg);
  margin-bottom: var(--rp-space-sm);
  color: var(--rp-text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rp-feature-desc {
  font-size: var(--rp-text-sm);
  color: var(--rp-text-secondary);
  margin-bottom: var(--rp-space-md);
  line-height: 1.75;
  letter-spacing: 0.02em;
  font-family: var(--rp-font-sans);
}

.rp-feature-link {
  font-size: var(--rp-text-sm);
  color: var(--rp-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--rp-space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rp-feature-link:hover {
  text-shadow: 0 0 10px var(--rp-accent);
}

/* ========== 滚动动画状态 ========== */
.rp-animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rp-animate-in.rp-visible {
  opacity: 1;
  transform: translateY(0);
}
