/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.navbar-brand a {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 20px;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(64,158,255,0.1);
    color: #409eff;
}

.nav-item.active {
    background-color: #409eff;
    color: #fff;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    margin-left: 20px;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: #409eff;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(64,158,255,0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 10px;
    min-width: 180px;
    margin-top: 8px;
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f9ff;
}

.dropdown-menu a.active {
    color: #409eff;
    font-weight: bold;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 头部区域 */
.hero {
    position: relative;
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.hero p {
    font-size: 15px;
    color: #667788;
    margin-bottom: 30px;
}

/* 动态背景 */
.dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 0;
    overflow: hidden;
}

/* 板块样式 */
.section {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #409eff;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f9ff;
    color: #409eff;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.card-group {
    color: #999;
}

.card-more {
    color: #409eff;
    text-decoration: none;
}

/* 公告列表 */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.announcement-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f9ff;
    color: #409eff;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.announcement-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.announcement-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.announcement-image {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.announcement-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.announcement-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 服务切换栏 */
.service-tabs,
.announcement-tabs,
.converter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 联系按钮样式 */
.contact-btn {
    display: inline-block;
    background-color: #409eff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #66b1ff;
    transform: translateY(-2px);
}

/* 维护提示样式 */
.maintenance-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.maintenance-message p {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

/* 公告通知样式 */
.announcement-notice {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.announcement-notice p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 服务导航栏 */
.service-nav {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* 维护提示样式 */
.maintenance-notice {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-top: 20px;
}

.maintenance-notice p {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.maintenance-notice .maintenance-author {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

/* 服务提示样式 */
.service-notice {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.service-notice p {
    font-size: 14px;
    color: #999;
}

.service-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
}

.service-nav-btn {
    padding: 8px 16px;
    border: 1px solid #409eff;
    background-color: white;
    color: #409eff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.service-nav-btn:hover {
    background-color: rgba(64, 158, 255, 0.1);
}

.service-nav-btn.active {
    background-color: #409eff;
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .service-nav-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .service-nav-buttons {
        gap: 8px;
    }
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #dcdfe6;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #409eff;
    color: #409eff;
}

.tab-btn.active {
    background-color: #409eff;
    color: #fff;
    border-color: #409eff;
}

/* 格式转化工具 */
.converter-container {
    background-color: #f9fafc;
    border-radius: 12px;
    padding: 20px;
}

.converter-content {
    margin-top: 20px;
}

.converter-input,
.converter-options {
    margin-bottom: 20px;
}

.converter-input h3,
.converter-options h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #2c3e50;
}

.converter-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.converter-options select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.converter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.converter-actions button {
    padding: 10px 20px;
    background-color: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.converter-actions button:hover {
    background-color: #66b1ff;
}

.download-btn {
    padding: 10px 20px;
    background-color: #67c23a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #85ce61;
}

/* 个人主页 */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-info h2,
.profile-actions h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-item label {
    width: 100px;
    font-weight: bold;
    color: #666;
}

.profile-actions ul {
    list-style: none;
}

.profile-actions li {
    margin-bottom: 10px;
}

.profile-actions a {
    color: #409eff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-actions a:hover {
    text-decoration: underline;
}

/* 免责条款 */
.disclaimer-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #2c3e50;
}

.disclaimer-content h3 {
    margin: 20px 0 10px;
    font-size: 16px;
    color: #333;
}

.disclaimer-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

/* 云盘服务 */
.cloud-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cloud-usage h2,
.cloud-files h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.usage-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.usage-fill {
    height: 100%;
    background-color: #409eff;
    transition: width 0.3s ease;
}

.file-upload {
    margin-bottom: 20px;
}

.file-upload button {
    padding: 10px 20px;
    background-color: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload button:hover {
    background-color: #66b1ff;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e4e7ed;
}

.file-table th {
    background-color: #f9fafc;
    font-weight: bold;
    color: #2c3e50;
}

.file-table a {
    color: #409eff;
    text-decoration: none;
    margin-right: 10px;
}

.file-table a:hover {
    text-decoration: underline;
}

/* 广告位招租 */
.ads-container h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #2c3e50;
}

.ads-container p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
}

.ad-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ad-slot {
    background-color: #f9fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ad-slot h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2c3e50;
}

.ad-demo {
    width: 100%;
    height: 100px;
    background-color: #e4e7ed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #999;
}

.ad-slot p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.ads-contact {
    background-color: #f0f9ff;
    border-radius: 12px;
    padding: 20px;
}

/* 页脚 */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2c3e50;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #409eff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        padding: 10px 16px;
    }
    
    .navbar-brand a {
        font-size: 18px;
    }
    
    .nav-item {
        margin-left: 10px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .ad-slots {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-tabs,
    .announcement-tabs,
    .converter-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* 动态背景动画 */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(5px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

.dynamic-bg {
    position: relative;
    overflow: hidden;
}

.dynamic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(64,158,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(64,158,255,0.1) 0%, transparent 50%);
    animation: float 10s ease-in-out infinite;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}