/* ====== 基础样式重置 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 颜色变量 - 今日头条风格 */
    --primary-color: #ff2a68;
    --primary-light: #ff5e9a;
    --primary-dark: #d4004e;
    --secondary-color: #1a73e8;
    --secondary-light: #4a9eff;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #f0f2f5;
    --border-color: #e0e0e0;
    --success-color: #34c759;
    --warning-color: #ff9500;
    --info-color: #5ac8fa;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== 通用组件样式 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

/* ====== 头部导航栏 ====== */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 - 纯CSS绘制 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 20px;
    gap: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-size: 14px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 42, 104, 0.08);
}

.nav-link i {
    font-size: 16px;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

/* ====== 公司主页横幅 ====== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ff2a68, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #ff2a68, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* CSS绘制的数据流图 */
.hero-illustration {
    flex: 1;
    position: relative;
    height: 300px;
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flow-line {
    position: absolute;
    background: linear-gradient(to right, transparent, rgba(255, 42, 104, 0.7), transparent);
    height: 3px;
    border-radius: 3px;
}

.line1 {
    width: 80%;
    top: 20%;
    left: 10%;
    animation: flow 4s infinite linear;
}

.line2 {
    width: 70%;
    top: 50%;
    left: 15%;
    animation: flow 5s infinite linear 0.5s;
}

.line3 {
    width: 85%;
    top: 80%;
    left: 5%;
    animation: flow 6s infinite linear 1s;
}

.flow-node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 42, 104, 0.7);
}

.node1 { top: 15%; left: 10%; animation: pulse 2s infinite; }
.node2 { top: 15%; right: 10%; animation: pulse 2s infinite 0.3s; }
.node3 { bottom: 15%; left: 20%; animation: pulse 2s infinite 0.6s; }
.node4 { bottom: 15%; right: 20%; animation: pulse 2s infinite 0.9s; }

@keyframes flow {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* ====== 主要内容区 ====== */
.main-content {
    padding: 60px 0;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 42, 104, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
}

.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.intro-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 42, 104, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 24px;
    margin-bottom: 20px;
}

.intro-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* 服务卡片 */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card.news { border-top-color: var(--primary-color); }
.service-card.video { border-top-color: var(--secondary-color); }
.service-card.community { border-top-color: var(--success-color); }

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 20px;
    color: white;
}

.service-icon.news { background-color: var(--primary-color); }
.service-icon.video { background-color: var(--secondary-color); }
.service-icon.community { background-color: var(--success-color); }

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.service-features li i {
    color: var(--success-color);
}

/* ====== 个人主页样式 ====== */
.profile-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 40px 0;
}

.profile-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-color);
}

/* CSS绘制的用户头像 */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(255, 42, 104, 0.3);
}

.avatar-initials {
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.profile-title {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background-color: rgba(255, 42, 104, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 个人主页布局 */
.personal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.sidebar-section h3 i {
    color: var(--primary-color);
}

.data-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.data-item:hover {
    background-color: rgba(255, 42, 104, 0.05);
    transform: translateX(5px);
}

.data-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 42, 104, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 18px;
}

.data-content {
    flex: 1;
}

.data-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.data-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.interest-tag:hover, .interest-tag.active {
    background-color: var(--primary-color);
    color: white;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 内容区域 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
}

/* 动态流 */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
}

.activity-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-light);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.activity-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.activity-type.article { background-color: var(--primary-color); }
.activity-type.video { background-color: var(--secondary-color); }
.activity-type.course { background-color: var(--success-color); }

.activity-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.activity-meta {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.activity-content {
    margin-bottom: 20px;
    color: var(--text-color);
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.activity-tag {
    background-color: rgba(255, 42, 104, 0.08);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.activity-footer {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 42, 104, 0.05);
}

/* 收藏网格 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.collection-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.collection-item:hover {
    background-color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-light);
}

.collection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 42, 104, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 24px;
    margin-bottom: 15px;
}

.collection-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.collection-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ====== 页脚 ====== */
.footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #ff2a68, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ====== 响应式设计 ====== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-illustration {
        width: 100%;
        height: 200px;
    }
    
    .personal-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-tags {
        justify-content: center;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        position: relative;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
        z-index: 99;
    }
    
    .nav.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-content, .services {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .profile-card {
        padding: 25px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .activity-item {
        padding: 20px;
    }
}