:root {
  --primary-color: #41ADDC;
  --secondary-color: #5EBAE3;
  --accent-color: #26499D;
  --background-color: #ffffff;
  --text-color: #202124;
  --light-gray: #f9fafc;
  --medium-gray: #dadce0;
  --dark-gray: #5f6368;
  --error-color: #d93025;
  --success-color: #0f9d58;
  --gradient-primary: #26499D;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);
  --phone-width: 360px;
  --phone-border: 10px;
  --phone-radius: 36px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.app-container {
  width: var(--phone-width);
  height: auto;
  min-height: 600px;
  position: relative;
  background-color: var(--background-color);
  border-radius: var(--phone-radius);
  box-shadow: var(--shadow-lg), 0 16px 32px rgba(0, 0, 0, 0.1);
  border: var(--phone-border) solid #111;
  position: relative;
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  overflow: hidden;
}

/* 手机边框按钮样式 */
.app-container:before {
  content: '';
  position: absolute;
  top: 100px;
  left: -14px;
  width: 4px;
  height: 40px;
  background-color: #111;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  z-index: 10;
}

.app-container:after {
  content: '';
  position: absolute;
  top: 160px;
  right: -14px;
  width: 4px;
  height: 60px;
  background-color: #111;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  z-index: 10;
}

.volume-up-button {
  position: absolute;
  top: 150px;
  left: -14px;
  width: 4px;
  height: 30px;
  background-color: #111;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  z-index: 10;
}

.volume-down-button {
  position: absolute;
  top: 190px;
  left: -14px;
  width: 4px;
  height: 30px;
  background-color: #111;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  z-index: 10;
}

.power-button {
  position: absolute;
  top: 100px;
  left: -14px;
  width: 4px;
  height: 40px;
  background-color: #111;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  z-index: 10;
}

/* 状态栏和导航栏样式 */
.status-bar {
  height: 40px;
  width: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}

.time {
  font-weight: 600;
  font-size: 13px;
}

.status-icons {
  display: flex;
  gap: 5px;
}

.status-icons i {
  font-size: 13px;
}

.nav-bar {
  height: 44px;
  width: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--light-gray);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.nav-title {
  font-weight: 600;
  font-size: 17px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 内容区域样式 */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.content::-webkit-scrollbar {
  display: none;
}

/* 底部导航栏样式 */
.tab-bar {
  height: 50px;
  width: 100%;
  background-color: var(--background-color);
  border-top: 1px solid var(--light-gray);
  display: flex;
  position: relative;
  flex-shrink: 0;
  z-index: 5;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 10px;
  gap: 4px;
  transition: all 0.2s;
}

.tab.active {
  color: var(--primary-color);
  position: relative;
}

.tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  width: 40%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 0;
}

.tab i {
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: var(--background-color);
  color: var(--text-color);
  border-radius: 0;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--medium-gray);
  text-decoration: none;
  gap: 8px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--accent-color);
  border: 1px solid var(--medium-gray);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* 添加图标按钮样式 */
.btn i {
  font-size: 16px;
  color: inherit;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--medium-gray);
}

.btn-icon:active {
  transform: scale(0.95);
}

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

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark-gray);
  font-size: 13px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  font-size: 14px;
  transition: all 0.2s;
  background-color: var(--light-gray);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.15);
}

.select-control {
  width: 100%;
  padding: 10px 34px 10px 14px;
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  font-size: 15px;
  appearance: none;
  background-color: var(--light-gray);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235f6368' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  transition: all 0.2s;
}

.select-control:focus {
  background-color: white;
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.card {
  background-color: var(--background-color);
  border-radius: 0;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  border-radius: 0;
  padding: 12px 8px;
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--medium-gray);
  text-align: center;
}

.menu-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.menu-item i {
  font-size: 20px;
  margin-bottom: 6px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.menu-item-text {
  font-size: 11px;
  font-weight: 500;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.user-name {
  font-size: 18px;
  font-weight: 600;
}

.user-details {
  margin-top: 4px;
  color: var(--dark-gray);
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.attachment-area {
  border: 1px dashed var(--medium-gray);
  border-radius: 0;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.2s;
  background-color: var(--light-gray);
}

.attachment-area:hover {
  border-color: var(--primary-color);
  background-color: rgba(102, 204, 255, 0.05);
}

.attachment-area i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.form-col {
  flex: 1;
}

.scan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 41px;
  background-color: var(--light-gray);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.scan-button:hover {
  background-color: var(--medium-gray);
}

.scan-button i {
  font-size: 20px;
  color: var(--primary-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.table th, .table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--medium-gray);
  text-align: left;
  font-size: 12px;
}

.table th {
  font-weight: 600;
  color: var(--dark-gray);
}

.table tr:last-child td {
  border-bottom: none;
}

.float-right {
  float: right;
}

.link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s;
}

.link:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

/* 缩短各页面的内容区域，使其适合一屏显示 */
.content-compact {
  padding: 10px 16px;
}

.form-group-compact {
  margin-bottom: 10px;
}

.menu-compact {
  margin: 10px 0;
}

.section-title {
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--dark-gray);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 0;
  font-weight: 500;
}

.badge-primary {
  background-color: rgba(65, 173, 220, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background-color: rgba(15, 157, 88, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background-color: rgba(244, 160, 0, 0.1);
  color: #f4a000;
}

/* 添加美观的过渡效果 */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 添加按钮反馈效果 */
.btn:active {
  transform: scale(0.98);
}

/* 应用网格样式优化 */
.wx-app-grid {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  padding: 16px 8px;
  margin-bottom: 10px;
}

.wx-app-item {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  flex: 0 0 25%;
  max-width: 25%;
}

.wx-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.wx-app-name {
  font-size: 10px;
  color: #333;
  text-align: center;
  width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应式调整 */
@media screen and (max-height: 700px) {
  .app-container {
    min-height: 500px;
  }
  
  .wx-app-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .wx-app-name {
    font-size: 9px;
  }
  
  .status-bar {
    height: 32px;
  }
  
  .nav-bar {
    height: 36px;
  }
  
  .tab-bar {
    height: 42px;
  }
  
  .content {
    padding: 12px;
  }
  
  .card {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .menu-grid {
    gap: 6px;
    margin: 12px 0;
  }
  
  .menu-item {
    padding: 8px 6px;
  }
  
  .menu-item i {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .menu-item-text {
    font-size: 10px;
  }
}