/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hagino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 50%, #e8f5e8 100%);
    min-height: 100vh;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
}

.nav-brand i {
    margin-right: 8px;
    font-size: 22px;
    color: #42a5f5;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
}

.nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    color: #666;
    font-size: 14px;
}

.btn-register {
    background: #ff5722;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #f4511e;
    transform: translateY(-1px);
}

/* 主要内容区域 */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 40px 24px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1976d2;
}

.brand-name {
    color: #42a5f5;
}

.subtitle {
    color: #333;
}

.main-description {
    color: #666;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* 主要布局 */
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* AI智能规划容器 */
.ai-planning-container {
    position: sticky;
    top: 100px;
}

.ai-planning-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 8px;
}

.card-header p {
    color: #666;
    font-size: 0.9rem;
}

/* 规划表单 */
.planning-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}

/* 偏好选择 */
.preference-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preference-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preference-item:hover {
    background: rgba(66, 165, 245, 0.1);
    border-color: rgba(66, 165, 245, 0.3);
}

.preference-item.active {
    background: #42a5f5;
    color: white;
    border-color: #42a5f5;
}

/* 天数选择器 */
.days-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-option {
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-option:hover {
    background: rgba(66, 165, 245, 0.1);
    border-color: rgba(66, 165, 245, 0.3);
}

.day-option.active {
    background: #42a5f5;
    color: white;
    border-color: #42a5f5;
}

/* AI规划按钮 */
.ai-plan-btn {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.ai-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.4);
}

.ai-plan-btn:active {
    transform: translateY(0);
}

/* 内容区域 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* 通用区域标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.view-all {
    color: #42a5f5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #1976d2;
}

/* 热门推荐区域 */
.recommendations-section {
    background: rgba(255, 255, 255, 0.4); /* 从0.85降到0.4，更透明 */
    backdrop-filter: blur(15px); /* 从20px降到15px */
    border-radius: 20px;
    padding: 20px; /* 从32px减少到20px */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); /* 减轻阴影 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.recommendations-section:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.5); /* 悬浮时稍微提升透明度 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.card-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .card-image img {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.favorite-btn:hover {
    background: #ff5722;
    color: white;
    transform: scale(1.1);
}

.card-content {
    padding: 12px;
}

.card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.location {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #ffc107;
    font-size: 12px;
}

.rating span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

/* 热门分享区域 */
.hot-shares-section {
    background: rgba(255, 255, 255, 0.4); /* 更透明的背景 */
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px; /* 减少内边距 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hot-shares-section:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.hot-shares-section .section-header {
    margin-bottom: 16px;
}

.shares-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.post-time {
    font-size: 0.75rem;
    color: #999;
}

.follow-btn {
    background: #42a5f5;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #1976d2;
}

.share-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.share-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.share-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.share-images img {
    width: 60px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.share-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: #42a5f5;
}

/* 平台数据 */
.platform-stats {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.platform-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

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

.stat-item {
    text-align: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px 24px 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.auth-form .form-group input {
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #42a5f5;
}

.btn-primary {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.full-width {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ai-planning-container {
        position: static;
    }

    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .main-content {
        padding: 20px 16px;
    }

    .main-title {
        font-size: 2rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .preference-options {
        grid-template-columns: 1fr;
    }

    .days-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}
