* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #F7F5F2;
    color: #444444;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

a {
    color: #7FB7E6;
    text-decoration: none;
}
a:hover {
    color: #5A9BCF;
}

.container {
    width: 1180px;
    margin: auto;
    padding: 40px 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #444444;
}

.nav {
    display: flex;
    gap: 24px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    cursor: pointer;
    background: #7FB7E6;
    color: white;
    font-size: 14px;
    transition: .2s;
}
.btn:hover {
    transform: translateY(-2px);
    background: #5A9BCF;
}

.best-cloud {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.best-cloud img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
}

.best-body {
    padding: 30px;
}

.best-title {
    color: #7FB7E6;
    font-size: 26px;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: .25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.card-body {
    padding: 18px;
}

.card-text {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #444444;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta {
    color: #888888;
    font-size: 14px;
}

.form-box {
    width: 700px;
    margin: 40px auto;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

input,
textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #E8E4DE;
    background: #F7F5F2;
    color: #444444;
    margin-bottom: 18px;
    font-size: 15px;
}

textarea {
    resize: none;
    height: 120px;
}

.profile-stat {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-box {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 25px;
    min-width: 220px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stat-box h2 {
    color: #7FB7E6;
}
.stat-box p {
    color: #888888;
}

.withdraw-btn {
    background: #E8E4DE;
    color: #444444;
    border: none;
    padding: 6px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.withdraw-btn:hover {
    background: #D5CFC7;
}
.withdrawed {
    color: #7FB7E6;
    font-weight: bold;
    font-size: 14px;
}

/* ===== 手机端适配 ===== */

/* 平板及小屏幕 */
@media (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 30px 20px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        width: 100%;
    }

    /* 顶部导航改为上下排列 */
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }
    .logo {
        font-size: 26px;
    }
    .nav {
        flex-wrap: wrap;
        gap: 12px 16px;
        font-size: 14px;
    }
    .nav a {
        padding: 4px 0;
    }

    /* 网格改为单列 */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 卡片图片高度适应 */
    .card img {
        height: 200px;
    }

    /* 昨日最佳 */
    .best-cloud img {
        max-height: 300px;
    }
    .best-body {
        padding: 16px;
    }
    .best-title {
        font-size: 20px;
    }

    /* 表单 */
    .form-box {
        width: 100%;
        margin: 20px auto;
        padding: 20px 16px;
    }

    /* 个人中心统计 */
    .profile-stat {
        flex-direction: column;
        gap: 16px;
    }
    .stat-box {
        min-width: unset;
        padding: 16px;
    }

    /* 按钮 */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
    .card-footer {
        flex-wrap: wrap;
        gap: 10px;
    }
    .card-footer .btn {
        width: auto;
        padding: 8px 16px;
    }

    /* 灯箱图片 */
    #lightbox img {
        max-width: 95%;
        max-height: 80%;
    }

    /* 收回按钮 */
    .withdraw-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
    .withdrawed {
        font-size: 14px;
    }

    /* 上传页面文字 */
    .form-box h2 {
        font-size: 20px;
    }
    textarea {
        height: 100px;
    }
}

/* 小屏手机（< 400px） */
@media (max-width: 400px) {
    .logo {
        font-size: 22px;
    }
    .nav {
        gap: 8px 12px;
        font-size: 13px;
    }
    .card img {
        height: 160px;
    }
    .best-cloud img {
        max-height: 200px;
    }

    /* 首页日历卡片 - 小屏手机适配 */
    .calendar-card {
        padding: 12px 12px 16px;
    }
    .calendar-card-title {
        font-size: 16px;
    }
    .calendar-card-link {
        font-size: 12px;
    }
    .calendar-card-days span {
        padding: 4px 0;
        font-size: 12px;
    }
    .calendar-card-weekdays {
        font-size: 11px;
    }
}

/* 统计板块 */
.stats-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 20px 0 40px;
}
.stats-box {
    text-align: center;
    background: #FFFFFF;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stats-number {
    font-size: 36px;
    font-weight: 700;
    color: #7FB7E6;
    display: block;
}
.stats-label {
    font-size: 16px;
    color: #888888;
}

/* 板块标题 */
.section-title {
    font-size: 22px;
    font-weight: 400;
    color: #444444;
    margin: 40px 0 20px;
    border-bottom: 2px solid #E8E4DE;
    padding-bottom: 10px;
}

/* 认识云页面 */
.page-title {
    font-size: 32px;
    font-weight: 300;
    color: #444444;
    margin-top: 10px;
}
.page-subtitle {
    color: #888888;
    font-size: 18px;
    margin-bottom: 30px;
}
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.cloud-card {
    background: #FFFFFF;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: 0.2s;
}
.cloud-card:hover {
    transform: translateY(-4px);
}
.cloud-card h3 {
    color: #7FB7E6;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
}
.cloud-card p {
    color: #555555;
    line-height: 1.6;
    font-size: 15px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: #AAAAAA;
    font-size: 14px;
    border-top: 1px solid #E8E4DE;
    margin-top: 40px;
}
.footer p {
    margin: 4px 0;
}
.footer-copy {
    font-size: 12px;
    color: #CCCCCC;
}

/* 首页日历卡片 */
.calendar-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px 28px 28px;
    margin: 20px 0 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.calendar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.calendar-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #444;
}
.calendar-card-link {
    color: #7FB7E6;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.calendar-card-link:hover {
    color: #5A9BCF;
}
.calendar-card-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}
.calendar-card-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
}
.calendar-card-days span {
    padding: 8px 0;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    background: #F7F5F2;
    transition: 0.2s;
}
.calendar-card-days .has-cloud {
    background: #E0EEF9;
    color: #7FB7E6;
    font-weight: 500;
    cursor: pointer;
}
.calendar-card-days .has-cloud:hover {
    background: #C5DFF0;
    transform: scale(1.05);
}
.calendar-card-days .empty {
    background: transparent;
}
