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

body { 
    font-family: '微软雅黑', 'Arial', sans-serif; 
    line-height: 1.6;
    /* 移动端滚动优化 */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-x: hidden;
}

/* 头部区域（原页面蓝色标题栏） */
.header-section {
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 50%, #1E90FF 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    color: #fff;
    padding: 50px 0 0;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.header-section > .container:first-child {
    flex: 1;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 100px 100px;
    animation: patternMove 20s linear infinite;
    animation-delay: 0s;
    pointer-events: none;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.header-section h1 { 
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease;
}

.header-section p { 
    font-size: 16px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.header-section .view-count {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 8px;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.header-section .view-count i {
    margin-right: 6px;
    font-size: 13px;
}

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

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

/* 滚动公告栏 */
.announcement-bar {
    background: transparent;
    padding: 15px 0 20px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 100px 100px;
    animation: patternMove 20s linear infinite;
    animation-delay: 0s;
    pointer-events: none;
}

.announcement-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.announcement-content i {
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    margin-right: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.announcement-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    visibility: hidden;
}

.announcement-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    visibility: visible;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 文件信息卡片（原页面白色圆角容器） */
.file-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 50px;
    border: 1px solid #F0F0F0;
    animation: fadeIn 0.6s ease;
}

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

/* 文件图标容器 */
.file-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F5F5F5;
}

/* 文件图标（原页面绿色文档图标） */
.file-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.file-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(30, 144, 255, 0.4);
}

.file-icon i {
    font-size: 32px;
    color: #fff;
}

.file-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文件标题与大小 */
.file-meta {
    flex: 1;
    min-width: 0;
}

.file-meta h2 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta .file-size {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.file-meta .publish-time {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.file-meta .publish-time i {
    margin-right: 6px;
    color: #1E90FF;
    font-size: 12px;
}

.file-meta .publish-time-wrapper {
    display: none;
    align-items: center;
    margin-top: 4px;
}

.file-meta .publish-time-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-meta .publish-time-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-meta .publish-time-icon i {
    font-size: 20px;
    color: #20C997;
}

.file-meta .view-count {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.file-meta .view-count i {
    margin-right: 6px;
    color: #1E90FF;
    font-size: 12px;
}

/* 描述/权限/状态模块 */
.info-module {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #FAFBFC 0%, #F5F7FA 100%);
    border-radius: 12px;
    border: 1px solid #E8ECF0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-module .title {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-module .content {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    word-wrap: break-word;
}

/* 用户信息模块样式 */
.user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #F0F8FF 0%, #E6F3FF 100%);
    border-radius: 20px;
    border: 1px solid #D6E9FF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 144, 255, 0.3);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar i {
    font-size: 16px;
    color: #fff;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* 状态标识（原页面绿色正常状态） */
.status-normal {
    color: #20C997;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #E8F9F3 0%, #D4F1E9 100%);
    border-radius: 20px;
    border: 1px solid #C3E8DB;
}

.status-normal i {
    margin-right: 8px;
    font-size: 16px;
}

/* 状态标识（错误状态） */
.status-error {
    color: #DC3545;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FDE8E8 0%, #FBD5D5 100%);
    border-radius: 20px;
    border: 1px solid #F5C6C6;
}

.status-error i {
    margin-right: 8px;
    font-size: 16px;
}

/* 标签样式 */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    color: #1a1a1a;
    margin-right: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    background: linear-gradient(135deg, #F5F9FF 0%, #E8F2FF 100%);
    border: 1px solid #D0E8FF;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.05);
}

.tag-badge:hover {
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: #fff;
    border-color: #1E90FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.25);
}

.tag-badge:last-child {
    margin-right: 0;
}

/* 下载按钮（原页面蓝色按钮） */
.download-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.download-btn i {
    font-size: 18px;
}

/* 系统公告 */
.announcement-box {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
    border-radius: 12px;
    border: 1px solid #FFE082;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #FF6B00;
    margin-bottom: 10px;
}

.announcement-header i {
    font-size: 18px;
}

.announcement-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 在线人数和运营天数信息 */
.stats-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #F0F8FF 0%, #E6F3FF 100%);
    border-radius: 12px;
    border: 1px solid #B3D9FF;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.stat-item i {
    color: #1E90FF;
    font-size: 16px;
}

.stat-item span {
    color: #666;
}

/* 底部安全认证区域 */
.safety-section {
    text-align: center;
    padding: 30px 0;
    background-color: #F0F8FF;
    border-top: 1px solid #E6F3FF;
}

.safety-section .safety-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 底部区域（包含版权和安全认证） */
.footer-section {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid #E8ECF0;
    margin-top: 50px;
}

.footer-section .copyright {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-section .safety-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 安全认证标签（优化为蓝色系，与页面主色调匹配） */
.safety-tag {
    background-color: #fff;
    color: #1E90FF;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: 1px solid #E6F3FF;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.08);
    transition: all 0.3s ease;
}

.safety-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.15);
}

.safety-tag i {
    margin-right: 6px;
    font-size: 14px;
}

/* 底部版权区域 */
.copyright-section {
    text-align: center;
    padding: 30px 0;
    background-color: #fff;
    border-top: 1px solid #E8ECF0;
}

.copyright-section .copyright-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright-section .copyright-main {
    min-width: 300px;
}

.copyright-section .copyright {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.copyright-section .copyright i {
    margin-right: 5px;
    color: #1E90FF;
}

.copyright-section .copyright-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright-section .copyright-link {
    color: #1E90FF;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, #F5F9FF 0%, #E8F2FF 100%);
    border: 1px solid #D0E8FF;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copyright-section .copyright-link:hover {
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: #fff;
    border-color: #1E90FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.25);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid #E8ECF0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #333;
    background: #F5F5F5;
}

.modal-body {
    padding: 32px;
}

/* 网盘下载选项 */
.cloud-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cloud-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #F8F9FA 0%, #F0F2F5 100%);
    border-radius: 12px;
    border: 1px solid #E8ECF0;
    transition: all 0.3s ease;
}

.cloud-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #D0E8FF;
}

.cloud-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cloud-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cloud-icon i {
    font-size: 26px;
    color: #1E90FF;
}

.cloud-info {
    flex: 1;
    min-width: 0;
}

.cloud-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
    font-weight: 600;
}

