/* 主容器 */
.main-container {
  min-height: 100vh;
  padding: calc(100px + 15px) 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

/* 卡片组件 */
.card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  backdrop-filter: var(--blur-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06),
              0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04),
              0 20px 40px -10px rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}

/* 主表单区域 */
.main-card {
  padding: 2.5rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 进度步骤 */
.progress-section {
  margin-bottom: 3rem;
}

.progress-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.25rem;
  padding: 0 calc(4.5% - 1.25rem);
}

.progress-line {
  position: absolute;
  top: 50%;
  left: calc(5% - 1.25rem + 1.25rem);
  right: calc(5% - 1.25rem + 1.25rem);
  height: 2px;
  background: var(--border-primary);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.progress-step.active {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.progress-step.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 -5%;
}

.step-label {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
}

.step-label:first-child {
  justify-content: flex-start;
  padding-left: 0;
}

.step-label:last-child {
  justify-content: flex-end;
  padding-right: 0;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  padding: 2rem;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.info-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-primary);
  transform: translateX(4px);
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-free {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.status-plus {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 日志表格 */
.log-card {
  flex: 1;
  min-height: 300px;
}

.log-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.log-table-container {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-secondary);
}

.log-table {
  width: 100%;
  border-collapse: collapse;
}

.log-table th,
.log-table td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-secondary);
}

.log-table th {
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.log-table td {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.log-table tbody tr {
  transition: background-color 0.2s ease;
}

.log-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.log-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 3rem 1rem;
}