/* Apple Design Style - iOS/macOS inspired */

:root {
    --apple-blue: #007AFF;
    --apple-purple: #5856D6;
    --apple-green: #34C759;
    --apple-orange: #FF9500;
    --apple-red: #FF3B30;
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-background: #FFFFFF;
    --apple-secondary-background: #F2F2F7;
    --apple-tertiary-background: #FFFFFF;
    --apple-label: #000000;
    --apple-secondary-label: #3C3C4399;
    --apple-separator: #C6C6C8;
    --apple-system-font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--apple-system-font);
    background: var(--apple-secondary-background);
    color: var(--apple-label);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    background: var(--apple-background);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid var(--apple-separator);
    position: relative;
}

.header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--apple-label);
}

.header p {
    font-size: 17px;
    color: var(--apple-secondary-label);
    font-weight: 400;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background: var(--apple-background);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--apple-label);
    letter-spacing: -0.3px;
}

.card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--apple-label);
}

.card p {
    font-size: 15px;
    color: var(--apple-label);
    margin-bottom: 12px;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 12px;
}

.card ul li {
    font-size: 15px;
    color: var(--apple-label);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.card ul li::before {
    content: "•";
    color: var(--apple-blue);
    font-weight: 600;
    position: absolute;
    left: 0;
}

a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--apple-purple);
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    background: var(--apple-background);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: var(--apple-light-gray);
}

th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    color: var(--apple-secondary-label);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--apple-separator);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--apple-light-gray);
    color: var(--apple-label);
    vertical-align: top;
}

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

tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.detail {
    display: block;
    font-size: 13px;
    color: var(--apple-secondary-label);
    margin-top: 4px;
    font-weight: 400;
}

.info-list {
    margin: 8px 0;
}

.info-list li {
    padding: 4px 0 4px 18px;
    position: relative;
    font-size: 14px;
}

.info-list li::before {
    content: "•";
    color: var(--apple-gray);
    position: absolute;
    left: 0;
    font-size: 16px;
    line-height: 1.4;
}

.update {
    color: var(--apple-secondary-label);
    font-size: 14px;
    margin-top: 8px;
}

.note {
    background: var(--apple-light-gray);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--apple-secondary-label);
    border-left: 3px solid var(--apple-blue);
}

.permission-detail {
    background: var(--apple-light-gray);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.permission-detail p {
    margin-bottom: 10px;
}

.permission-detail ul {
    margin: 10px 0;
}

.sdk-section {
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--apple-separator);
}

.sdk-section:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 40px 16px 30px;
    }

    .header h1 {
        font-size: 28px;
    }

    .container {
        padding: 20px 16px;
    }

    .card {
        padding: 16px;
        border-radius: 10px;
    }

    .card h2 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 12px;
    }

    .detail {
        font-size: 12px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--apple-blue);
    color: white;
}

::-moz-selection {
    background: var(--apple-blue);
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
