* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    height: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo .icon {
    font-size: 20px;
    margin-right: 8px;
}

.logo h1 {
    color: #FF9800;
    font-size: 16px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: #FF9800;
}

.login-btn {
    background: #FF9800;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.login-btn:hover {
    background: #F57C00;
}

.hero {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: white;
    padding: 80px 0;
}

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

.hero-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.wechat-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 15px;
}

.qrcode-box {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode {
    font-size: 48px;
}

.wechat-mini p {
    margin: 5px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: #FF9800;
}

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

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #FF9800;
}

.app-preview {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.app-header {
    background: #FF9800;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
}

.app-body {
    padding: 20px;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-tabs span {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 12px;
}

.nav-tabs span.active {
    background: #FF9800;
    color: white;
}

.input-area {
    display: flex;
    gap: 10px;
}

.input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.input-area button {
    padding: 10px 25px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

.download {
    padding: 80px 0;
    text-align: center;
}

.download-card {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 50px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
}

.download-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.download-card p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.download-note {
    margin-top: 30px;
    font-size: 16px;
}

.tutorials {
    padding: 80px 0;
    background: #f8f9fa;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tutorial-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tutorial-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
}

.tutorial-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-icon {
    font-size: 48px;
    color: white;
}

.tutorial-card h3 {
    padding: 20px;
    padding-bottom: 10px;
    color: #333;
}

.tutorial-card .excerpt {
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.tutorial-card .date {
    padding: 0 20px 20px;
    color: #999;
    font-size: 12px;
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #FF9800;
    text-decoration: none;
}

.about {
    padding: 80px 0;
    text-align: center;
}

.about p {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #666;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-login h2 {
    text-align: center;
    color: #FF9800;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.admin-btn {
    width: 100%;
    padding: 12px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.admin-btn:hover {
    background: #F57C00;
}

.admin-panel {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #333;
    color: white;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.sidebar a {
    display: block;
    padding: 12px;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #FF9800;
    color: white;
}

.main-content {
    flex: 1;
    padding: 30px;
}

.main-content h2 {
    margin-bottom: 30px;
    color: #333;
}

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

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

.table th {
    background: #f8f9fa;
}

.action-btn {
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.action-edit {
    background: #4CAF50;
    color: white;
}

.action-delete {
    background: #f44336;
    color: white;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

textarea.form-control {
    height: 200px;
}

.program-status {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-running {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.status-stopped {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.article-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.article-container {
    display: flex;
    gap: 30px;
}

.article-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
}

.sidebar {
    width: 280px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF9800;
    position: relative;
}

.sidebar h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF9800, #FF5722);
}

.latest-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-articles li {
    margin-bottom: 12px;
}

.latest-articles li:last-child {
    margin-bottom: 0;
}

.latest-articles a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.latest-articles a:hover {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    transform: translateX(5px);
    border-left-color: #FF9800;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.latest-articles a::before {
    content: '📄';
    margin-right: 10px;
    font-size: 12px;
}

.article-content h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.article-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-body {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.article-body h2 {
    color: #333;
    font-size: 20px;
    margin: 25px 0 12px;
}

.article-body h3 {
    color: #444;
    font-size: 17px;
    margin: 20px 0 10px;
}

.article-body p {
    margin: 12px 0;
}

.article-body ul,
.article-body ol {
    margin: 12px 0;
    padding-left: 25px;
}

.article-body li {
    margin: 6px 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.article-body a {
    color: #FF9800;
}

.article-body strong {
    font-weight: 600;
}

.article-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .features-grid,
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    nav a.nav-download {
        display: none;
    }
    .article-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    .article-content {
        padding: 20px 15px;
        margin: 0 10px;
        border-radius: 8px;
    }
    .article-content h1 {
        font-size: 20px;
    }
    .article-body {
        font-size: 14px;
    }
}
