:root {
    --primary-bg: #f8f9fe;
    --white: #ffffff;
    --header-purple: #9564df;
    --light-purple: #f3ecfb;
    --table-header: #c5a6ea;
    --text-dark: #2D3436;
    --text-gray: #636E72;
    --text-light-gray: #B2BEC3;
    --border-color: #e0d0f5;
    --shadow: 0 4px 15px rgba(149, 100, 223, 0.1);
    --gradient-purple: linear-gradient(135deg, #9564df 0%, #7c4dc4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 40px;
}

/* Header Styles */
.page-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.back-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
}

.page-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-right: 32px;
}

.container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Card */
.section-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(149, 100, 223, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.section-title::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: var(--gradient-purple);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.section-title[data-index]::before {
    content: attr(data-index);
}

.section-title h2 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
}

/* Table Styles */
.rule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    table-layout: fixed;
}

.rule-table th {
    background: var(--table-header);
    color: var(--white);
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.rule-table td {
    padding: 12px 4px;
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    word-break: break-all;
}

.rule-table tr:last-child td {
    border-bottom: none;
}

.rule-table tr:nth-child(even) {
    background: #faf8ff;
}

.rule-table tr:nth-child(odd) {
    background: #fdfbff;
}

.highlight-purple {
    color: var(--header-purple);
    font-weight: 600;
}

.sub-note {
    font-size: 11px;
    color: var(--text-light-gray);
    margin-top: 10px;
    line-height: 1.4;
}

/* Info Section */
.info-section {
    padding: 0 10px;
}

.info-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--header-purple);
    display: flex;
    align-items: center;
}

.info-title::before {
    content: '!';
    display: block;
    width: 20px;
    height: 20px;
    background: var(--header-purple);
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.info-item {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.6;
}

@media screen and (max-width: 380px) {

    .rule-table th,
    .rule-table td {
        font-size: 11px;
    }
}