/* Coupon Page */
.page{position:relative;z-index:1;padding:2.75rem 0 6rem;flex:1}
.page-container{max-width:48rem;margin:0 auto;padding:0 1rem}
.page-head{text-align:center;margin-bottom:1.5rem}
.page-title{font-size:1.8rem;font-weight:700;letter-spacing:-.03em;line-height:1.2;color:#121a31}

/* 顶部卡片 */
.top-card{
  display:flex;flex-direction:column;
  margin-bottom:1rem;padding:.75rem 1rem;
  background:#fff;border:1px solid #e0e4f0;border-radius:14px;
  box-shadow:0 1px 6px rgba(0,0,0,0.04);
  max-width:600px;margin-left:auto;margin-right:auto
}
.top-card__row{display:flex;align-items:center;justify-content:space-between;width:100%}
.top-card__title{font-size:18px;font-weight:700;color:#1a1a2e}
.top-card__left{display:flex;align-items:center;gap:8px}
.top-card__btns{display:flex;gap:8px}
.top-card__btn{
  padding:5px 14px;border:1px solid #d0d5e0;border-radius:8px;
  font-size:12px;font-weight:600;color:#56647e;
  text-decoration:none;transition:all .15s;cursor:pointer
}
.top-card__btn:hover{border-color:#1a73e8;color:#1a73e8}

.tutorial-toggle{
  display:flex;align-items:center;gap:8px;
  padding:12px 0 0;cursor:pointer;user-select:none;
  margin-top:8px;border-top:1px solid #f0f0f0;
}
.tutorial-toggle-text{flex:1;font-size:13px;color:#07c160;font-weight:600}
.tutorial-expand{display:none;padding:4px 0 0}
.tutorial-expand.show{display:block}
.tutorial-step{
  display:flex;align-items:center;gap:10px;
  font-size:13px;color:#56647e;
  padding:10px 0;border-bottom:1px solid #f0f0f0;
}
.tutorial-step:last-child{border-bottom:none}
.step-num{
  width:22px;height:22px;border-radius:50%;
  background:linear-gradient(135deg,#07c160,#06ad56);
  color:#fff;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  line-height:1;
}

/* 卡片 */
.card{
  background:#fff;
  border:1px solid #e0e4f0;
  border-radius:20px;
  padding:1.25rem;
  box-shadow:0 2px 12px rgba(0,0,0,0.06);
  max-width:600px;
  margin:0 auto;
}

/* 表单 */
.form-group{margin-bottom:1rem;position:relative}
.form-label{display:block;font-size:14px;font-weight:700;color:#1a1a2e;margin-bottom:.5rem}
.form-textarea{
  width:100%;min-height:160px;padding:1rem 1.1rem;
  border:1.5px solid #d0d5e0;border-radius:12px;
  background:#fff;color:#1a1a2e;
  resize:vertical;outline:none;transition:border-color .2s,box-shadow .2s;
  font-size:16px;line-height:1.5;
}
.form-textarea:focus{border-color:#1a73e8;box-shadow:none}
.form-textarea::placeholder{color:#9ca3af;font-size:14px}
.form-hint{margin-top:.4rem;font-size:13px;color:#8a96af;line-height:1.5}
.form-hint code{padding:.08rem .4rem;border-radius:4px;background:rgba(26,115,232,0.08);color:#1a73e8;font-size:12px}
.form-actions{display:flex;justify-content:flex-end;margin-top:.4rem}

/* 按钮 */
.clear-btn{
  padding:6px 20px;border:1px solid #d0d5e0;
  border-radius:8px;background:#fff;
  color:#8a96af;font-size:12px;font-weight:600;
  cursor:pointer;transition:all .15s;
}
.clear-btn:hover{color:#d65246;border-color:rgba(214,82,70,0.3)}

.detect-box{
  display:flex;align-items:center;gap:.5rem;
  margin-top:.4rem;padding:.4rem .85rem;
  border-radius:10px;font-size:13px;font-weight:600;
}
.detect-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.detect--info{background:rgba(26,115,232,0.06);color:#1a73e8}
.detect--info .detect-dot{background:#1a73e8}
.detect--ok{background:rgba(20,147,164,0.08);color:#0e7a88}
.detect--ok .detect-dot{background:#1493a4;box-shadow:0 0 6px rgba(20,147,164,0.5)}
.detect--warn{background:rgba(214,82,70,0.06);color:#b8443a}
.detect--warn .detect-dot{background:#d65246}

.submit-btn{
  display:flex;align-items:center;justify-content:center;
  width:100%;padding:12px;border:none;border-radius:12px;
  font-size:16px;font-weight:700;cursor:pointer;
  background:#1a73e8;color:#fff;
  box-shadow:0 8px 24px -8px rgba(26,115,232,0.4);
  transition:all .18s;
}
.submit-btn:hover{transform:translateY(-2px);box-shadow:0 12px 32px -8px rgba(26,115,232,0.45)}
.submit-btn:active{transform:translateY(0)}
.submit-btn:disabled{opacity:.65;cursor:not-allowed;transform:none}
.submit-btn.is-loading::before{
  content:'';display:inline-block;width:14px;height:14px;
  border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;
  border-radius:50%;margin-right:8px;
  animation:spin .6s linear infinite;
  vertical-align:middle
}
@keyframes spin{to{transform:rotate(360deg)}}

/* 提示 */
.alert{
  display:flex;align-items:center;gap:.65rem;
  margin-top:1.25rem;padding:.85rem 1.1rem;
  border-radius:12px;font-size:14px;font-weight:600;
}
.alert--error{background:rgba(214,82,70,0.08);border:1px solid rgba(214,82,70,0.2);color:#b8443a}
.alert__ico{
  display:flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;
  background:rgba(214,82,70,0.15);color:#d65246;
  font-size:14px;font-weight:800;flex-shrink:0;
}

/* 结果 */
.result-box{
  margin-top:1.5rem;padding:1.5rem;border-radius:16px;
  background:linear-gradient(135deg,rgba(20,147,164,0.06),rgba(26,115,232,0.04));
  border:1px solid rgba(20,147,164,0.18);
}
.result-head{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem;font-size:15px;font-weight:700;color:#0e7a88}
.result-badge{
  display:flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,#1493a4,#20c5d7);color:#fff;
  font-size:14px;font-weight:800;
}

/* 跳转按钮 */
.jump-btn{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;padding:1rem 1.35rem;
  border:1.5px solid rgba(26,115,232,0.2);border-radius:12px;
  background:linear-gradient(135deg,rgba(26,115,232,0.06),rgba(32,197,215,0.04));
  font-size:15px;font-weight:700;color:#1a73e8;
  text-decoration:none;transition:all .18s;
}
.jump-btn:hover{
  background:linear-gradient(135deg,rgba(26,115,232,0.12),rgba(32,197,215,0.08));
  border-color:rgba(26,115,232,0.35);
  transform:translateY(-2px);box-shadow:0 8px 24px -8px rgba(26,115,232,0.3);
}
.jump-btn__arrow{font-size:18px;transition:transform .18s}
.jump-btn:hover .jump-btn__arrow{transform:translateX(4px)}
.jump-btn--alt{
  margin-top:.6rem;
  background:linear-gradient(135deg,rgba(20,147,164,0.06),rgba(32,197,215,0.04));
  border-color:rgba(20,147,164,0.2);color:#0e7a88;
}

.result-poi{margin-top:.75rem;font-size:12px;color:#8a96af;text-align:center}

/* 收藏按钮 */
.fav-btn{
  display:inline-flex;align-items:center;gap:6px;
  margin-top:1rem;padding:8px 20px;
  border:1px solid #e0e4f0;border-radius:10px;
  background:#fff;color:#888;font-size:13px;font-weight:600;
  cursor:pointer;transition:all .15s;
}
.fav-btn:hover{background:#fff8e1;border-color:#ffd100;color:#b8860b}
.fav-btn.is-faved{background:#fff8e1;border-color:#ffd100;color:#b8860b}

/* 收藏区域 */
.fav-section{margin-top:0}
.fav-count{font-size:12px;color:#8a96af;font-weight:400}
.fav-toolbar{display:flex;align-items:center;gap:8px}
.fav-search{
  width:180px;padding:6px 12px;
  border:1.5px solid #d0d5e0;border-radius:8px;
  font-size:13px;outline:none;transition:border-color .2s;
}
.fav-search:focus{border-color:#1a73e8}

/* 翻页 */
.fav-pager{
  display:flex;align-items:center;justify-content:center;gap:.75rem;
  margin-top:.75rem;
}
.fav-pager__btn{
  padding:6px 14px;border:1px solid #d0d5e0;border-radius:8px;
  background:#fff;color:#56647e;font-size:13px;font-weight:600;cursor:pointer;
}
.fav-pager__btn:hover{border-color:#1a73e8;color:#1a73e8}
.fav-pager__info{font-size:12px;color:#8a96af}

/* 收藏列表项 */
.fav-item{
  padding:.75rem 1rem;border-radius:12px;
  background:rgba(255,255,255,0.8);border:1px solid #e0e4f0;
  margin-bottom:.5rem;
}
.fav-item__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem}
.fav-item__name{font-size:14px;font-weight:600;color:#1a1a2e;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fav-item__del{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:transparent;border:none;color:#8a96af;font-size:14px;cursor:pointer;transition:all .15s;flex-shrink:0}
.fav-item__del:hover{background:rgba(214,82,70,0.1);color:#d65246}
.fav-item__btns{display:flex;gap:8px}
.fav-btn-app,.fav-btn-web{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:8px 0;border-radius:10px;font-size:13px;font-weight:600;
  text-decoration:none;transition:all .15s;cursor:pointer;
}
.fav-btn-app{background:linear-gradient(135deg,#07c160,#06ad56);color:#fff;border:1px solid transparent}
.fav-btn-app:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(7,193,96,0.3)}
.fav-btn-web{background:#fff;color:#1a73e8;border:1px solid #d0d8f0}
.fav-btn-web:hover{background:#f0f4ff;border-color:#1a73e8}

/* 查询历史 */
.history-section{margin-top:1rem}
.history-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.history-title{font-size:15px;font-weight:700;color:#56647e}
.history-clear{padding:4px 12px;border:1px solid #e0e4f0;border-radius:8px;background:transparent;color:#8a96af;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s}
.history-clear:hover{color:#d65246;border-color:rgba(214,82,70,0.3)}
.history-list{display:flex;flex-direction:column;gap:.5rem}
.history-item{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding:.65rem 1rem;border-radius:10px;
  background:rgba(255,255,255,0.6);border:1px solid #e0e4f0;
  cursor:pointer;transition:all .15s;
}
.history-item:hover{background:#fff;border-color:#c0c8d8}
.history-item__poi{font-size:13px;font-weight:600;color:#1a1a2e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.history-item__time{font-size:11px;color:#8a96af;flex-shrink:0}
.history-item__del{
  width:22px;height:22px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;background:transparent;border:none;
  color:#8a96af;font-size:14px;cursor:pointer;transition:all .15s;flex-shrink:0;
}
.history-item__del:hover{background:rgba(214,82,70,0.1);color:#d65246}

/* 弹窗 */
.modal{
  display:none;position:fixed;top:0;left:0;
  width:100%;height:100%;
  background:rgba(0,0,0,0.5);z-index:999;
  align-items:center;justify-content:center;
}
.modal__box{
  background:#fff;border-radius:16px;padding:2rem;
  max-width:360px;width:90%;text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
}
.modal__title{margin:0 0 1rem;font-size:18px;color:#1a1a2e}
.modal__text{margin:0 0 .5rem;font-size:14px;color:#56647e}
.modal__text--sub{margin-bottom:1.5rem;font-size:13px;color:#8a96af}
.modal__btn{
  padding:8px 32px;border:none;border-radius:10px;
  background:linear-gradient(135deg,#07c160,#06ad56);
  color:#fff;font-size:14px;font-weight:600;cursor:pointer;
}

/* 响应式 */
@media(max-width:639px){
  .page-title{font-size:1.5rem}
  .card{padding:1.25rem;border-radius:16px}
  .page{padding:1.5rem 0 4rem}
  .fav-search{width:120px}
}

/* 底部 */

/* 品牌图标 */
.brand-icon{background:transparent !important;box-shadow:none !important}
.brand-icon::after{display:none !important}

/* FAQ 弹窗样式 */
.modal__box--faq {
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.modal__faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.modal__faq-header .modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.modal__close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.faq-list {
  padding: 0 0 8px;
}
.faq-item {
  border-bottom: 1px solid #f0f0f0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.faq-question:active {
  background: #f8f8f8;
}
.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f7ef;
  color: #07c160;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.faq-text {
  flex: 1;
  margin-left: 12px;
  font-size: 15px;
  color: #222;
  font-weight: 500;
}
.faq-arrow {
  font-size: 18px;
  color: #c9c9c9;
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}
.faq-item.active .faq-arrow {
  transform: rotate(90deg);
  color: #07c160;
}
.faq-answer {
  display: none;
  padding: 0 24px 16px 70px;
  font-size: 14px;
  color: #07c160;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  display: block;
}

/* 联系弹窗样式 */
.modal__box--contact {
  max-width: 400px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.contact-list {
  padding: 8px 0 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label {
  font-size: 12px;
  color: #8a96af;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.contact-copy {
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.contact-copy:hover {
  background: linear-gradient(135deg, #06ad56, #059c4d);
  transform: translateY(-1px);
}
.contact-copy.copied {
  background: #ccc;
}