/* 通用样式 - 所有页面共享 - TRAVELWISE 风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 蓝色 */
    --primary-blue: #4361EE;
    --primary-blue-hover: #3651CE;
    --primary-blue-light: #F0F4FF;
    
    /* 黑色系 */
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    
    /* 背景色 */
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-gray: #F5F5F5;
    
    /* 边框 */
    --border-color: #E5E5E5;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

/* 通用导航栏样式 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--primary-blue);
}

.navbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 通用按钮样式 */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-dark);
}

.btn-dark {
    background-color: var(--text-dark);
    color: white;
}

.btn-dark:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 通用卡片样式 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* 页面标题 */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.back-button:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 页脚样式 */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Newsletter 样式 */
.newsletter-section {
    background: var(--text-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 80px;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar-menu {
        gap: 20px;
        font-size: 0.9rem;
    }
    
    .navbar-actions {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}


/* ==================== 骨架屏和加载动画 ==================== */

/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.skeleton-thumbnail {
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, #f0f0f0 0px, #e8e8e8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

.skeleton-thumbnail.square {
    aspect-ratio: 1/1;
}

.skeleton-info {
    padding: 12px;
}

.skeleton-title {
    height: 16px;
    width: 70%;
    background: linear-gradient(90deg, #f0f0f0 0px, #e8e8e8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-meta {
    height: 12px;
    width: 50%;
    background: linear-gradient(90deg, #f0f0f0 0px, #e8e8e8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 4px;
}

/* 页面切换淡入效果 */
.grid-fade-in {
    animation: gridFadeIn 0.25s ease-out;
}

@keyframes gridFadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* 表格行淡入 */
.table-fade-in tr {
    animation: rowFadeIn 0.2s ease-out;
}

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

/* 内容淡入 */
.content-fade-in {
    animation: contentFadeIn 0.3s ease-out;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
