/* 海角社区话题讨论页面样式 */

/* CSS变量定义 - 海洋蓝色主题 */
:root {
    --ocean-blue: #1e88e5;
    --deep-blue: #1565c0;
    --light-blue: #42a5f5;
    --teal: #00acc1;
    --cyan: #00bcd4;
    --amber: #ffb300;
    --orange: #ff9800;
    --green: #4caf50;
    --red: #f44336;
    
    --text-primary: #263238;
    --text-secondary: #546e7a;
    --text-light: #90a4ae;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-dark: #263238;
    
    --gradient-ocean: linear-gradient(135deg, #1e88e5, #42a5f5);
    --gradient-teal: linear-gradient(135deg, #00acc1, #00bcd4);
    --gradient-warm: linear-gradient(135deg, #ffb300, #ff9800);
    
    --shadow-light: 0 2px 8px rgba(30, 136, 229, 0.08);
    --shadow-medium: 0 4px 16px rgba(30, 136, 229, 0.12);
    --shadow-heavy: 0 8px 32px rgba(30, 136, 229, 0.16);
    --shadow-deep: 0 16px 48px rgba(30, 136, 229, 0.24);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;
    
    --animation-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --animation-quick: all 0.2s ease;
}

/* 基础样式继承 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 海洋背景继承 */
.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.03), rgba(0, 172, 193, 0.05));
}

.wave-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: waveFloat 10s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: var(--gradient-ocean);
    top: 15%;
    right: 15%;
    animation-delay: -2s;
}

.orb-2 {
    width: 240px;
    height: 240px;
    background: var(--gradient-teal);
    bottom: 25%;
    left: 20%;
    animation-delay: -5s;
}

.orb-3 {
    width: 280px;
    height: 280px;
    background: var(--gradient-warm);
    top: 55%;
    right: 45%;
    animation-delay: -8s;
}

@keyframes waveFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-25px, -15px) scale(1.1) rotate(90deg); }
    50% { transform: translate(20px, -25px) scale(0.9) rotate(180deg); }
    75% { transform: translate(-15px, 20px) scale(1.05) rotate(270deg); }
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏继承 */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(30, 136, 229, 0.1);
    z-index: 1000;
    transition: var(--animation-smooth);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--animation-smooth);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-motto {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

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

.menu-link {
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--animation-smooth);
    position: relative;
}

.menu-link:hover,
.menu-link.active {
    color: var(--ocean-blue);
    background: rgba(30, 136, 229, 0.08);
}

.menu-link.premium-link {
    background: var(--gradient-ocean);
    color: white;
}

.page-content {
    flex: 1;
    padding-top: 90px;
}

/* 英雄区域 */
.hero-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(0, 172, 193, 0.08));
    text-align: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 136, 229, 0.1);
    color: var(--ocean-blue);
    padding: 10px 18px;
    border-radius: var(--border-radius-xl);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 28px;
}

.banner-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 28px;
}

.highlight-text {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.topic-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid var(--ocean-blue);
    background: transparent;
    color: var(--ocean-blue);
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--animation-smooth);
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-ocean);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 讨论流 */
.discussion-stream {
    padding: 100px 0;
    background: var(--bg-white);
}

.stream-layout {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.discussion-item {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--animation-smooth);
    position: relative;
    padding: 30px;
}

.discussion-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
}

.discussion-item.hot {
    border: 2px solid var(--orange);
}

.topic-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 159, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.discussion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.creator-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ocean-blue);
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.discussion-time {
    font-size: 14px;
    color: var(--text-light);
}

.topic-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.topic-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.topic-intro {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.topic-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(30, 136, 229, 0.1);
    color: var(--ocean-blue);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.discussion-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--animation-smooth);
    border: none;
}

.join-btn {
    background: var(--gradient-ocean);
    color: white;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.like-btn,
.follow-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.like-btn:hover,
.follow-btn:hover {
    background: rgba(30, 136, 229, 0.08);
    color: var(--ocean-blue);
}

/* 热门话题 */
.trending-topics {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.topic-list {
    display: grid;
    gap: 16px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    transition: var(--animation-smooth);
}

.topic-item:hover {
    background: rgba(30, 136, 229, 0.05);
    transform: translateX(4px);
}

.topic-rank {
    font-weight: 700;
    color: var(--ocean-blue);
    min-width: 24px;
}

.topic-name {
    flex: 1;
    font-weight: 500;
}

.topic-heat {
    font-size: 12px;
    color: var(--orange);
}

/* 页脚继承 */
.page-footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 24px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-intro {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.footer-legal {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--animation-smooth);
}

.footer-menu a:hover {
    color: var(--light-blue);
}

.contact-details p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .topic-categories {
        justify-content: center;
    }
    
    .discussion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .topic-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .discussion-actions {
        flex-direction: column;
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}