:root {
    --primary-color: #6f42c1;
    /*--secondary-color: #e83e8c;*/
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

.content-area {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    /*padding: 30px;*/
}

.content-area h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.content-area h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-area h3 {
    color: var(--dark-color);
    margin-top: 25px;
}

.content-area p {
    color: #6c757d;
}

.content-area .card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.content-area .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.code-example {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-section h1 {
    color: white;
    border: none;
}

.example-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.example-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.demo-buttons {
    margin: 20px 0;
}

.method-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.method-card:hover {
    border-left-color: var(--secondary-color);
}

/* 小工具演示样式 */
.utility-demo {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
}

.utility-demo .demo-item {
    padding: 10px;
    margin: 5px;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.spacing-demo {
    border: 1px dashed #dee2e6;
    background-color: #f8f9fa;
}

.color-demo .demo-item {
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.border-demo .demo-item {
    background-color: #f8f9fa;
    margin: 5px;
}

.shadow-demo .demo-item {
    background-color: white;
    padding: 20px;
    margin: 10px;
    display: inline-block;
    width: 120px;
    height: 120px;
    text-align: center;
    line-height: 80px;
}

.display-demo .demo-item {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    margin: 5px;
    text-align: center;
}

.position-demo-container {
    position: relative;
    height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    margin: 20px 0;
    background-color: #f8f9fa;
}

.position-demo-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.float-demo .demo-item {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    margin: 5px;
    text-align: center;
    width: 100px;
}

.clearfix-demo {
    border: 1px solid #dee2e6;
    padding: 15px;
}

.sizing-demo .demo-item {
    background-color: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.text-demo .demo-item {
    padding: 10px;
    margin: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.vertical-align-demo {
    height: 100px;
    border: 1px dashed #dee2e6;
    line-height: 100px;
    margin: 10px 0;
}

.vertical-align-demo span {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.visibility-demo .demo-item {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    margin: 5px;
    text-align: center;
}

.overflow-demo {
    height: 100px;
    border: 1px solid #dee2e6;
    margin: 10px 0;
    background-color: #f8f9fa;
}

.overflow-content {
    width: 200%;
    height: 150%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
