/* 论文部分样式 */
.papers-section {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    background: #0d0d0d;
    min-height: fit-content;
    display: flex;
    align-items: flex-start;
}

.papers-section .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.papers-wrapper {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    width: 100%;
}

.papers-left {
    flex: 3;
    min-height: clamp(500px, 60vh, 700px);
    background: #151515;
    border: 1px solid #222;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.papers-right {
    flex: 1;
    min-height: clamp(500px, 60vh, 700px);
    background: #272727;
    border: 1px solid #222;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(128, 128, 128, 0.2);
    transition: all 0.3s ease;
    min-width: clamp(280px, 25vw, 350px);
    max-width: clamp(350px, 30vw, 400px);
    backdrop-filter: blur(10px);
}

.paper-content, .paper-catalog {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
}

/* 左侧内容区样式 */
.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid #222;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
}

.paper-header h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #fff;
    margin: 0;
}

.paper-badge {
    background: var(--primary-color);
    color: #fff;
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: 20px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 500;
}

.paper-stats {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    color: #888;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.stat-item i {
    color: var(--primary-color);
}

.paper-detail-wrapper {
    flex: 1;
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow-y: auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.paper-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    text-align: left;
}

.placeholder-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 右侧目录区样式 */
.catalog-header {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid #222;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
}

.catalog-header h3 {
    color: #fff;
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(0.8rem, 2vw, 1rem) clamp(0.5rem, 1.5vw, 0.8rem) clamp(2rem, 4vw, 2.5rem);
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 20px;
    color: #fff;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #111;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.paper-categories {
    padding: 20px;
    height: auto;
}

.category-item {
    margin-bottom: 20px;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: #222;
}

.category-header i {
    color: var(--primary-color);
}

.category-header span {
    flex: 1;
    color: #fff;
}

.category-count {
    background: #0d0d0d;
    color: #888;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.paper-item {
    padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.6rem, 1.5vw, 0.8rem);
    margin: clamp(0.2rem, 0.5vw, 0.3rem) 0;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paper-item:hover {
    background: #222;
    transform: translateX(5px);
}

.paper-item h4 {
    color: #fff;
    margin-bottom: 2px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    line-height: 1.3;
}

.paper-item p {
    color: #888;
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    margin-bottom: 2px;
    line-height: 1.3;
}

.paper-meta {
    display: flex;
    gap: 10px;
    color: #666;
    font-size: 0.75em;
}

.paper-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.paper-meta i {
    color: var(--primary-color);
}

/* 论文详情样式 */
.paper-detail {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    line-height: 1.6;
}

.paper-detail p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    line-height: 1.6;
    color: #ccc;
}

.paper-detail h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    color: #fff;
    width: 100%;
    word-wrap: break-word;
}

.paper-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1rem, 2vw, 1.2rem);
    background: #1a1a1a;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.paper-meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.paper-meta-info i {
    color: var(--primary-color);
}

.paper-section {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: #1a1a1a;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.paper-section h3 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    color: var(--primary-color);
    width: 100%;
}

.highlight-list,
.contribution-list,
.future-work-list {
    list-style: none;
    padding: 0;
}

.highlight-list li,
.contribution-list li,
.future-work-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.highlight-list li::before,
.contribution-list li::before,
.future-work-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.contribution-list li {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1em;
    line-height: 1.6;
}

.contribution-list li pre {
    margin: 0.5em 0;
    padding: 1em;
    background-color: #1e1e1e;
    border-radius: 4px;
    overflow-x: auto;
}

.code-card {
    width: 100%;
    max-width: 100%;
    margin: clamp(0.8rem, 2vw, 1rem) 0;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-size: clamp(11px, 1.3vw, 12px);
    line-height: 1.4;
    box-sizing: border-box;
}

.code-card .code-header {
    background-color: #2d2d2d;
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 1.5vw, 0.8rem);
    border-bottom: 1px solid #404040;
    color: #a6a6a6;
    font-family: 'Consolas', 'Monaco', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.code-header .copy-btn {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.code-header .copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #888;
}

.code-header .copy-btn.copied {
    background: #2a6b2a;
    color: #fff;
    border-color: #2a6b2a;
}

.code-card pre {
    margin: 0;
    padding: clamp(0.8rem, 2vw, 1rem);
    max-height: clamp(300px, 40vh, 500px);
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
    width: 100%;
    box-sizing: border-box;
}

