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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(126, 199, 236, 0.05) 0%, rgba(126, 199, 236, 0) 20%),
        radial-gradient(circle at 90% 80%, rgba(126, 199, 236, 0.05) 0%, rgba(126, 199, 236, 0) 20%);
    background-attachment: fixed;
}

/* 导航栏样式 */
nav {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 100%;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.card:hover::before {
    opacity: 1;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

h3 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.8;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #475569;
}

/* Markdown样式 */
.markdown-content {
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.markdown-content h1, .markdown-content h2, .markdown-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content a {
    color: #3498db;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* 代码块样式 - 使用灰色背景 */
.markdown-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
    border-left: 4px solid #ddd;
}

.markdown-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* 引用块样式 - 使用灰色背景 */
.markdown-content blockquote {
    background-color: #f5f5f5;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    color: #555;
    border-radius: 0 4px 4px 0;
}

/* 表格样式 */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.markdown-content th {
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: 600;
}

.markdown-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.markdown-content tr:nth-child(even) {
    background-color: #fafafa;
}

.markdown-content tr:hover {
    background-color: #f8f8f8;
}

/* 文件列表样式 */
.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list a {
    color: #3498db;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list a:hover {
    text-decoration: underline;
}

/* 套餐卡片样式 */
.package-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
    border-top: 4px solid #3b82f6;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 选中套餐卡片的样式 */
.package-card.selected-package {
    border-top: 4px solid #22c55e;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    transform: translateY(-5px);
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.package-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover .package-price::after {
    opacity: 1;
}

.package-description {
    margin-bottom: 1.5rem;
    color: #64748b;
}

.package-form {
    margin-top: 1.5rem;
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

/* 消息样式 */
.flash-messages {
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.5s ease-out;
}

.success-message {
    border-left-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.error-message {
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 支付成功页面样式 */
.success-container {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.success-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .package-cards {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}