/* 苹果风格设计 - 增强页面视觉效果 */

/* 全局样式调整 */
:root {
  --apple-primary: #007AFF;
  --apple-secondary: #5AC8FA;
  --apple-accent: #FF2D55;
  --apple-success: #34C759;
  --apple-gray: #8E8E93;
  --apple-light-bg: #F2F2F7;
  --apple-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --apple-transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--apple-light-bg);
  transition: var(--apple-transition);
}

/* 卡片和容器样式 */
.site-main .site-list .list,
.lylme-center,
#main,
.search-main .search-input,
.search-main button.search-btn,
.search-main .search-btnlist .search-lists .list,
.m-header {
  border-radius: 16px !important;
  box-shadow: var(--apple-card-shadow) !important;
  transition: var(--apple-transition) !important;
}

/* 输入框美化 */
input.form-control,
input.kw,
textarea.form-control,
select.form-control {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: var(--apple-transition) !important;
}

input.form-control:focus,
input.kw:focus,
textarea.form-control:focus,
select.form-control:focus {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2) !important;
  border-color: var(--apple-primary) !important;
}

/* 按钮样式 */
.btn,
.search-btn,
button {
  border-radius: 12px !important;
  font-weight: 500 !important;
  transition: var(--apple-transition) !important;
  padding: 10px 20px !important;
  border: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--apple-primary), var(--apple-secondary)) !important;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4) !important;
}

.btn-default {
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8) !important;
}

/* 悬浮效果 */
.site-main .site-list .list:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* 搜索框样式 */
.search-main .search-input {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.search-main .search-input input.kw {
  background: transparent !important;
}

/* 导航菜单样式 */
.index-nav {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.index-nav .type-list .list a {
  border-radius: 10px !important;
  transition: var(--apple-transition) !important;
}

.index-nav .type-list .list a:hover {
  background: linear-gradient(135deg, var(--apple-primary), var(--apple-secondary)) !important;
  color: white !important;
  padding-left: 20px !important;
}

/* 日期和时间样式 */
.search-main-w .date-main {
  background: linear-gradient(135deg, #FF9500, #FF2D55) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.3) !important;
}

.search-main-w .date-main .times,
.search-main-w .date-main span {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 链接样式 */
.site-main .site-list .list p.name {
  font-weight: 500 !important;
  transition: var(--apple-transition) !important;
}

/* 图标样式 */
.list svg.icon, 
.list img {
  border-radius: 10px !important;
  transition: var(--apple-transition) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

/* 手机端导航 */
.m-header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* 动画效果 */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.site-main .site-list .list:hover {
  animation: float 3s ease-in-out infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 夜间模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --apple-light-bg: #1c1c1e;
  }
  
  body {
    background-color: #000;
    color: #fff;
  }
  
  .site-main .site-list .list,
  .search-main .search-input,
  .m-header,
  .index-nav {
    background: rgba(30, 30, 30, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
  
  input.form-control,
  input.kw,
  textarea.form-control,
  select.form-control {
    background: rgba(30, 30, 30, 0.8) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
}

/* 渐变悬停效果 */
.btn:hover,
.search-btn:hover {
  background-size: 150% !important;
  background-position: right center !important;
}

/* 适配移动端 */
@media only screen and (max-width: 1200px) {
  .site-main .site-list .list {
    border-radius: 16px !important;
  }
  
  .search-main-w {
    border-radius: 0 !important;
  }
  
  .search-main .search-input {
    border-radius: 12px !important;
  }
  
  /* 改进移动端导航样式 */
  .m-header {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    padding: 12px 15px !important;
  }
  
  .m-navlist-w {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: none !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
  }
}

/* 改进平板和手机设备上的链接卡片显示 */
@media only screen and (max-width: 992px) {
  .site-main .site-name {
    padding: 12px 15px !important;
    border-radius: 12px !important;
  }
  
  .site-main .site-list .list:hover {
    transform: translateY(-3px) !important;
  }
  
  .card-content {
    align-items: center !important;
  }
}

@media only screen and (max-width: 576px) {
  .site-main .site-list .list {
    border-radius: 12px !important;
  }
  
  .site-main .site-name {
    font-size: 16px !important;
    padding: 10px 12px !important;
  }
  
  .site-main .site-list .list:hover {
    transform: none !important;
    animation: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* 改进卡片间距和排版 */
  .card-content {
    padding: 12px !important;
  }
  
  .card-icon-wrapper {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  }
  
  .list svg.icon, 
  .list img {
    border-radius: 8px !important;
  }
  
  /* 针对移动端触摸体验优化 */
  .site-main .site-list .list a {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 改善移动端导航体验 */
  .m-header .navbar {
    border-radius: 10px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555 !important;
  }
  
  .m-navlist a.list {
    border-radius: 10px !important;
  }
} 