.code-card pre code {
    display: block;
    font-family: 'Consolas', monospace;
    white-space: pre;
    color: #e0e0e0;
}

.contribution-list code,
.contribution-list pre,
.contribution-list pre code {
    background-color: #1e1e1e;
}

/* 代码块样式 */
.code-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.code-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    color: #888;
    font-size: 0.9em;
}

.code-card pre {
    margin: 0;
    padding: 15px;
    max-height: 500px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
}

.code-card pre code {
    display: block;
    font-family: 'Consolas', monospace;
    white-space: pre;
    color: #e0e0e0;
}

/* 自定义滚动条样式 */
.code-card pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-card pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.code-card pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.code-card pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Syntax highlighting colors */
.code-card .keyword { color: #569cd6; }
.code-card .operator { color: #d4d4d4; }
.code-card .number { color: #b5cea8; }
.code-card .string { color: #ce9178; }
.code-card .comment { color: #6a9955; }
.code-card .property { color: #9cdcfe; }
.code-card .method { color: #dcdcaa; }

/* Card hover effect */
.code-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 20vw, 150px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: clamp(0.8rem, 2vw, 1rem);
    width: 100%;
    box-sizing: border-box;
}

.metric-item {
    text-align: left;
    padding: 15px;
    background: #222;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
}

.metric-value {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.metric-label {
    color: #aaa;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.dataset-table {
    overflow-x: auto;
    margin-top: clamp(0.8rem, 2vw, 1rem);
    width: 100%;
    box-sizing: border-box;
}

.dataset-table table {
    width: 100%;
    border-collapse: collapse;
}

.dataset-table th,
.dataset-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.dataset-table th {
    background: #222;
    color: var(--primary-color);
}

.dataset-table tr:hover {
    background: #222;
}

.paper-links {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1rem);
    margin-top: clamp(0.8rem, 2vw, 1rem);
    flex-wrap: wrap;
    width: 100%;
}

.paper-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #222;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.paper-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.paper-link i {
    font-size: 1.2em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .paper-meta-info {
        flex-direction: column;
        gap: 10px;
    }

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

    .dataset-table {
        font-size: 0.9em;
    }
}

/* 论文展示样式 */
.papers-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.paper-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.paper-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.paper-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.paper-item p:nth-child(2) {
    color: var(--text-color);
    opacity: 0.8;
}

.paper-item p:nth-child(3) {
    color: var(--secondary-color);
    font-style: italic;
}

.paper-item a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.paper-item a:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* 引用计数 */
.citation-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 1rem;
}

.citation-count i {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .paper-item {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .papers-section {
        padding: clamp(1rem, 3vw, 1.5rem) clamp(0.5rem, 1.5vw, 0.8rem);
    }

    .papers-wrapper {
        flex-direction: row;
        gap: clamp(0.8rem, 2vw, 1rem);
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .papers-left {
        flex: 3;
        min-height: clamp(350px, 50vh, 450px);
        min-width: 250px;
    }

    .papers-right {
        flex: 1;
        min-height: clamp(350px, 50vh, 450px);
        min-width: clamp(120px, 18vw, 160px);
        max-width: clamp(160px, 22vw, 200px);
    }

    .paper-meta-info {
        flex-direction: column;
        gap: 8px;
        padding: 0.8rem;
    }

    .paper-categories {
        max-height: 250px;
        padding: 0.8rem;
    }

    .paper-header {
        padding: 0.8rem;
    }

    .paper-header h3 {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .catalog-header {
        padding: 0.8rem;
    }

    .catalog-header h3 {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .paper-detail-wrapper {
        padding: clamp(0.8rem, 2vw, 1rem);
    }
}

@media (max-width: 480px) {
    .papers-wrapper {
        flex-direction: row;
        gap: 0.5rem;
    }

    .papers-left {
        flex: 2.5;
        min-width: 200px;
        min-height: 300px;
    }

    .papers-right {
        flex: 1;
        min-width: 100px;
        max-width: 130px;
        min-height: 300px;
    }

    .paper-header h3 {
        font-size: 0.75rem;
    }

    .catalog-header h3 {
        font-size: 0.75rem;
    }

    .paper-categories {
        max-height: 200px;
        padding: 0.5rem;
    }

    .paper-item {
        padding: 0.25rem 0.4rem;
        margin: 0.15rem 0;
    }

    .paper-item h4 {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .paper-item p {
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .search-box input {
        padding: 0.3rem 0.5rem 0.3rem 1.5rem;
        font-size: 0.7rem;
    }

    .category-header {
        padding: 0.5rem;
    }

    .category-count {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .papers-wrapper {
        gap: 1.5rem;
    }

    .papers-left {
        min-height: 500px;
    }

    .papers-right {
        min-width: 300px;
        max-width: 350px;
    }
}

@media (max-width: 1024px) and (min-width: 900px) {
    .papers-wrapper {
        flex-direction: row;
    }
}

@media (max-width: 899px) and (min-width: 769px) {
    .papers-wrapper {
        flex-direction: row;
        gap: 1.2rem;
    }

    .papers-left {
        flex: 3.5;
        min-width: 350px;
    }

    .papers-right {
        flex: 1;
        min-width: 180px;
        max-width: 220px;
    }
}

/* 修复白色按钮样式 */
.paper-toggle {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paper-toggle:hover {
    background: #222;
    border-color: var(--primary-color);
}

.paper-toggle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 动画效果 */
.paper-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.paper-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.category-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-papers {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.category-papers.active {
    display: block;
}

.category-item.active {
    border-color: var(--primary-color);
    background: #1d1d1d;
}

/* Override any browser default styles */
pre, code {
    background-color: #1e1e1e !important;
}

/* 联系方式部分 */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.contact-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-subtitle {
    color: #888;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.card-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover .card-backdrop {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.contact-card:hover .icon-wrapper {
    background: var(--primary-color);
    transform: scale(1.1);
}

.icon-wrapper i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.contact-card:hover .icon-wrapper i {
    color: #ffffff;
}

.contact-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-card p {
    color: #888;
    font-size: 18px;
    margin: 0;
    transition: all 0.3s ease;
}

.contact-card .copyable {
    cursor: pointer;
    position: relative;
}

.copy-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .copy-hint {
    opacity: 0.8;
    bottom: 30px;
}

.contact-message {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-text {
    color: #888;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1200px) {
    .contact-container {
        padding: 60px 30px;
    }
    
    .contact-grid {
        gap: 30px;
    }
    
    .contact-card {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        height: 250px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .icon-wrapper i {
        font-size: 24px;
    }
}

/* 复制提示样式 */
.copied-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copied-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.contact-card.copyable {
    cursor: pointer;
}

.contact-card.copyable:active {
    transform: translateY(-5px) scale(0.98);
}

.contact-card.copied {
    border-color: var(--primary-color);
}

.contact-card.copied .icon-wrapper {
    background: var(--primary-color);
}

.contact-card.copied .icon-wrapper i {
    color: #ffffff;
}

.paper-section video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: clamp(0.5rem, 1.5vw, 0.8rem) 0;
    display: block;
}

.paper-section .video-container {
    width: 100%;
    max-width: 800px;
    margin: clamp(0.5rem, 1.5vw, 0.8rem) 0;
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
}

.paper-section .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* 表情序列图片卡片样式 */
.image-cards-wrapper {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    margin: clamp(1rem, 2.5vw, 1.5rem) 0;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.image-cards-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.image-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.image-cards-container::-webkit-scrollbar {
    width: 6px;
}

.image-cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.image-cards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.image-cards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-left {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-left img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.pdf-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 30px;
    font-family: 'Roboto', sans-serif;
}

.pdf-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.pdf-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.pdf-meta {
    color: #666;
    font-size: 0.9em;
}

.pdf-content {
    color: #444;
    line-height: 1.6;
}

.pdf-content h4 {
    color: #333;
    margin: 20px 0 10px;
}

.pdf-content ul {
    padding-left: 20px;
}

.pdf-content li {
    margin: 5px 0;
}

.pdf-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

.pdf-content code {
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.pdf-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8em;
}

/* 下载按钮样式 */
.download-section {
    margin: 15px 0;
    text-align: left;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid #333;
    max-width: 300px;
    margin-left: 0;
    margin-right: auto;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #4e54c8, #0098ff);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

.download-button:hover {
    background: linear-gradient(135deg, #0098ff, #4e54c8);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-description {
    font-size: 0.8em;
    color: #aaa;
    margin: 3px 0 0 0;
}
