/* 壁纸APP样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f0f2f5;
}

/* 隐藏滚动条但保留功能 */
::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* 首页样式 */
.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

@media (min-width: 768px) {
    .home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .home-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wallpaper-card {
    position: relative;
    aspect-ratio: 3/4.5;
    border-radius: 12px;
    overflow: hidden;
}

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

.wallpaper-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 1;
}

.wallpaper-info div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: bold;
}

/* 加载更多按钮样式 */
.load-more {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover {
    color: #333;
}

.load-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.load-more:hover i {
    transform: translateY(2px);
}

/* 壁纸统计卡片样式 */
.stats-card {
    margin: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #fff5f5);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    right: -15px;
    top: -15px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(244,67,54,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f44336, #e53935);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(244,67,54,0.2);
}

.stats-icon i {
    font-size: 24px;
    color: white;
}

.stats-info {
    flex: 1;
}

.stats-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stats-number {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    background: linear-gradient(135deg, #f44336, #e53935);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-running-days {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.stats-running-days span {
    font-weight: 600;
    color: #f44336;
}

.stats-badge {
    padding: 5px 10px;
    background: rgba(244,67,54,0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #f44336;
    margin-left: 10px;
}

/* 公告栏样式 */
.announcement {
    margin: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.announcement::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #fc4a1a, #f7b733);
}

.announcement-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.announcement-title i {
    color: #fc4a1a;
    margin-right: 8px;
}

.announcement-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 排序导航样式 */
.sort-nav {
    display: flex;
    justify-content: space-around;
    margin: 15px;
    padding: 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sort-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
}

.sort-item i {
    font-size: 16px;
    margin-bottom: 5px;
    color: #666;
    transition: all 0.3s ease;
}

.sort-item span {
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.sort-item.active {
    background: rgba(244,67,54,0.1);
}

.sort-item.active i,
.sort-item.active span {
    color: #f44336;
    font-weight: 500;
}

.sort-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #f44336;
    border-radius: 3px;
}

.sort-item:hover {
    background: rgba(244,67,54,0.05);
}

/* 底部导航栏 */
.nav-bar {
    height: 83px;
    background: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.nav-item.active {
    color: #007AFF;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

/* 详情页样式 */
.detail-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 200;
    overflow: auto;
    transition: all 0.3s ease;
}

.detail-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.detail-actions {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #fff;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    color: #007AFF;
    transform: translateY(-2px);
}

.action-button i {
    font-size: 24px;
    margin-bottom: 5px;
}

.action-button span {
    font-size: 14px;
}

/* 下载弹窗样式 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 320px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.download-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #333;
    background: #f5f5f5;
}

.download-info {
    margin-bottom: 16px;
}

.info-item {
    margin-bottom: 12px;
}

.info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.info-value {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    word-break: break-all;
}

.download-button {
    width: 100%;
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244,67,54,0.3);
}

/* 个人中心页面样式 */
.profile-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, #f44336, #e53935);
    text-align: center;
    color: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.username {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.user-bio {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 25px 20px;
    background: white;
    margin: -25px 15px 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background: #eee;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #f44336, #e53935);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.user-account-options {
    margin: 20px 15px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.option-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background: #f9f9f9;
}

.option-item i {
    font-size: 18px;
    color: #f44336;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.option-item span {
    font-size: 15px;
    font-weight: 500;
}

.logout-button {
    margin: 25px 15px;
    padding: 15px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    color: #fc4a1a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.logout-button:hover {
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252,74,26,0.15);
}

.logout-button i {
    margin-right: 8px;
}

/* 修改个人中心页面的样式，让它更接近设计图 */
.wallpaper-account-content {
    padding-bottom: 83px; /* 为底部导航留出空间 */
}

/* 登录容器样式 */
.login-container {
    padding: 80px 20px 40px;
    text-align: center;
    height: calc(100vh - 83px); /* 减去底部导航的高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.login-avatar i {
    font-size: 40px;
    color: #999;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.login-button {
    background: #f44336;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    width: 220px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(244,67,54,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244,67,54,0.4);
}

.login-button i {
    margin-right: 8px;
}

.register-button {
    background: white;
    color: #f44336;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    margin: 15px auto 0;
    border: 1px solid #f44336;
    box-shadow: 0 4px 15px rgba(244,67,54,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.register-button:hover {
    transform: translateY(-2px);
    background: #fff5f5;
    box-shadow: 0 6px 20px rgba(244,67,54,0.2);
}

.register-button i {
    margin-right: 8px;
}

/* 注册表单样式 */
.required {
    color: #e74c3c;
    margin-left: 3px;
}

.login-error, 
.registration-error {
    background-color: #ffeeee;
    border-left: 4px solid #e74c3c;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #e74c3c;
    border-radius: 4px;
    font-size: 14px;
}

/* 确保WordPress的默认注册错误信息正确显示 */
#login_error, 
.message {
    background-color: #ffeeee;
    border-left: 4px solid #e74c3c;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #e74c3c;
    border-radius: 4px;
    font-size: 14px;
}

/* 成功消息样式 */
.registration-success,
.logout-success {
    background-color: #eeffee !important;
    border-left: 4px solid #2ecc71 !important;
    color: #27ae60 !important;
}

.wallpaper-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    margin: 0;
} 