* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: linear-gradient(135deg, #2f68e4, #b127e8);
  min-height: 100vh;
  padding: 15px;
}

.header {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px;
  text-align: center;
  margin-bottom: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 50px;
  vertical-align: middle;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  vertical-align: middle;
  margin-left: 10px;
  color: #fdfdfd;
}

.time-display {
  text-align: center;
  margin: 15px 0;
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
}

.main-section { max-width: 100%; margin: 0 auto; }

.button-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.big-button {
  background-color: white;
  padding: 12px 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border-left: 4px solid #feffff;
}

.big-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #f5f5f5;
}

.platform-section { margin-bottom: 25px; }

.section-title {
  color: #2cd11a;
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  padding-bottom: 8px;
  border-bottom: none;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #6cd96f 33%, white 33%);
}

.browser-icon { width: 32px; height: 32px; margin-right: 8px; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.platform-card {
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
  height: 150px;
  display: block;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-decoration: none;
}

.card-top {
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-middle {
  height: 70px;
  flex: 1;
  background-color: white;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-bottom {
  height: 35px;
  background-color: #63d267;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.3s;
}

.platform-card:hover .card-bottom { background-color: #388E3C; }

.platform-logo {
  width: 40px;
  height: 40px;
  border-radius: 20%;
  position: absolute;
  top: 10px;
  border: 0px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

.platform-name {
  font-size: 14px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: center;
}

.platform-visitors {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon { width: 10px; height: 10px; margin-right: 3px; }

.footer {
  text-align: center;
  margin-top: 25px;
  padding: 15px 0;
  color: #ffffff;
}

.footer-link {
  color: #57dd69;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s;
  font-size: 14px;
}

.footer-link:hover { color: #0D47A1; text-decoration: underline; }

/* 顶部色条 */
.yd .card-top { background-color: #6135b8ed; }
.jsz .card-top { background-color: #e98819; }
.ds .card-top { background-color: #3f7be3; }
.ym .card-top { background-color: #a7df96; }

@media (max-width:480px){
  .platform-grid { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .platform-card { height:150px; }
  .platform-logo { width:60px; height:60px; top:10px; }
  .platform-name { font-size:12px; margin-top:12px; }
  .card-bottom { font-size:10px; }
}

/* 弹窗 */
.modal {
  display:none; position:fixed; z-index:999;
  left:0; top:0; width:100%; height:100%;
  background-color: rgba(0,0,0,0.7);
}
.modal-content {
  background:#fefefe; margin:10% auto; padding:20px; border-radius:8px;
  width:80%; max-width:500px; position:relative; animation:fadeIn .3s;
}
.close { position:absolute; right:15px; top:10px; font-size:24px; font-weight:bold; cursor:pointer; }

@keyframes fadeIn { from{opacity:0; transform:translateY(-20px);} to{opacity:1; transform:translateY(0);} }

.time-display { text-align:center; margin:25px 0 25px; color:white; font-weight:bold; }
.time-large { font-size:45px; margin-bottom:5px; }
.date-small { font-size:16px; display:flex; justify-content:center; gap:10px; }

/* ====== 仅电脑版：居中、半屏宽 ====== */
@media (min-width:1024px){
  .top-tip{
    width:50%; margin-left:auto; margin-right:auto;
    text-align:left; padding-left:0;
  }
  .header, .main-section, .footer{
    width:50%; margin-left:auto; margin-right:auto;
  }
  .time-display{ text-align:center; margin:20px 0; }
  .time-display .time-large{ font-size:64px; line-height:1; margin-bottom:6px; }
  .time-display .date-small{ font-size:18px; justify-content:center; display:flex; gap:10px; }

  .button-section{ grid-template-columns: repeat(4,1fr) !important; gap:16px; margin-bottom:24px; }
  .platform-grid{  grid-template-columns: repeat(4,1fr) !important; gap:16px; }

  .platform-logo{ width:80px, 3.5vw, 120px; height:80px, 3.5vw, 120px; top:10px; }
  .platform-card{ height:180px; }
  .platform-name{ margin-top:25px; }
}

.top-tip{ display:flex; align-items:center; gap:8px; font-size:10px; color:#fff; padding:8px 15px; }
.tip-icon{ width:10px; height:12px; }
