:root {
    --primary: #e8a01a;
    --primary-light: #ffc857;
    --primary-dark: #c17c00;
    --background: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --card-bg: #fff;
    --card-border: #ddd;
}

[data-theme="dark"] {
    --background: #1a1a1a;
    --text: #f5f5f5;
    --text-light: #aaa;
    --card-bg: #2d2d2d;
    --card-border: #444;
    --primary-light: #c17c00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 0;
    padding: 2rem;
    background-color: var(--card-bg);
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
}

.header h1 {
    color: white;
    margin: 0;
    font-size: 2.5rem;
    position: relative;
}

/* Typography */
h2 {
    color: var(--primary);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin: 2rem 0 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    font-size: 1.5rem;
}

h3 {
    color: var(--text);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

/* Lists */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-light);
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
}

th, td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--card-border);
}

th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: rgba(232, 160, 26, 0.05);
}

/* Code */
code {
    background-color: rgba(232, 160, 26, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

/* Highlight */
.highlight {
    background-color: rgba(232, 160, 26, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-weight: 500;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Dark mode toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}
