/* 身高查询主页面样式 - SVG优化版本 */

/* ===============================
   CSS变量（继承自base.css）
   =============================== */

.height-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ===============================
   SVG 图标通用样式
   =============================== */
svg {
    flex-shrink: 0;
}

.icon-large {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-icon-sm {
    width: 14px;
    height: 14px;
}

.section-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* 旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 2s linear infinite;
}

/* ===============================
   代币显示区域
   =============================== */
.token-section {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.token-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-icon {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.token-label {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.token-value {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    margin-left: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-variant-numeric: tabular-nums;
}

.exchange-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(244, 196, 103, 0.3);
}

.exchange-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 196, 103, 0.4);
}

.exchange-btn:active {
    transform: translateY(0);
}

.exchange-btn .btn-icon {
    color: var(--white);
}

/* ===============================
   功能模块区域
   =============================== */
.function-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.function-block {
    background: var(--card-background);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.function-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

/* 账号管理模块 */
.account-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(91, 163, 197, 0.1), rgba(91, 163, 197, 0.05));
    border-radius: 16px;
}

.block-title {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.block-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.block-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(91, 163, 197, 0.3);
}

.block-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 163, 197, 0.4);
}

/* 查询模块 */
.query-block {
    padding: 20px;
}

.query-block .block-icon {
    margin: 0 auto 12px;
}

.query-block .block-title,
.query-block .block-description {
    text-align: center;
}

/* ===============================
   待处理请求样式
   =============================== */
.pending-request {
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.1), rgba(244, 196, 103, 0.05));
    border-radius: 10px;
    padding: 18px;
    border: 1px solid rgba(244, 196, 103, 0.3);
}

.pending-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pending-icon {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
}

.pending-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.pending-info {
    display: grid;
    gap: 8px;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--card-background);
    border-radius: 6px;
    font-size: 13px;
}

.pending-item.queue-item {
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.15), rgba(244, 196, 103, 0.08));
}

.pending-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.pending-value {
    color: var(--text-color);
    font-weight: 500;
    font-size: 13px;
}

.pending-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.queue-position {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.pending-actions {
    margin-top: 14px;
    text-align: center;
}

.cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #ff7875;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.cancel-btn .btn-icon-sm {
    color: white;
}

/* ===============================
   查询表单样式
   =============================== */
.query-form-container {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-title {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 2px;
}

/* 账号选择器 */
.account-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.account-option {
    position: relative;
}

.account-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--background-secondary), var(--card-background));
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.account-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.account-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(91, 163, 197, 0.12), rgba(91, 163, 197, 0.06));
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(91, 163, 197, 0.2);
}

.account-option input[type="radio"]:checked + label::before {
    transform: scaleX(1);
}

.account-option label:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 163, 197, 0.15);
}

/* 好友码输入框 */
.friend-code-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    background: var(--card-background);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.friend-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 163, 197, 0.1), 0 2px 8px rgba(91, 163, 197, 0.15);
}

.friend-code-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 1px;
}

.friend-code-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-left: 2px;
    color: var(--text-secondary);
    font-size: 12px;
}

.hint-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

/* 通道选择器 */
.channel-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.channel-option {
    position: relative;
}

.channel-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.channel-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--background-secondary), var(--card-background));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.channel-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), var(--secondary-light));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.channel-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.1), rgba(244, 196, 103, 0.05));
    border-color: var(--secondary-color);
    box-shadow: 0 2px 12px rgba(244, 196, 103, 0.2);
}

.channel-option input[type="radio"]:checked + label::before {
    transform: scaleY(1);
}

.channel-option label:hover {
    border-color: var(--secondary-light);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(244, 196, 103, 0.15);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.channel-icon svg {
    width: 26px;
    height: 26px;
}

.token-channel-icon {
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.2), rgba(244, 196, 103, 0.1));
}

.token-channel-icon svg {
    color: var(--secondary-color);
}

.heart-channel-icon {
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.2), rgba(255, 107, 129, 0.1));
}

.channel-selector .heart-channel-icon svg {
    fill: #ff6b81;
}

.channel-details {
    flex: 1;
}

.channel-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.channel-cost {
    color: var(--text-secondary);
    font-size: 13px;
}

.queue-info {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--primary-light);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
}

.queue-icon {
    width: 14px;
    height: 14px;
}

/* 提交按钮 */
.submit-query-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(91, 163, 197, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-query-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-query-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 163, 197, 0.4);
}

.submit-query-btn:hover:not(:disabled)::after {
    width: 400px;
    height: 400px;
}

