/**
 * 安宸康养平台 v2 页面级样式
 * 首页 / 健康 / 养老 / 消息 / 我的 / 机构详情 / 下单支付
 */

/* ===== 首页 ===== */
.home-page .header-with-search {
  background: linear-gradient(180deg, #fff 0%, var(--color-surface) 100%);
}

.location-tag {
  display: inline-block;
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

/* Banner轮播 */
.banner-swiper {
  position: relative;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
}

.banner-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.banner-slide.active {
  display: block;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
}

.banner-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  margin: 0 4px;
}

.banner-dot.active {
  background: #fff;
  width: 16px;
  border-radius: 4px;
}

/* 分类入口 */
.category-grid {
  padding: 0 16px 16px;
  text-align: center;
}

.category-item {
  display: inline-block;
  width: 25%;
  padding: 8px 0;
  text-align: center;
  vertical-align: top;
}

.category-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
  line-height: 36px;
}

.category-icon svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.category-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* 推荐区 */
.section-header {
  padding: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
}

/* 瀑布流 */
.waterfall {
  padding: 0 16px;
  text-align: center;
}

.waterfall .service-card {
  display: inline-block;
  width: calc(50% - 8px);
  margin-bottom: 16px;
  text-align: left;
  vertical-align: top;
}

.waterfall .service-card:nth-child(odd) {
  margin-right: 12px;
}

/* ===== 健康/养老板块 ===== */
.filter-bar {
  padding: 8px 16px;
  border-bottom: 1px solid var(--color-surface);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 16px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  margin-right: 8px;
  cursor: pointer;
}

.filter-tag.active {
  background: var(--color-primary);
  color: #fff;
}

/* 地图/列表切换 */
.view-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
}

/* 地图容器 */
.map-container {
  width: 100%;
  height: calc(100vh - 120px);
  background: #e8e8e8;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  text-align: center;
  padding-top: 40vh;
  color: var(--color-text-muted);
}

/* 机构卡片（列表模式） */
.institution-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 12px 16px;
  padding: 16px;
  position: relative;
}

.institution-card .card-img {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  float: left;
  margin-right: 12px;
}

.institution-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.institution-card .card-content {
  overflow: hidden;
}

.institution-card .card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.institution-card .card-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.institution-card .card-meta .distance::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  vertical-align: middle;
}

.institution-card .card-tags {
  margin-bottom: 8px;
}

.institution-card .card-bottom {
  text-align: right;
}

.institution-card .card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ===== 机构详情页 ===== */
.detail-header {
  position: relative;
  width: 100%;
}

.detail-gallery {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  padding: 16px;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-rating {
  margin-bottom: 12px;
}

.detail-rating .stars {
  color: var(--color-accent);
  font-size: 18px;
}

.detail-rating .score {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
  margin-left: 4px;
}

.detail-rating .count {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-left: 8px;
}

.detail-address, .detail-phone {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-surface);
}

/* 详情Tab */
.detail-tabs {
  border-bottom: 1px solid var(--color-surface);
  text-align: center;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.detail-tab {
  display: inline-block;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.detail-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.detail-tab-content {
  display: none;
  padding: 16px;
}

.detail-tab-content.active {
  display: block;
}

.detail-section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 16px 0 12px;
}

.qualification-img {
  width: calc(50% - 8px);
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: inline-block;
  margin: 0 4px 8px;
  vertical-align: top;
}

.qualification-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-list-item {
  padding: 16px;
  border-bottom: 1px solid var(--color-surface);
}

.service-list-item .service-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-list-item .service-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

/* ===== 消息板块 ===== */
.conversation-item {
  padding: 16px;
  border-bottom: 1px solid var(--color-surface);
  position: relative;
  min-height: 80px;
}

.conversation-item .avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  float: left;
  margin-right: 12px;
  background: var(--color-surface);
  overflow: hidden;
}

.conversation-item .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-item .conv-info {
  overflow: hidden;
}

