/* 微软流畅设计语言样式 */

/* 全局样式 */
:root {
    --primary-color: #0078d4;
    --secondary-color: #f3f2f1;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #eaeaea;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #faf9f8;
}

/* 微软风格Logo */
.logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), #00bcf2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* 导航栏样式 */
.navbar {
    background-color: white !important;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand span {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    position: relative;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 120, 212, 0.1);
    border-bottom: 2px solid var(--primary-color);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.btn-primary:hover {
    background-color: #006cbe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 卡片样式 */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    overflow: hidden;
    background-color: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    font-family: var(--font-family);
}

/* 英雄区样式 */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(0,120,212,0.05)"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 功能特点样式 */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 120, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
}

/* 下载中心样式 */
.download-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.download-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 关于我们样式 */
.about-section {
    padding: 80px 0;
    background-color: white;
}

/* 管理后台样式 */
.admin-section {
    padding: 40px 0;
    background-color: #faf9f8;
}

.admin-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.admin-nav {
    background-color: white;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 56px;
    left: 0;
    width: 240px;
    padding: 24px 0;
}

.admin-nav-item {
    padding: 12px 24px;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.admin-nav-item.active {
    background-color: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-content {
    margin-left: 240px;
    padding: 24px;
}

/* 表单样式 */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

/* 表格样式 */
.table {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--font-family);
}

.table th {
    background-color: var(--secondary-color);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.table tr:hover {
    background-color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .features-section,
    .download-section,
    .about-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    .admin-nav {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 微软风格的加载动画 */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loading2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}