/* ===== Rules 页面特有样式 - 红粉主题 ===== */

.navbar a:hover,
.navbar a.active {
    color: #f5576c;
    border-bottom-color: #f5576c;
}

header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.section h2 {
    font-size: 1.4em;
    color: #f5576c;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.section h3 {
    font-size: 1.1em;
    color: #555;
    margin: 20px 0 10px;
}

.tip-box {
    background: #fff8f0;
    border-left: 4px solid #ff9800;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.tip-box p {
    margin: 0;
    color: #666;
}

.demo-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, 40px);
    gap: 2px;
    margin: 12px 0;
}

.demo-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1em;
}

.demo-cell.bomb {
    background: #ffcdd2;
}

.demo-cell.revealed {
    background: #fff;
    border: 1px solid #ddd;
}

.demo-cell.n1 { color: #2196f3; }
.demo-cell.n2 { color: #4caf50; }
.demo-cell.n3 { color: #f44336; }

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

th, td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
}

.cta a {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cta a:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}