.conversation-item .conv-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.conversation-item .conv-preview {
  font-size: 16px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item .conv-time {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.conversation-item .conv-badge {
  position: absolute;
  top: 40px;
  right: 16px;
  min-width: 20px;
  height: 20px;
  background: var(--color-danger);
  color: #fff;
  font-size: 12px;
  border-radius: var(--radius-full);
  text-align: center;
  line-height: 20px;
  padding: 0 6px;
}

/* ===== 我的（个人中心） ===== */
.profile-header {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255,255,255,0.3);
  margin: 0 auto 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 14px;
}

/* 快捷入口 */
.quick-actions {
  padding: 16px;
  text-align: center;
  background: var(--color-bg);
  margin-top: -16px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  z-index: 1;
}

.quick-action-item {
  display: inline-block;
  width: 25%;
  padding: 12px 0;
  text-align: center;
  vertical-align: top;
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
  line-height: 44px;
}

.quick-action-icon svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.quick-action-label {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* 功能列表 */
.menu-list {
  margin: 0 16px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.menu-item {
  padding: 16px;
  border-bottom: 1px solid var(--color-surface);
  position: relative;
  min-height: 56px;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item .menu-icon {
  width: 24px;
  height: 24px;
  float: left;
  margin-right: 12px;
  margin-top: 2px;
}

.menu-item .menu-icon svg {
  width: 100%;
  height: 100%;
}

.menu-item .menu-text {
  font-size: 18px;
  line-height: 28px;
}

.menu-item .menu-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

/* ===== 下单支付页 ===== */
.checkout-page {
  background: var(--color-surface);
  min-height: 100vh;
}

.checkout-page .header {
  background: var(--color-bg);
}

.checkout-section {
  background: var(--color-bg);
  margin-bottom: 12px;
  padding: 16px;
}

.checkout-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-summary {
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.service-summary .summary-img {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  float: left;
  margin-right: 12px;
}

.service-summary .summary-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-summary .summary-info {
  overflow: hidden;
}

.service-summary .summary-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-summary .summary-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--color-border-focus);
}

.payment-method {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}

.payment-method.selected {
  border-color: var(--color-primary);
  background: #F0F9FF;
}

.payment-method .pm-icon {
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 12px;
}

.payment-method .pm-info {
  overflow: hidden;
}

.payment-method .pm-name {
  font-size: 18px;
  font-weight: 500;
}

.payment-method .pm-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

.payment-method .pm-check {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
}

.amount-row {
  padding: 8px 0;
  font-size: 18px;
}

.amount-row .amount-label {
  color: var(--color-text-secondary);
}

.amount-row .amount-value {
  float: right;
}

.amount-row.total {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 8px;
}

.amount-row.total .amount-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ===== 上传组件（安全修复） ===== */
.upload-area {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 24px;
  cursor: pointer;
  background: var(--color-surface);
}

.upload-area.dragover {
  border-color: var(--color-primary);
  background: #F0F9FF;
}

.upload-area .upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
}

.upload-area .upload-text {
  font-size: 16px;
  color: var(--color-text-muted);
}

.upload-area .upload-hint {
  font-size: 14px;
  color: var(--color-text-placeholder);
  margin-top: 4px;
}

.upload-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: inline-block;
  margin: 0 8px 8px 0;
  vertical-align: top;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview .upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  cursor: pointer;
}

.upload-error {
  color: var(--color-danger);
  font-size: 16px;
  margin-top: 8px;
}

/* ===== 状态标签 ===== */
.status-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-paid { background: #DBEAFE; color: #1E40AF; }
.status-completed { background: #D1FAE5; color: #065F46; }

/* ===== 响应式 ===== */
@media (max-width: 375px) {
  .waterfall .service-card {
    width: 100%;
    margin-right: 0;
  }
  .category-item {
    width: 25%;
  }
}

@media (min-width: 768px) {
  .app-container {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
  }
  .tab-bar, .voice-button {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
  .header {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
}


/* ===== 聊天面板 ===== */
.chat-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--color-surface);
  overflow: hidden;
}

.chat-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 16px;
  height: 56px;
}

.chat-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.chat-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 32px;
}

.chat-messages {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 68px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
}

.chat-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  padding: 10px 12px;
  min-height: 56px;
}

.chat-input {
  width: calc(100% - 72px);
  height: 44px;
  padding: 10px 14px;
  font-size: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  outline: none;
  -webkit-appearance: none;
  float: left;
}

.chat-input:focus {
  border-color: var(--color-border-focus);
}

.chat-send-btn {
  width: 60px;
  height: 44px;
  margin-left: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  float: left;
}

.chat-send-btn:active {
  background: var(--color-primary-hover);
}

.chat-send-btn:disabled {
  background: var(--color-border);
  color: var(--color-text-placeholder);
}

/* 消息气泡 */
.chat-message-row {
  overflow: hidden;
  margin-bottom: 12px;
}

