* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
}

body {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: rgba(51, 51, 51, 0.85);
    line-height: 1.6;
    min-height: 100vh;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: auto;
    margin-top: 60px; /* 顶部导航栏高度 */
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: auto;
    margin-top: 40px; /* 向下偏移，不遮挡顶部导航栏 */
}

.modal-content h2 {
    margin-bottom: 20px;
    color: rgba(29, 29, 31, 0.85);
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 18px;
}

#agree-btn {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

#agree-btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.4);
}

/* 主页面样式 */
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000; /* 确保顶部导航栏在弹窗之上 */
}

.left-buttons {
    display: flex;
    align-items: center;
}

.right-buttons {
    display: flex;
    gap: 15px;
}

.logo-placeholder {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-placeholder:hover {
    transform: translateY(-2px);
}

.page-title {
    text-align: center;
    margin: 25px 0 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.page-title h1 {
    color: #0080ff;
    font-size: 44px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 128, 255, 0.3);
    margin-bottom: 12px;
}

.subtitle {
    color: #0080ff;
    font-size: 22px;
    font-weight: 500;
    margin-top: 0;
    text-shadow: 0 1px 5px rgba(0, 128, 255, 0.2);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #0071e3;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.login-btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.4);
}

.register-btn {
    background-color: rgba(255, 255, 255, 0.7);
    color: #0071e3;
    border: 1px solid #0071e3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.register-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 内容区域样式 */
main {
    padding: 30px 20px;
}

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

#loading, #error {
    text-align: center;
    padding: 30px;
    font-size: 20px;
    color: rgba(134, 134, 139, 0.9);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#error {
    color: rgba(255, 59, 48, 0.9);
}

.apple-id-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px auto 0;
    max-width: 600px;
}

.apple-id-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px 20px 20px 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* 卡片边框渐变样式 */
.border-gradient-1::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: calc(100% + 2px);
    background: linear-gradient(45deg, #8ec5fc, #e0c3fc);
    border-radius: 10px 0 0 10px;
    z-index: 1;
}

.border-gradient-2::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: calc(100% + 2px);
    background: linear-gradient(45deg, #e0c3fc, #ff9a9e);
    border-radius: 10px 0 0 10px;
    z-index: 1;
}

.border-gradient-3::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: calc(100% + 2px);
    background: linear-gradient(45deg, #8ec5fc, #c471ed);
    border-radius: 10px 0 0 10px;
    z-index: 1;
}

.apple-id-card > * {
    position: relative;
    z-index: 2;
}

.apple-id-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.85);
}

.apple-id-card h3 {
    margin-bottom: 12px;
    color: rgba(29, 29, 31, 0.85);
    font-size: 22px;
    border-bottom: 1px solid rgba(232, 232, 237, 0.7);
    padding-bottom: 10px;
    text-align: center;
}

.apple-id-info {
    margin-bottom: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(232, 232, 237, 0.4);
    flex-wrap: wrap;
    gap: 5px;
}

.info-label {
    font-weight: 500;
    color: rgba(134, 134, 139, 0.9);
    font-size: 17px;
}

.info-value {
    font-weight: 600;
    color: rgba(29, 29, 31, 0.85);
    display: flex;
    align-items: center;
    font-size: 17px;
}

.copy-btn {
    background-color: rgba(245, 245, 247, 0.7);
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    color: #0071e3;
    transition: all 0.25s ease;
}

.copy-btn:hover {
    background-color: rgba(232, 232, 237, 0.9);
    transform: translateY(-1px);
}

.status-1 {
    color: #34c759;
}

.status-2 {
    color: #ff9500;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .right-buttons {
        width: 100%;
        justify-content: center;
    }
    
    /* 移动端字体大小调整 */
    .page-title h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .apple-id-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .info-label, .info-value {
        font-size: 14px;
    }
    
    .copy-btn {
        padding: 2px 6px;
        font-size: 12px;
    }
    
    .apple-id-card {
        padding: 15px;
    }
    
    .apple-id-info {
        padding: 3px 0;
        margin-bottom: 5px;
    }
}

/* 图标选择样式 */
.icon-selection {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 12px;
    width: 100px;
}

.icon-option:hover {
    background-color: rgba(0, 113, 227, 0.1);
    transform: translateY(-3px);
}

.option-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.icon-option span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 错误提示样式 */
.error-message {
    color: #ff3b30;
    font-weight: 500;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: rgba(255, 59, 48, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* 成功提示样式 */
.success-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
}

.success-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: auto;
    margin-top: 60px; /* 顶部导航栏高度 */
}

.tip-image {
    max-width: 70%;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    margin-top: 40px; /* 向下偏移，不遮挡顶部导航栏 */
}

.continue-btn {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
    pointer-events: auto;
}

.continue-btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .icon-selection {
        gap: 15px;
    }
    
    .icon-option {
        width: 80px;
        padding: 10px;
    }
    
    .option-icon {
        width: 50px;
        height: 50px;
    }
    
    .tip-image {
        max-width: 85%;
        max-height: 50vh;
    }
} 