/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Canvas粒子效果容器 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 确保内容在粒子之上 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.navbar {
    position: relative;
    z-index: 20;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    z-index: 12;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s 0.4s backwards;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 功能卡片区域 */
.features {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 15;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-card a {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
}

.feature-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 页脚 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 15;
}

/* 内容页面样式 */
.page-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    backdrop-filter: blur(5px);
}

.page-header h2 {
    font-size: 2.5rem;
}

.content-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* 下载列表 */
.download-list {
    display: grid;
    gap: 1.5rem;
}

.download-item {
    background: rgba(249, 249, 249, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

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

.download-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.download-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.download-meta span {
    margin-right: 1rem;
}

.download-item p {
    color: #555;
    margin: 0.5rem 0;
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #764ba2;
}

/* 教程列表 */
.tutorial-list {
    display: grid;
    gap: 2rem;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.tutorial-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tutorial-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tutorial-category {
    display: inline-block;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.tutorial-content {
    color: #555;
    line-height: 1.8;
}

.tutorial-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.tutorial-content p {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.view-count {
    color: #999;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 登录表单 */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 12;
}

.success-message {
    background: #51cf66;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 12;
}

/* 后台管理样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    position: relative;
    z-index: 11;
}

.admin-sidebar h2 {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #667eea;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 11;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    position: relative;
    z-index: 12;
}

.admin-header h2 {
    color: #333;
}

.btn-add {
    padding: 10px 20px;
    background: #51cf66;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    z-index: 13;
}

.btn-add:hover {
    background: #40c057;
}

.admin-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 12;
}

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

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.btn-edit,
.btn-delete {
    padding: 5px 15px;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-right: 5px;
    display: inline-block;
    position: relative;
    z-index: 13;
}

.btn-edit {
    background: #4dabf7;
}

.btn-edit:hover {
    background: #339af0;
}

.btn-delete {
    background: #ff6b6b;
}

.btn-delete:hover {
    background: #fa5252;
}

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

/* 首页业务卡片样式 */
.business-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.business-card-header {
    padding: 2rem;
    text-align: center;
    color: white;
}

.business-card-header-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.business-card-header-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.business-card-header-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.business-card-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.business-card-title {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.5rem;
}

.business-card-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.business-card-body {
    padding: 2rem;
}

.business-card-services-title {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.business-card-blue .business-card-services-title {
    color: #667eea;
}

.business-card-pink .business-card-services-title {
    color: #f5576c;
}

.business-card-cyan .business-card-services-title {
    color: #00f2fe;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.service-item:last-child {
    border-bottom: none;
}

.service-check {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.business-card-blue .service-check {
    color: #667eea;
}

.business-card-pink .service-check {
    color: #f5576c;
}

.business-card-cyan .service-check {
    color: #4facfe;
}

.service-text {
    color: #555;
    font-size: 0.95rem;
}

.business-card-link {
    display: block;
    text-align: center;
    margin-top: 1.8rem;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1rem;
}

.business-card-link-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.business-card-link-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.business-card-link-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.business-card-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 首页英雄区域 */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(5px);
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

/* 首页联系我们区域 */
.contact-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    backdrop-filter: blur(5px);
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.features-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.qr-code-container {
    max-width: 600px;
    margin: 0 auto;
}

.qr-code-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.qr-code-image {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.qr-code-text {
    color: #333;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.contact-info-item {
    
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-info-value {
    opacity: 0.9;
}

.contact-info-email {
    font-size: 0.9rem;
}

.contact-info-hours {
    font-size: 0.9rem;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-method-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-method-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.contact-method-title {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.contact-method-value {
    opacity: 0.9;
    font-size: 1.3rem;
    font-weight: bold;
}

.contact-method-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.business-hours-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.business-hours-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.business-hours-value {
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: nowrap;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .page-layout {
        flex-direction: column;
    }
    
    .sidebar-nav {
        width: 100%;
        position: static;
    }
}