.cloud-info p {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloud-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cloud-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
    text-decoration: none;
}

.cloud-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.copy-btn {
    padding: 8px 14px;
    background: #fff;
    color: #1E90FF;
    border: 1px solid #D0E8FF;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #F5F9FF;
    border-color: #1E90FF;
}

.copy-btn.copied {
    background: #20C997;
    color: #fff;
    border-color: #20C997;
}

/* 密码表单 */
.password-form {
    max-width: 520px;
    margin: 40px auto 60px;
    padding: 45px 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.password-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E90FF 0%, #00BFFF 50%, #1E90FF 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.password-form h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.password-form h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1E90FF, #00BFFF);
    margin: 15px auto 0;
    border-radius: 2px;
}

.password-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.password-form .input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #a0aec0;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-form .form-control {
    width: 100%;
    padding: 16px 50px 16px 18px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #2c3e50;
}

.password-form .form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.password-form .form-control:focus {
    outline: none;
    border-color: #1E90FF;
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1), 0 4px 12px rgba(30, 144, 255, 0.15);
    transform: translateY(-2px);
}

.password-form .form-control:focus + .input-icon,
.password-form .input-group:focus-within .input-icon {
    color: #1E90FF;
}

.password-form .btn-primary {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.password-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.password-form .btn-primary:hover::before {
    left: 100%;
}

.password-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
}

.password-form .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.password-form .alert {
    margin-bottom: 25px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    border-left: 4px solid #DC3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #c53030;
    font-weight: 500;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8ECF0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #1E90FF;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.toast.active {
    display: flex;
}

.toast.success {
    border-left: 4px solid #20C997;
}

.toast.error {
    border-left: 4px solid #DC3545;
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: #20C997;
}

