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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    color: #2d3748;
    line-height: 1.6;
    font-weight: 400;
}

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

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #718096;
    font-weight: 400;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    border: 1px solid #f7fafc;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-content {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon {
    color: white;
    width: 28px;
    height: 28px;
}

.card-text {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.card-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 400;
}

.supported-platforms {
    font-size: 0.875rem;
    color: #a0aec0;
    font-weight: 400;
}

.platform-links {
    color: #4a5568;
    font-weight: 500;
}

/* 个人基础信息部分 */
.personal-info-section {
    padding: 40px;
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    color: #2d3748;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-input.error {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-error {
    display: block;
    font-size: 0.875rem;
    color: #f56565;
    margin-top: 8px;
    font-weight: 400;
}

/* 添加账户部分 */
.add-account-section {
    padding: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}

/* 平台选择 */
.platform-selection {
    margin-bottom: 32px;
}

.platform-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 16px;
    text-align: center;
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    justify-content: center;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
}

.platform-btn:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.platform-icon {
    width: 24px;
    height: 24px;
    color: #718096;
}

.platform-btn.active .platform-icon {
    color: #ffffff;
}

.platform-btn span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

.platform-btn.active span {
    color: #ffffff;
}

/* URL输入部分 */
.url-input-section {
    margin-bottom: 32px;
}

.url-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    text-align: center;
}

.url-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
    color: #2d3748;
    font-weight: 400;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.url-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* 链接类型选择 */
.link-type-section {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.link-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    flex: 1;
    max-width: 160px;
}

.link-type-btn:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.link-type-icon {
    width: 16px;
    height: 16px;
}

/* 添加按钮 */
.add-btn {
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.add-btn:active {
    transform: translateY(0);
}

/* 底部提示 */
.bottom-notice {
    text-align: center;
    font-size: 0.875rem;
    color: #a0aec0;
    font-style: normal;
    margin-top: 32px;
    line-height: 1.6;
    font-weight: 400;
    padding: 20px;
    background: #f7fafc;
    border-radius: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .add-account-section,
    .personal-info-section {
        padding: 32px 24px;
    }
    
    .platform-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .platform-btn {
        min-height: 80px;
        padding: 20px 16px;
    }
    
    .link-type-section {
        flex-direction: column;
        align-items: center;
    }
    
    .link-type-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .icon-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    
    .link-icon {
        width: 24px;
        height: 24px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

.page-header {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 加载状态 */
.card {
    opacity: 0;
}

.page-header {
    opacity: 0;
}