﻿/* /////////////////////////// */
/* AceBeatle 版权所有，请勿删除 */
/* ////////////////////////// */

@media only screen and (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    
    .card-content::-webkit-scrollbar {
        width: 6px;  /* 适当增加卡片内容区域的滚动条宽度 */
    }
    
    .container {
        padding: 0 12px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    header {
        padding: 20px 0;
        margin: 20px 0 30px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    .title-decoration {
        margin-bottom: 8px;
    }
    
    .decoration-line {
        width: 25px;
    }
    
    .decoration-dot {
        width: 7px;
        height: 7px;
        margin: 0 8px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 18px;
        border-radius: 8px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .card-content {
        max-height: 150px;
        min-height: 80px; /* 移动端可以稍小一些 */
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .link-item {
        padding: 12px;
    }
    
    .weather-frame {
        height: 180px;
    }
    
    .current-time {
        font-size: 2rem;
    }
    
    .greeting {
        font-size: 1.1rem;
    }
    
    .poem-container {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .progress-info {
        font-size: 0.8rem;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .hot-item {
        padding: 10px;
    }
    
    .hot-rank {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    .hot-title {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 15px 0;
        font-size: 0.8rem;
    }
    
    .scrollable-content {
        max-height: 250px;
    }
    
    .log-entry h3 {
        font-size: 0.95rem;
    }
    
    .log-entry ul {
        font-size: 0.85rem;
    }
    
    /* 新增移动端返回顶部按钮样式 */
    #back-to-top {
        width: 42px;
        height: 42px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
    
    #back-to-top:active,
    #back-to-top.touch-active {
        transform: translateY(2px) scale(0.95);
        background: linear-gradient(135deg, 
            var(--secondary-color), 
            var(--primary-color));
    }
    
    .poem-author {
        font-size: 0.85em;
    }
    
    .days-running {
    font-size: 1rem;
    padding: 15px 0;
  }
  
  .days-running span {
    font-size: 1.2rem;
  }
    
    .weather-container {
      font-size: 0.9rem;
      line-height: 1.6;
      padding: 8px;
    }
    
    .ripple-circle {
        animation: ripple 2s linear infinite;
    }
    
    @keyframes ripple {
        0% {
            transform: scale(0);
            opacity: 0.3;
        }
        100% {
            transform: scale(2);
            opacity: 0;
        }
    
    .link-item i {
    font-size: 1rem;
    margin-right: 8px;
  }

@media (max-width: 600px) {
    h1 {
        font-size: 3.2rem; /* 600px断点 */
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 2.8rem; /* 500px断点 */
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 2.4rem;
    }
    
    .card {
        padding: 15px;
        max-height: 200px;
    }
    
     .card-content {
        max-height: 120px;
    }
    
    .current-time {
        font-size: 1.8rem;
    }
    
    .hot-title {
        font-size: 0.8rem;
    }
    
    .scrollable-content {
        max-height: 200px;
    }
    
    /* 超小屏幕按钮调整 */
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 15px;
        bottom: 15px;
        right: 15px;
    }
    
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    .card-content::-webkit-scrollbar {
        width: 5px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 2rem;
    }
}
}