:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.04);
    --system-blue: #0071e3;
    --system-green: #34c759;
    --notice-bg: rgba(0, 113, 227, 0.04);
    --notice-text: #0071e3;
}

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

html {
    background-color: var(--bg-color);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.top-nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    letter-spacing: 0;
}

.logo-icon {
    color: var(--system-blue);
}

header {
    text-align: center;
    padding: 60px 0 32px;
}

h1 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.notice-banner {
    background-color: var(--notice-bg);
    border: 1px solid rgba(0, 113, 227, 0.06);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--notice-text);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.01);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notice-icon {
    flex-shrink: 0;
    color: var(--system-blue);
}

.notice-text {
    line-height: 1.4;
    text-align: left;
}

.security-tips {
    background-color: rgba(227, 85, 0, 0.03);
    border: 1px solid rgba(227, 85, 0, 0.12);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 40px;
}

.security-tips-title {
    color: #b24100;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0;
}

.security-tips-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.security-tip {
    position: relative;
    padding-left: 14px;
    color: #5c351c;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.security-tip::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e35500;
    font-size: 14px;
}

.bottom-info-area {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 48px;
}

.usage-guide,
.faq {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    border-radius: 99px;
}

.usage-guide .section-title::before {
    background: linear-gradient(180deg, var(--system-blue) 0%, #5ac8fa 100%);
}

.faq .section-title::before {
    background: linear-gradient(180deg, var(--system-green) 0%, #a4e693 100%);
}

.info-grid,
.faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-panel,
.faq-item {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 24px;
    text-align: left;
}

.info-panel h3,
.faq-item h3 {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.info-panel p,
.faq-item p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 48px;
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--card-border);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 113, 227, 0.12);
}

.loading-card {
    min-height: 226px;
    justify-content: center;
    gap: 16px;
}

.loading-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--system-blue);
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.loading-line {
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.045) 0%, rgba(0, 113, 227, 0.08) 45%, rgba(0, 0, 0, 0.045) 100%);
    background-size: 220% 100%;
    animation: loading-shimmer 1.35s ease-in-out infinite;
}

.loading-line.is-wide {
    width: 100%;
}

.loading-line.is-short {
    width: 62%;
    height: 14px;
    margin: 4px auto 0;
    border-radius: 999px;
}

.account-message-card {
    grid-column: 1 / -1;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.account-message-title {
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 650;
}

.account-message-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loading-shimmer {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--system-blue);
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-primary);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 199, 89, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--system-green);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--system-green);
    animation: status-pulse 2s infinite ease-in-out;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    color: #1a8231;
}

.status-indicator.is-warning {
    background: rgba(227, 85, 0, 0.12);
}

.status-indicator.is-warning .status-dot,
.status-indicator.is-warning .status-dot::after {
    background-color: #e35500;
}

.status-indicator.is-warning .status-text {
    color: #b24100;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.copy-box {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.copy-box:hover {
    background: rgba(0, 0, 0, 0.04);
}

.copy-box:active {
    transform: scale(0.98);
}

.copy-box-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    padding-right: 8px;
}

.copy-box-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.copy-box-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-box-value.password {
    font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, monospace;
    font-size: 15.5px;
    letter-spacing: 0;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.copy-box:hover .copy-btn {
    color: var(--system-blue);
    background-color: rgba(0, 113, 227, 0.08);
}

.copy-box.copied {
    background: rgba(52, 199, 89, 0.08);
    border-color: rgba(52, 199, 89, 0.15);
}

.copy-box.copied .copy-box-label {
    color: #1a8231;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-icon {
    opacity: 0.5;
    color: var(--text-secondary);
}

footer {
    margin-top: auto;
    padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(29, 29, 31, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(16px);
    animation: toast-in-out 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in-out {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    12% {
        opacity: 1;
        transform: translateY(0);
    }

    88% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-16px);
    }
}

@media only screen and (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .security-tips-list {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .faq-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media only screen and (max-width: 640px) {
    h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    header {
        padding: 56px 0 32px;
    }

    .notice-banner,
    .security-tips {
        margin-bottom: 24px;
        padding: 16px;
    }

    .bottom-info-area {
        margin-top: 40px;
        padding-top: 32px;
        gap: 32px;
    }

    .usage-guide,
    .faq {
        margin-bottom: 0;
        padding: 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card {
        padding: 24px;
        border-radius: 24px;
    }
}
