/* ========================================
   Speaker Detail Page - 独立样式表
   完全独立，不依赖任何其他CSS文件
   ======================================== */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 配色变量 */
:root {
    --primary-dark: #1a1f3a;
    --primary-blue: #2d3561;
    --gradient-start: #ff6b35;
    --gradient-end: #8b5cf6;
    --accent-orange: #ff6b35;
    --accent-purple: #8b5cf6;
    --text-white: #ffffff;
    --text-light: #f8fafc;
    --text-gray: #64748b;
    --background-light: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* 跳过链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-tickets {
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    direction: ltr;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-white);
}

.btn-tickets:hover {
    transform: translateY(-2px);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.logo-icon {
    width: 280px;
    position: relative;
}

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

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-orange);
}

/* 子页面主体样式 */
.subpage-body {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: 0;
}

.subpage-main {
    /*padding: 0 0 40px 0;*/
    /*min-height: calc(100vh - 70px);*/
}

/* 演讲者信息区域 - 参考图片样式 */
.speaker-info-section {
    height: 600px;
    /*margin-bottom: 60px;*/
    background: #e8e8e8;
    padding: 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}


@media (max-width: 768px) {
  .speaker-info-section {
    height: auto; /* 根据内容自适应 */
  }
}

.speaker-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.speaker-avatar-container {
    flex-shrink: 0;
}

.speaker-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    transition: none;
}

.speaker-avatar-large:hover {
    transform: none;
}

.beian{

    text-decoration: none;
    color: inherit;

}

.speaker-basic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speaker-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
    line-height: 1.3;
}

.speaker-position {
    font-size: 1rem;
    color: #666666;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.speaker-bio {
    color: #333333;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-top: 8px;
}

.speaker-bio p {
    margin-bottom: 16px;
    text-align: justify;
    text-align: left;
}

.speaker-bio p:last-child {
    margin-bottom: 0;
}

/* 演讲主题区域 */
.speech-topic-section {
    /*margin-bottom: 60px;*/
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 220px;
    padding-right: 20px;
}

.speech-topic-header {
    text-align: left;
    margin-bottom: 40px;
}

.speech-topic-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: left;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.speaker-a {text-decoration: none;
            
}

.tag-label {
    opacity: 0.9;
}

.tag-value {
    font-weight: 700;
}

.speech-content {
    padding: 40px 40px 40px 0;
    /*margin-bottom: 40px;*/
    padding-top: 0;
}

.speech-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.speech-description:last-child {
    margin-bottom: 0;
}

/* 演讲要点和新发现 */
.speech-highlights,
.new-discoveries {
    padding: 30px 30px 30px 0;
    /*margin-bottom: 30px;*/
    padding-top: 0;
}

.highlights-title,
.discoveries-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
}

.highlights-list,
.discoveries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li,
.discoveries-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    list-style: none;
}

.highlights-list li:last-child,
.discoveries-list li:last-child {
    margin-bottom: 0;
}

/* 相关演讲者区域 */
.related-speakers-section {
    margin-bottom: 60px;
    display: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.speaker-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.speaker-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
}

.speaker-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.speaker-card:hover .speaker-card-image {
    transform: scale(1.1);
}

.speaker-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.speaker-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}

.speaker-card-title {
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.speaker-card-company {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    line-height: 1.3;
}

.speaker-card-topic {
    font-size: 0.8rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 页脚样式 */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-end;
    width: fit-content;
    margin-left: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        flex-direction: row;
        height: auto;
        padding: 15px 20px;
        gap: 10px;
        align-items: center;
    }
    
    .nav-logo {
        justify-content: flex-start;
    }
    
    .logo-icon {
        width: 33.33%;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 15px;
    }
    
    .speaker-info-section {
        padding: 30px 0;
        margin-top: 0;
        padding-top: 0;
    }
    
    .speaker-profile-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 15px 15px 0 15px;
        flex-wrap: wrap; /* 允许简介换到下一行 */
    }
    /* 让姓名与职称紧跟在头像右侧，简介换到下一行 */
    .speaker-basic-info {
        flex: 1 1 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding-left: 10px;
        padding-right: 0;
        text-align: left;
    }
    .speaker-main-title,
    .speaker-position {
        margin: 0;
    }
    .speaker-bio {
        flex-basis: 100%;
        width: 100%;
        margin-top: 8px;
        text-align: left;
    }
    
    .speaker-avatar-large {
        width: 140px;
        height: 140px;
    }
    
    .speaker-main-title {
        font-size: 1.6rem;
    }
    
    .speaker-position {
        font-size: 0.95rem;
    }
    
    .speaker-bio {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .speaker-basic-info {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .speech-topic-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .speech-topic-title {
        font-size: 1.6rem;
    }
    
    .speech-content {
        padding: 30px 0;
    }
    
    .speech-highlights,
    .new-discoveries {
        padding: 25px 0;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .speaker-card {
        padding: 25px;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* 移动端隐藏页脚logo */
    .footer .logo-icon {
        display: none;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 160px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .speaker-info-section {
        padding: 25px 0;
        margin-top: 0;
        padding-top: 0;
    }
    
    .speaker-profile-card {
        gap: 20px;
        padding: 25px 10px 0 10px;
    }
    
    .speaker-avatar-large {
        width: 120px;
        height: 120px;
    }
    
    .speaker-main-title {
        font-size: 1.4rem;
    }
    
    .speaker-position {
        font-size: 0.9rem;
    }
    
    .speaker-bio {
        font-size: 0.85rem;
    }
    
    .speaker-basic-info {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .speech-topic-section {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .speech-topic-title {
        font-size: 1.4rem;
        /*padding: 0 20px;*/
    }
    
    .topic-tag {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .speech-content {
        padding: 25px 0;
    }
    
    .speech-description {
        font-size: 1rem;
    }
    
    .speech-highlights,
    .new-discoveries {
        padding: 20px 0;
    }
    
    .highlights-title,
    .discoveries-title {
        font-size: 1.2rem;
    }
    
    .highlights-list li,
    .discoveries-list li {
        font-size: 0.95rem;
        padding-left: 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        padding: 0 20px;
    }
    
    .speaker-card {
        padding: 20px;
        gap: 12px;
    }
    
    .speaker-card-avatar {
        width: 70px;
        height: 70px;
    }
    
    .speaker-card-name {
        font-size: 1.1rem;
    }
    
    .speaker-card-title,
    .speaker-card-company {
        font-size: 0.85rem;
    }
    
    .speaker-card-topic {
        font-size: 0.8rem;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section {
        gap: 15px;
    }
    

    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-description,
    .footer-link,
    .footer-contact p {
        font-size: 0.9rem;
    }
}