.chat-message-row.sent {
  text-align: right;
}

.chat-message-row.received {
  text-align: left;
}

.chat-bubble {
  display: inline-block;
  max-width: 70%;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  word-wrap: break-word;
  text-align: left;
}

.chat-bubble.sent {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  background: #fff;
  color: var(--color-text-primary);
  border: 1px solid #E5E7EB;
  border-bottom-left-radius: 4px;
}

.chat-message-time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  clear: both;
}

.chat-message-row.sent .chat-message-time {
  text-align: right;
  padding-right: 4px;
}

.chat-message-row.received .chat-message-time {
  text-align: left;
  padding-left: 4px;
}

/* 聊天空状态 */
.chat-empty {
  text-align: center;
  padding-top: 40vh;
  color: var(--color-text-muted);
  font-size: 16px;
}

/* 消息加载中 */
.chat-loading-more {
  text-align: center;
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}


/* ===== 机构标记（X5兼容，无flex） ===== */

/* 卡片小标记 */
.badge-verified {
  display: inline-block;
  vertical-align: middle;
  background: #ECFDF5;
  color: #065F46;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid #A7F3D0;
  line-height: 1.4;
  margin-right: 6px;
}
.badge-verified .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #059669;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  color: #fff;
  font-size: 9px;
  vertical-align: middle;
  margin-right: 4px;
}

.badge-unverified {
  display: inline-block;
  vertical-align: middle;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  line-height: 1.4;
  margin-right: 6px;
}
.badge-unverified .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #9CA3AF;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  color: #fff;
  font-size: 9px;
  vertical-align: middle;
  margin-right: 4px;
}

.badge-star {
  display: inline-block;
  vertical-align: middle;
  background: #FFFBEB;
  color: #92400E;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid #FDE68A;
  line-height: 1.4;
  margin-right: 6px;
}
.badge-star .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  text-align: center;
  line-height: 14px;
  color: #F59E0B;
  font-size: 12px;
  vertical-align: middle;
  margin-right: 4px;
}

/* 详情页大标记 */
.badge-verified-lg {
  display: inline-block;
  vertical-align: middle;
  background: #ECFDF5;
  color: #065F46;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  border: 1px solid #A7F3D0;
  line-height: 1.4;
  margin-right: 8px;
}
.badge-verified-lg .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #059669;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  color: #fff;
  font-size: 11px;
  vertical-align: middle;
  margin-right: 6px;
}

.badge-unverified-lg {
  display: inline-block;
  vertical-align: middle;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  line-height: 1.4;
  margin-right: 8px;
}
.badge-unverified-lg .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #9CA3AF;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  color: #fff;
  font-size: 11px;
  vertical-align: middle;
  margin-right: 6px;
}

.badge-star-lg {
  display: inline-block;
  vertical-align: middle;
  background: #FFFBEB;
  color: #92400E;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  border: 1px solid #FDE68A;
  line-height: 1.4;
  margin-right: 8px;
}
.badge-star-lg .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  color: #F59E0B;
  font-size: 15px;
  vertical-align: middle;
  margin-right: 6px;
}

/* 卡片标记行 */
.card-badges {
  margin-bottom: 6px;
}

/* 地图Marker（备用样式） */
.pin-verified {
  width: 36px;
  height: 36px;
  background: #059669;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  text-align: center;
  line-height: 36px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pin-verified span {
  display: inline-block;
  transform: rotate(45deg);
}

.pin-unverified {
  width: 36px;
  height: 36px;
  background: #9CA3AF;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  text-align: center;
  line-height: 36px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pin-unverified span {
  display: inline-block;
  transform: rotate(45deg);
}

.pin-star {
  width: 36px;
  height: 36px;
  background: #F59E0B;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  text-align: center;
  line-height: 36px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pin-star span {
  display: inline-block;
  transform: rotate(45deg);
}

/* ===== SOS紧急求助按钮 ===== */
.sos-btn-home {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 101;
  cursor: pointer;
}

.sos-btn-ring {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  text-align: center;
  line-height: 56px;
  animation: sosPulse 2s infinite;
}

.sos-btn-inner {
  display: inline-block;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

@keyframes sosPulse {
  0%, 100% { border-color: rgba(220, 38, 38, 0.3); transform: scale(1); }
  50% { border-color: rgba(220, 38, 38, 0.6); transform: scale(1.05); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
