* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 20px;
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* 卡片样式 */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px 35px;
  margin-bottom: 24px;
}

.card-header {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #07c160;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hidden {
  display: none !important;
}

h1 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 26px;
  color: #1a1a1a;
  width: 100%;
}

/* 登录区域 */
#login-area {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px 35px;
  max-width: 420px;
  margin: 0 auto;
}

#login-area h3 {
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: center;
}

#login-area input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  margin-bottom: 14px;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#login-area input:focus {
  border-color: #07c160;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15);
  outline: none;
}

#login-area button {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

#login-area button:hover {
  background: #06ad56;
}

#login-error {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: #f44336;
}

/* 应用区域（登录后） */
#app-area .card {
  padding: 25px 30px;
}

#app-area h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* 表单 */
#issue-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#app-area hr {
  margin: 30px 0 20px 0;
  border: none;
  border-top: 1px solid #e8e8e8;
}

#issue-form select,
#issue-form input,
#issue-form textarea {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

#issue-form select:focus,
#issue-form input:focus,
#issue-form textarea:focus {
  border-color: #07c160;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.12);
  outline: none;
}

#issue-form textarea {
  resize: vertical;
  min-height: 90px;
}

#issue-form button[type="submit"] {
  align-self: flex-start;
  padding: 10px 28px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#issue-form button[type="submit"]:hover {
  background: #06ad56;
}

/* 反馈列表 */
#issue-list {
  margin-top: 6px;
}

.issue-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 12px 0;
  background: #fafafa;
  transition: background 0.15s;
}

.issue-item:hover {
  background: #f0f0f0;
}

.issue-item .title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 4px;
}

.issue-item .title-row strong {
  font-size: 16px;
  color: #1a1a1a;
}

.issue-item .meta {
  font-size: 13px;
  color: #888;
  margin: 4px 0 8px 0;
}

.issue-item .meta span {
  margin-right: 12px;
}

.issue-item .description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  word-break: break-word;
  margin-top: 6px;
}

/* 状态标签（与 admin 保持一致） */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
}

.badge.pending {
  background: #f0ad4e;
}
.badge.processing {
  background: #5bc0de;
}
.badge.completed {
  background: #5cb85c;
}
.badge.wont_fix {
  background: #d9534f;
}
.badge.intentional {
  background: #777;
}

/* 空状态 */
.empty-state {
  text-align: center;
  color: #999;
  padding: 30px 0;
  font-size: 15px;
}

/* 响应式 */
@media (max-width: 600px) {
  .card {
    padding: 20px 18px;
  }
  #login-area {
    padding: 24px 18px;
  }
  #issue-form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}