* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 15px 10px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding: 20px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 20px 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.5s ease-out;
  overflow: visible;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 40px;
  }
}

h1 {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  padding: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  h1 {
    font-size: 36px;
    margin-bottom: 30px;
  }
}

h2 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  h2 {
    font-size: 24px;
  }
}

h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

h3 {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 768px) {
  h3 {
    font-size: 18px;
  }
}

/* 标签页 */
.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 20px 0;
  background: #f7fafc;
  padding: 6px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .tabs {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 8px;
    margin-bottom: 25px;
  }
}

.tab-btn {
  padding: 14px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #718096;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  z-index: auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .tab-btn {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 56px;
  }
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.tab-btn:hover {
  color: #667eea;
  transform: translateY(-2px);
}

.tab-btn.active {
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tab-btn.active::before {
  opacity: 1;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active {
  display: block;
}

/* 表单 */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2d3748;
  font-size: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f7fafc;
  color: #2d3748;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

/* 按钮 */
.btn-primary,
.btn-refresh,
.btn-danger {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-refresh {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-refresh:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
}

@media (max-width: 767px) {
  .btn-primary,
  .btn-refresh {
    width: 100%;
    padding: 16px;
  }
}

/* 消息提示 */
.message {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  display: none;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
  color: #22543d;
  border-left: 4px solid #48bb78;
  display: block;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.2);
}

.message.success::before {
  content: '✅ ';
}

.message.error {
  background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
  color: #742a2a;
  border-left: 4px solid #f56565;
  display: block;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.2);
}

.message.error::before {
  content: '❌ ';
}

/* 警告提示 */
.alert {
  display: none;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
  border-left: 5px solid #f56565;
  margin-bottom: 20px;
  border-radius: 12px;
  font-weight: 600;
  color: #742a2a;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.alert.show {
  display: block;
}

/* 租赁列表 */
#active-rentals-list {
  display: grid;
  gap: 15px;
}