.submit-query-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.submit-query-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-query-btn.heart-channel {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 12px rgba(244, 196, 103, 0.3);
}

.submit-query-btn.heart-channel:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(244, 196, 103, 0.4);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 24px 16px;
}

.empty-text {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 14px;
}

/* ===============================
   查询历史记录 - 更紧凑
   =============================== */
.recent-queries-section {
    margin-top: 20px;
    background: var(--card-background);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.recent-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.recent-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.query-history {
    display: grid;
    gap: 8px;
}

.query-record {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    background: var(--background-secondary);
    border-radius: 6px;
    font-size: 13px;
}

.query-record:hover {
    box-shadow: 0 2px 8px var(--shadow-color);
}

.query-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 6px;
}

.query-status svg {
    display: none;
}

.query-status.success {
    background: #52c41a;
}

.query-status.failed {
    background: #ff4d4f;
}

.query-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.query-account {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.query-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.meta-icon {
    width: 14px;
    height: 14px;
}

.query-meta .meta-icon.heart {
    fill: #ff6b81;
}

.meta-icon.token {
    color: var(--secondary-color);
}

.meta-divider {
    color: var(--border-color);
}

/* 查询结果详情 - 优化布局 */
.query-result-detail {
    margin-top: 8px;
    padding: 10px;
    background: var(--card-background);
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.result-timestamp {
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 8px;
}

.timestamp-icon {
    width: 12px;
    height: 12px;
}

/* 身高数据展示 - 重新设计 */
.height-data-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(91, 163, 197, 0.05);
    border-radius: 6px;
}

.height-data-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.data-header-icon {
    width: 14px;
    height: 14px;
}

/* 三个身高值一行展示 */
.height-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.height-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--card-background);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.height-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(91, 163, 197, 0.15);
}

/* 当前身高突出显示 */
.height-item.current-height {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.08), rgba(244, 196, 103, 0.04));
    border: 1px solid rgba(244, 196, 103, 0.3);
}

.height-label {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.height-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.height-item.current-height .height-value {
    color: var(--secondary-color);
    font-size: 20px;
}

/* 体型值单独一行 */
.body-type-row {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: var(--card-background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.body-type-item {
    text-align: center;
}

.body-type-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-right: 8px;
    display: inline-block;
}

.body-type-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-dark);
    display: inline-block;
}

/* 服饰装备响应式网格 */
.outfit-data {
    margin-top: 10px;
}

.outfit-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    padding-left: 2px;
}

.outfit-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-light);
}

.outfit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.outfit-item {
    padding: 6px;
    background: var(--background-secondary);
    border-radius: 4px;
    text-align: center;
    font-size: 11px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.outfit-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.outfit-type {
    color: var(--text-secondary);
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
}

.outfit-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 11px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 查询失败结果 */
.query-result.error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 77, 79, 0.08);
    border-radius: 6px;
    color: #ff4d4f;
    font-size: 13px;
}

.error-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===============================
   模态框样式
   =============================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background-color: var(--card-background);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.08), transparent);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.modal-title-icon {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--background-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.close-btn:hover {
    background: var(--border-color);
}

.close-btn:hover svg {
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

/* 当前爱心显示 */
.current-hearts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--background-secondary);
    border-radius: 10px;
    margin-bottom: 18px;
}

.hearts-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.hearts-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hearts-display span {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.current-hearts .hearts-icon {
    width: 22px;
    height: 22px;
    fill: #ff6b81;
}

/* 兑换选项 */
.exchange-options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.exchange-option {
    position: relative;
}

.exchange-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.exchange-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--background-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(244, 196, 103, 0.12), rgba(244, 196, 103, 0.06));
    border-color: var(--secondary-color);
}

.exchange-option label:hover {
    border-color: var(--primary-light);
    transform: translateX(3px);
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-tokens {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.option-icon {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
}

.option-hearts {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 30px;
}

.option-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* 兑换提交按钮 */
.exchange-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 196, 103, 0.3);
}

.exchange-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 103, 0.4);
}

.exchange-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 无爱心提示 */
.no-hearts {
    text-align: center;
    padding: 24px 16px;
}

.no-hearts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 107, 129, 0.1);
    border-radius: 50%;
}

.no-hearts .no-hearts-icon svg {
    width: 32px;
    height: 32px;
    fill: #ff6b81;
    opacity: 0.5;
}

.no-hearts p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.no-hearts .sub-text {
    font-size: 13px;
    margin-bottom: 16px;
}

.zero-hearts {
    color: #ff4d4f;
    font-weight: bold;
    font-size: 18px;
}

