.operation-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: white;
    transition: all 0.3s ease;
}
.operation-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.operation-icon {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2em;
}
.operation-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.operation-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}
.syntax-box {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    margin: 15px 0;
    border-left: 4px solid #2ecc71;
}
.demo-area {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    min-height: 200px;
}
.demo-controls {
    background-color: #e8f4f8;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}
.nav-operations {
    position: sticky;
    top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-operations ul {
    list-style-type: none;
    padding-left: 0;
}
.nav-operations li {
    margin-bottom: 8px;
}
.nav-operations a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.nav-operations a:hover {
    background-color: #f0f7ff;
    color: #0066cc;
    padding-left: 20px;
}
.nav-operations a.active {
    background-color: #e3f2fd;
    color: #0066cc;
    font-weight: bold;
    border-left: 4px solid #0066cc;
}
.comparison-table {
    margin: 25px 0;
    font-size: 0.95em;
}
.comparison-table th {
    background-color: #2c3e50;
    color: white;
}
.live-example {
    background-color: #f0f8ff;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
}
.example-box {
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #ddd;
}
.method-group {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 5px solid #4a6baf;
}
.method-group h3 {
    color: #2c3e50;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.demo-element {
    padding: 10px;
    margin: 5px;
    background-color: #e8f4f8;
    border-radius: 4px;
    border: 1px solid #bce0f1;
}
.before-after-demo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
}
.demo-column {
    flex: 1;
    padding: 15px;
    border-radius: 6px;
    margin: 0 10px;
}
.demo-column.before {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
}
.demo-column.after {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}
.operation-result {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}
.method-tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}
.method-tag.getter {
    background-color: #2ecc71;
}
.method-tag.setter {
    background-color: #e74c3c;
}
.method-tag.both {
    background-color: #9b59b6;
}
 .demo-box {
     width: 100px;
     height: 100px;
     background-color: #3498db;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 8px;
     cursor: pointer;
     transition: all 0.3s ease;
 }
.demo-box.highlight {
    background-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
.demo-box.active {
    border: 3px solid #2ecc71;
}
.demo-box.demo {
    transform: rotate(5deg);
}
.demo-box.created {
    background-color: #9b59b6;
}
.demo-item {
    padding: 8px;
    margin: 5px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.demo-item.created {
    background-color: #e8f4f8;
    border-color: #3498db;
}
.highlighted {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
}
.syntax-box {
    position: relative;
}
.syntax-box:hover:after {
    content: "点击复制代码";
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    cursor: pointer;
}
.operation-card:hover .operation-icon {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}