.toast.error i {
    color: #DC3545;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* 移动端适配（≤768px） */
@media (max-width: 768px) {
    /* 移动端全局优化 */
    html, body {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overflow-x: hidden;
        position: relative;
        height: 100%;
    }

    /* 禁用动画在移动端的干扰 */
    .header-section::before {
        animation: none;
    }

    /* 头部区域 */
    .header-section {
        padding: 40px 0 35px;
    }

    .header-section h1 {
        font-size: 24px;
        letter-spacing: 0.3px;
    }

    /* 滚动公告栏 */
    .announcement-bar {
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .announcement-content {
        gap: 8px;
    }

    .announcement-content i {
        font-size: 16px;
    }

    .announcement-text {
        font-size: 13px;
    }

    .announcement-text::before {
        animation: marquee 8s linear infinite;
    }

    .header-section p {
        font-size: 14px;
        letter-spacing: 0.2px;
    }
    
    .header-section .view-count {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .header-section .view-count i {
        font-size: 11px;
    }

    /* 密码表单 */
    .password-form {
        max-width: 100%;
        margin: 30px 15px 40px;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .password-form h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .password-form h3::after {
        width: 40px;
        height: 3px;
        margin: 12px auto 0;
    }

    .password-form .input-group {
        margin-bottom: 18px;
    }

    .password-form .input-icon {
        right: 14px;
        left: auto;
        font-size: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .password-form .form-control {
        padding: 14px 45px 14px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .password-form .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    .password-form .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* 文件信息卡片 */
    .file-card {
        margin: 0 15px;
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 12px;
    }
    
    /* 文件图标容器 */
    .file-header {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 15px;
        flex-wrap: wrap;
    }
    
    /* 文件图标 */
    .file-icon {
        width: 55px;
        height: 55px;
        margin-right: 15px;
        margin-bottom: 0;
        border-radius: 12px;
        flex-shrink: 0;
        overflow: hidden;
        background: transparent;
    }
    
    .file-icon i {
        font-size: 26px;
        color: #20C997;
    }
    
    .file-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }
    
    /* 文件元数据 */
    .file-meta {
        flex: 1;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 发布时间容器 */
    .file-meta .publish-time {
        display: flex;
        align-items: center;
        position: relative;
        padding-left: 0;
        margin-top: 6px;
    }
    
    .file-meta .publish-time::before {
        display: none;
    }
    
    .file-meta h2 {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .file-meta .file-size {
        font-size: 13px;
    }
    
    .file-meta .publish-time {
        font-size: 12px;
    }
    
    .file-meta .publish-time-wrapper {
        display: flex;
    }
    
    .file-meta .publish-time-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .file-meta .publish-time-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }
    
    .file-meta .publish-time-icon i {
        font-size: 22px;
    }
    
    .file-meta .view-count {
        font-size: 12px;
    }
    
    /* 用户信息模块 */
    .user-info {
        width: 100%;
        margin-left: 0;
        padding: 8px 14px;
        border-radius: 16px;
        flex-basis: 100%;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-avatar i {
        font-size: 13px;
    }
    
    .user-name {
        font-size: 13px;
        max-width: 200px;
    }
    
    /* 信息模块 */
    .info-module {
        margin: 20px 0;
        padding: 16px;
        border-radius: 10px;
    }
    
    .info-module .title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .info-module .content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 状态标识 */
    .status-normal,
    .status-error {
        font-size: 14px;
        padding: 7px 14px;
        border-radius: 18px;
    }
    
    .status-normal i,
    .status-error i {
        font-size: 14px;
    }
    
    /* 标签 */
    .tag-badge {
        padding: 7px 14px;
        border-radius: 14px;
        font-size: 12px;
        margin-right: 8px;
        margin-bottom: 6px;
    }
    
    /* 下载按钮 */
    .download-btn {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        margin-top: 15px;
    }
    
    .download-btn i {
        font-size: 16px;
    }
    
    /* 底部安全认证区域 */
    .safety-section {
        padding: 20px 0;
    }
    
    .safety-section .safety-tags {
        gap: 10px;
    }
    
    .safety-tag {
        padding: 7px 14px;
        border-radius: 18px;
        font-size: 12px;
    }
    
    .safety-tag i {
        font-size: 11px;
    }
    
    /* 底部版权区域 */
    .copyright-section {
        padding: 25px 0;
    }
    
    .copyright-section .copyright-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .copyright-section .copyright-main {
        min-width: auto;
        text-align: center;
    }
    
    .copyright-section .copyright {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .copyright-section .copyright-links {
        gap: 8px;
        justify-content: center;
    }
    
    .copyright-section .copyright-link {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* 模态框 */
    .modal-content {
        border-radius: 12px;
        margin: 15px;
        width: 95%;
    }
    
    .modal-header {
        padding: 24px 24px 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px 24px 24px;
    }
    
    /* 网盘下载选项 */
    .cloud-option {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        padding: 16px 20px;
    }
    
    .cloud-option:hover {
        margin: 0 -10px;
        padding: 16px 10px;
        border-radius: 6px;
    }
    
    .cloud-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        background: transparent;
        overflow: hidden;
    }

    .cloud-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }

    .cloud-icon i {
        font-size: 22px;
        color: #1E90FF;
    }
    
    .cloud-info {
        flex: 1;
        margin-left: 12px;
        min-width: 0;
    }
    
    .cloud-info h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .cloud-info p {
        font-size: 12px;
        gap: 8px;
    }
    
    .cloud-btn {
        padding: 7px 16px;
        font-size: 13px;
        min-width: 60px;
        border-radius: 6px;
    }
    
    .copy-btn {
        padding: 3px 10px;
        font-size: 11px;
    }
}

/* 平板适配（769px-1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-section {
        padding: 50px 0 45px;
    }
    
    .header-section h1 {
        font-size: 28px;
    }
    
    .file-card {
        max-width: 850px;
        padding: 25px;
    }
    
    .file-icon {
        width: 65px;
        height: 65px;
    }
    
    .file-icon i {
        font-size: 30px;
    }
    
    .file-meta h2 {
        font-size: 19px;
    }
    
    .user-info {
        max-width: 150px;
    }
}

/* 大屏优化（≥1200px）*/
@media (min-width: 1200px) {
    .file-card {
        max-width: 1050px;
    }
    
    .header-section h1 {
        font-size: 36px;
    }
}