@media (min-width: 768px) {
  #active-rentals-list {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

.rental-item {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.rental-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.rental-item:hover {
  border-color: #667eea;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

.rental-item.expiring {
  border-color: #f56565;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  animation: pulse 2s infinite;
}

.rental-item.expiring::before {
  background: linear-gradient(90deg, #f56565 0%, #e53e3e 100%);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 101, 101, 0);
  }
}

.rental-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rental-number {
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.rental-device {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.rental-device::before {
  content: '📱';
  margin-right: 5px;
}

.rental-device[data-type="pc"]::before {
  content: '💻';
}

.rental-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
  background: white;
  padding: 15px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .rental-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  color: #a0aec0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #2d3748;
  font-weight: 700;
  font-size: 15px;
}

.countdown {
  font-size: 20px;
  font-weight: 900;
  color: #48bb78;
  margin-bottom: 15px;
  text-align: center;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rental-item.expiring .countdown {
  color: #f56565;
}

/* 号码列表 */
#numbers-list {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  #numbers-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.number-item {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.number-item:hover {
  border-color: #667eea;
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.number-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.number-text {
  font-size: 20px;
  font-weight: 800;
  color: #2d3748;
  letter-spacing: 0.5px;
}

.number-name {
  color: #718096;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  background: white;
  border-radius: 8px;
  display: inline-block;
  width: fit-content;
}

.add-number-form {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 2px solid #e2e8f0;
}

/* 统计页面 */
.stats-container {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stats-section {
  background: #f7fafc;
  padding: 20px;
  border-radius: 16px;
}

.stats-section h3 {
  margin-bottom: 20px;
  color: #2d3748;
  font-size: 20px;
}

.stats-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.stats-card:hover {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.stats-title {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.stats-row:last-child {
  border-bottom: none;
}

.stats-profit {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #667eea;
  font-weight: 700;
}

.stats-value {
  color: #48bb78;
  font-weight: 700;
}

.stats-cost {
  color: #f56565;
  font-weight: 700;
}

.stats-value-big {
  color: #667eea;
  font-size: 20px;
  font-weight: 900;
}

/* Excel导入区域 */
.import-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 2px solid #e2e8f0;
}

.import-section h3 {
  margin-bottom: 15px;
  color: #2d3748;
}

.upload-area {
  border: 3px dashed #cbd5e0;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: white;
  margin-bottom: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #667eea;
  background: #f7fafc;
}

.upload-area.drag-over {
  border-color: #667eea;
  background: #e6f0ff;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.upload-area p {
  margin: 5px 0;
  color: #4a5568;
}

/* 同步状态提示 */
.sync-status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sync-success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.sync-warning {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
  color: white;
}

.sync-error {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

.sync-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* 手动同步按钮 */
.btn-sync {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sync:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-sync:active {
  transform: scale(0.95) rotate(180deg);
}

.btn-sync.syncing {
  animation: rotating 1s linear infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .sync-status {
    top: 10px;
    right: 10px;
    left: 10px;
    font-size: 12px;
    padding: 10px 15px;
  }
  
  .btn-sync {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}

/* 仪表盘 */
.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .dashboard-overview {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

.overview-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .overview-card {
    flex-direction: row;
    padding: 20px;
    gap: 15px;
  }
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.overview-icon {
  font-size: 32px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .overview-icon {
    font-size: 40px;
  }
}

.overview-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .overview-content {
    text-align: left;
  }
}

.overview-label {
  font-size: 12px;
  color: #718096;
  font-weight: 600;
  margin-bottom: 5px;
}

.overview-value {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .overview-value {
    font-size: 28px;
  }
}

.overview-value.profit {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 图表容器 */
.charts-container {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 1024px) {
  .charts-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

.chart-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e2e8f0;
}

@media (min-width: 768px) {
  .chart-section {
    padding: 25px;
  }
}

.chart-section h3 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #2d3748;
}

@media (min-width: 768px) {
  .chart-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

.chart-section canvas {
  max-height: 250px;
}

@media (min-width: 768px) {
  .chart-section canvas {
    max-height: 300px;
  }
}

/* 号码详情列表 */
.number-details-section {
  background: #f7fafc;
  border-radius: 16px;
  padding: 15px;
  border: 2px solid #e2e8f0;
}

@media (min-width: 768px) {
  .number-details-section {
    padding: 25px;
  }
}

.number-details-section h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

@media (min-width: 768px) {
  .number-details-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

.number-detail-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .number-detail-card {
    padding: 20px;
    margin-bottom: 15px;
  }
}

.number-detail-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.number-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #edf2f7;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .number-detail-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
}

.number-detail-title {
  font-size: 18px;
  font-weight: 800;
  color: #2d3748;
}

@media (min-width: 768px) {
  .number-detail-title {
    font-size: 20px;
  }
}

.number-detail-owner {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .number-detail-owner {
    font-size: 12px;
  }
}

.number-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .number-detail-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

.number-stat-item {
  text-align: center;
  padding: 8px;
  background: #f7fafc;
  border-radius: 8px;
}

.number-stat-label {
  font-size: 11px;
  color: #718096;
  margin-bottom: 5px;
}

.number-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
}

@media (min-width: 768px) {
  .number-stat-value {
    font-size: 18px;
  }
}

.number-stat-value.revenue {
  color: #667eea;
}

.number-stat-value.cost {
  color: #f56565;
}

.number-stat-value.profit {
  color: #48bb78;
}

/* Excel预览模态框 */
.excel-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.excel-preview-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.excel-preview-content h2 {
  margin-bottom: 15px;
  color: #2d3748;
}

.preview-table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.preview-table th,
.preview-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.preview-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.preview-table tbody tr:hover {
  background: #f7fafc;
}

.preview-options {
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.preview-options h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.preview-options label {
  display: block;
  padding: 12px;
  margin: 8px 0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.preview-options label:hover {
  border-color: #667eea;
  transform: translateX(5px);
}

.preview-options input[type="radio"] {
  margin-right: 10px;
}

.preview-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 12px 30px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: #667eea;
  color: #667eea;
}

/* 批量操作区域 */
.batch-operations {
  margin: 20px 0;
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
  border: 2px dashed #cbd5e0;
}

/* 号码复选框 */
.number-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.number-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.number-item input[type="checkbox"]:checked + .number-info {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .excel-preview-content {
    padding: 20px;
    max-width: 100%;
  }
  
  .preview-table {
    font-size: 11px;
  }
  
  .preview-table th,
  .preview-table td {
    padding: 6px;
  }
  
  .preview-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* 导入页面 */
.import-info {
  background: linear-gradient(135deg, #e6f0ff 0%, #f0e6ff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  border: 2px solid #667eea;
}

.import-info h3 {
  color: #667eea;
  margin-bottom: 15px;
}

.import-info ul {
  list-style: none;
  padding: 0;
}

.import-info li {
  padding: 8px 0 8px 25px;
  position: relative;
  color: #2d3748;
}

.import-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: bold;
}

.import-example {
  background: #f7fafc;
  border-radius: 16px;
  padding: 25px;
  margin-top: 30px;
  border: 2px solid #e2e8f0;
}

.import-example h3 {
  margin-bottom: 20px;
  color: #2d3748;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.example-table th,
.example-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.example-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
}

.example-table tbody tr:hover {
  background: #f7fafc;
}

@media (max-width: 767px) {
  .import-info {
    padding: 15px;
  }
  
  .import-info li {
    font-size: 13px;
    padding: 6px 0 6px 20px;
  }
  
  .example-table {
    font-size: 11px;
  }
  
  .example-table th,
  .example-table td {
    padding: 8px 5px;
  }
}

/* 可租状态看板 */
.availability-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
  border: 1px solid #bee3f8;
}
.avail-count {
  font-size: 20px;
  font-weight: 800;
  color: #2b6cb0;
}
.avail-sub {
  font-size: 13px;
  color: #4a5568;
  margin-top: 4px;
}
.number-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chip-free {
  background: #c6f6d5;
  color: #276749;
  font-weight: 600;
}
.chip-empty {
  background: #fed7d7;
  color: #9b2c2c;
  cursor: default;
}
.chip-expired {
  background: #fed7d7;
  color: #9b2c2c;
  cursor: not-allowed;
  opacity: 0.9;
}
.chip-soon {
  background: #fefcbf;
  color: #975a16;
  cursor: default;
}
.number-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.btn-sm {
  padding: 6px 10px !important;
  font-size: 12px !important;
}
.number-expired {
  border-color: #fc8181 !important;
  background: #fff5f5 !important;
}
.expire-unset { color: #a0aec0; }
.expire-ok { color: #276749; }
.expire-soon { color: #c05621; font-weight: 700; }
.expire-dead { color: #c53030; font-weight: 700; }
.busy-mini {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fffaf0;
  border-radius: 10px;
  border: 1px solid #feebc8;
}
.busy-title {
  font-weight: 700;
  color: #c05621;
  margin-bottom: 6px;
  font-size: 13px;
}
.busy-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #744210;
  padding: 4px 0;
}
.freed-alert.show {
  display: block;
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
  margin-bottom: 12px;
}