/* 登录提示 */
.login-prompt {
    text-align: center;
    padding: 24px 16px;
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(91, 163, 197, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 163, 197, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(244, 196, 103, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 196, 103, 0.4);
}

/* ===============================
   动画
   =============================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===============================
   深色模式支持
   =============================== */
@media (prefers-color-scheme: dark) {
    .token-section {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    }
    
    .function-block {
        background: var(--card-background);
        border-color: var(--border-color);
    }
    
    .block-icon {
        background: linear-gradient(135deg, rgba(91, 163, 197, 0.15), rgba(91, 163, 197, 0.08));
    }
    
    .pending-request {
        background: linear-gradient(135deg, rgba(244, 196, 103, 0.12), rgba(244, 196, 103, 0.06));
        border-color: rgba(244, 196, 103, 0.4);
    }
    
    .pending-item {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .pending-item.queue-item {
        background: linear-gradient(135deg, rgba(244, 196, 103, 0.2), rgba(244, 196, 103, 0.1));
    }
    
    .account-option label {
        background: linear-gradient(135deg, var(--background-secondary), rgba(0, 0, 0, 0.1));
    }
    
    .account-option input[type="radio"]:checked + label {
        background: linear-gradient(135deg, rgba(91, 163, 197, 0.15), rgba(91, 163, 197, 0.08));
    }
    
    .friend-code-input {
        background: var(--background-secondary);
        border-color: var(--border-color);
    }
    
    .friend-code-input:focus {
        background: var(--card-background);
    }
    
    .channel-option label {
        background: linear-gradient(135deg, var(--background-secondary), rgba(0, 0, 0, 0.1));
    }
    
    .channel-option input[type="radio"]:checked + label {
        background: linear-gradient(135deg, rgba(244, 196, 103, 0.15), rgba(244, 196, 103, 0.08));
    }
    
    .queue-info {
        background: rgba(91, 163, 197, 0.3);
    }
    
    .query-record {
        background: var(--background-secondary);
    }
    
    .query-result-detail {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .height-data-grid {
        background: rgba(91, 163, 197, 0.1);
    }
    
    .height-item {
        background: var(--background-secondary);
        border: 1px solid var(--border-color);
    }
    
    .height-item.current-height {
        background: linear-gradient(135deg, rgba(244, 196, 103, 0.15), rgba(244, 196, 103, 0.08));
        border-color: rgba(244, 196, 103, 0.4);
    }
    
    .body-type-row {
        background: var(--background-secondary);
        border-color: var(--border-color);
    }
    
    .outfit-item {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border-color);
    }
    
    .outfit-item:hover {
        background: rgba(91, 163, 197, 0.12);
        border-color: var(--primary-light);
    }
    
    .modal-content {
        background: var(--card-background);
    }
    
    .modal-header {
        background: linear-gradient(135deg, rgba(244, 196, 103, 0.12), transparent);
    }
    
    .exchange-option label {
        background: var(--background-secondary);
    }
    
    .exchange-option input[type="radio"]:checked + label {
        background: linear-gradient(135deg, rgba(244, 196, 103, 0.18), rgba(244, 196, 103, 0.1));
    }
    
    .current-hearts {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .no-hearts-icon {
        background: rgba(255, 107, 129, 0.15);
    }
}

/* ===============================
   响应式设计 - 平板
   =============================== */
@media (max-width: 768px) {
    .height-container {
        padding: 12px;
    }
    
    .token-section {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .token-value {
        font-size: 24px;
    }
    
    .token-icon {
        width: 24px;
        height: 24px;
    }
    
    .function-blocks {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .function-block {
        padding: 20px;
        border-radius: 10px;
    }
    
    .block-icon {
        width: 56px;
        height: 56px;
    }
    
    .icon-large {
        width: 32px;
        height: 32px;
    }
    
    .block-title {
        font-size: 16px;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .account-selector {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .channel-option label {
        padding: 14px;
    }
    
    .channel-icon {
        width: 40px;
        height: 40px;
    }
    
    .channel-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .channel-name {
        font-size: 14px;
    }
    
    .channel-cost {
        font-size: 12px;
    }
    
    /* 服饰装备响应式 */
    .outfit-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    
}

/* ===============================
   响应式设计 - 手机
   =============================== */
@media (max-width: 480px) {
    .height-container {
        padding: 10px;
    }
    
    /* 代币区域优化 */
    .token-section {
        padding: 12px 14px;
    }
    
    .token-display {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .token-info {
        flex: 1;
        min-width: 0;
    }
    
    .token-label {
        font-size: 13px;
    }
    
    .token-value {
        font-size: 22px;
        margin-left: 0;
    }
    
    .exchange-btn {
        flex: 0 0 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* 功能模块优化 */
    .function-block {
        padding: 16px;
    }
    
    .block-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    
    .icon-large {
        width: 28px;
        height: 28px;
    }
    
    .block-title {
        font-size: 15px;
    }
    
    .block-description {
        font-size: 12px;
    }
    
    .block-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 表单优化 */
    .account-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .account-option label {
        padding: 12px;
    }
    
    .friend-code-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .channel-selector {
        gap: 10px;
    }
    
    .channel-option label {
        padding: 12px 14px;
    }
    
    .channel-info {
        gap: 10px;
    }
    
    .channel-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .channel-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .channel-name {
        font-size: 13px;
    }
    
    .channel-cost {
        font-size: 11px;
    }
    
    .queue-info {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .queue-icon {
        width: 12px;
        height: 12px;
    }
    
    .submit-query-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    /* 待处理请求优化 */
    .pending-request {
        padding: 14px;
    }
    
    .pending-header {
        margin-bottom: 12px;
    }
    
    .pending-icon {
        width: 18px;
        height: 18px;
    }
    
    .pending-title {
        font-size: 14px;
    }
    
    .pending-item {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .queue-position {
        font-size: 18px;
    }
    
    .cancel-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 查询历史优化 */
    .recent-queries-section {
        padding: 12px;
        border-radius: 8px;
    }
    
    .recent-title {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 8px;
    }
    
    .recent-title::before {
        width: 2px;
        height: 12px;
    }
    
    .query-history {
        gap: 6px;
    }
    
    .query-record {
        padding: 8px;
        gap: 8px;
    }
    
    .query-status {
        width: 5px;
        height: 5px;
        margin-top: 5px;
    }
    
    .query-account {
        font-size: 13px;
    }
    
    .query-meta {
        font-size: 10px;
    }
    
    /* 身高数据优化 */
    .query-result-detail {
        padding: 8px;
        margin-top: 6px;
    }
    
    .height-data-grid {
        padding: 8px;
        gap: 8px;
    }
    
    .height-row {
        gap: 6px;
    }
    
    .height-item {
        padding: 6px;
    }
    
    .height-item.current-height {
        flex: 1;
    }
    
    .height-label {
        font-size: 9px;
    }
    
    .height-value {
        font-size: 14px;
    }
    
    .height-item.current-height .height-value {
        font-size: 16px;
    }
    
    .body-type-row {
        padding: 6px;
    }
    
    .body-type-label {
        font-size: 10px;
    }
    
    .body-type-value {
        font-size: 14px;
    }
    
    /* 服饰装备 - 2列布局 */
    .outfit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .outfit-item {
        padding: 6px;
    }
    
    .outfit-name {
        font-size: 10px;
    }
    
    /* 模态框优化 */
    .modal.show {
        padding: 12px;
    }
    
    .modal-content {
        border-radius: 14px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-title-icon {
        width: 20px;
        height: 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .current-hearts {
        padding: 12px 14px;
    }
    
    .hearts-display span {
        font-size: 20px;
    }
    
    .hearts-icon {
        width: 20px;
        height: 20px;
    }
    
    .exchange-option label {
        padding: 14px;
    }
    
    .option-tokens {
        font-size: 14px;
    }
    
    .option-icon {
        width: 20px;
        height: 20px;
    }
    
    .option-hearts {
        font-size: 12px;
        margin-left: 28px;
    }
    
    .exchange-submit-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .no-hearts-icon {
        width: 56px;
        height: 56px;
    }
    
    .no-hearts-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    
}

/* ===============================
   超小屏幕优化
   =============================== */
@media (max-width: 360px) {
    .token-section {
        padding: 10px 12px;
    }
    
    .token-icon {
        width: 20px;
        height: 20px;
    }
    
    .token-label {
        font-size: 12px;
    }
    
    .token-value {
        font-size: 20px;
    }
    
    .exchange-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .height-row {
        gap: 4px;
    }
    
    .height-item {
        padding: 6px 4px;
    }
    
    .height-value {
        font-size: 13px;
    }
    
    .height-item.current-height .height-value {
        font-size: 14px;
    }
    
    .recent-queries-section {
        padding: 10px;
    }
    
    .recent-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    
}

/* ===============================
   大屏幕优化
   =============================== */
@media (min-width: 1024px) {
    .outfit-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .function-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}