* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}
.logo i {
    margin-right: 10px;
}
.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 20px;
}
.nav-links a:hover, .nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.2);
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}
/* 英雄区 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}
.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 16px;
}
.search-box button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}
.search-box button:hover {
    background: #ee5a5a;
}
.remaining-info {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.9;
}
.remaining-info i {
    margin-right: 8px;
}
/* 功能卡片 */
.features {
    padding: 80px 0;
    background: white;
}
.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.feature-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}
.feature-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}
.feature-card p {
    color: #666;
}
/* 模板 */
.templates {
    padding: 80px 0;
    background: #f8f9fa;
}
.templates h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.template-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}
.template-card:hover {
    border-color: #667eea;
    transform: scale(1.03);
}
.template-card i {
    font-size: 40px;
    color: #764ba2;
    margin-bottom: 15px;
}
.template-card h3 {
    margin-bottom: 8px;
}
.template-card p {
    color: #777;
    font-size: 14px;
}
/* 预览 */
.preview {
    padding: 60px 0;
    background: white;
}
.preview h2 {
    text-align: center;
    margin-bottom: 30px;
}
.preview-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}
.preview-toolbar select, .preview-toolbar button {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}
.preview-toolbar button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}
.editor {
    min-height: 300px;
    border: 2px dashed #ddd;
    border-radius: 20px;
    padding: 25px;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    background: #fafafa;
}
.editor:focus {
    outline: none;
    border-color: #667eea;
}
.seo-tips {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.seo-tips h4 {
    margin-bottom: 10px;
    color: #856404;
}
.seo-tips ul {
    list-style: none;
}
.seo-tips li {
    padding: 5px 0;
    color: #856404;
}
.seo-tips li::before {
    content: "\f0eb";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}
.save-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 0 auto;
}
.save-btn:hover {
    background: #218838;
}
/* 历史 */
.history {
    padding: 60px 0;
    background: #f8f9fa;
}
.history h2 {
    text-align: center;
    margin-bottom: 30px;
}
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.history-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.history-item h4 {
    margin-bottom: 10px;
    color: #667eea;
}
.history-item p {
    color: #666;
    margin-bottom: 10px;
}
.history-item small {
    color: #999;
    display: block;
    margin-bottom: 10px;
}
.history-item button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.history-item button:hover {
    background: #764ba2;
}
/* 页脚 */
footer {
    background: #2d2d2d;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
}
footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
footer a:hover {
    color: white;
}
/* 管理后台 */
.admin-body {
    background: #f0f2f5;
}
.admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.admin-container h2 {
    margin-bottom: 30px;
    color: #333;
}
.admin-container h3 {
    margin: 20px 0 10px;
    color: #667eea;
}
.admin-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.admin-card input, .admin-card textarea {
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: #764ba2;
}
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.error {
    color: #dc3545;
    margin-top: 10px;
}
/* 登录页 */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 400px;
    max-width: 90%;
    text-align: center;
}
.login-container h2 {
    margin-bottom: 30px;
    color: #333;
}
.login-container input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}
.login-container button {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}
.login-container button:hover {
    background: #764ba2;
}
.login-container a {
    display: block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
}
/* 响应式 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.8);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        margin: 10px 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }
    .search-box input {
        border-radius: 20px 20px 0 0;
    }
    .search-box button {
        border-radius: 0 0 20px 20px;
    }
    .feature-grid, .template-grid {
        grid-template-columns: 1fr;
    }
}