:root {
    --gradient-start: #FF6B6B;
    --gradient-end: #4ECDC4;
    --card-1: #FF8787;
    --card-2: #6C5CE7;
    --card-3: #45B7D1;
    --card-4: #72C2AC;
    --text: #2D3436;
    --surface: #FFFFFF;
    --overlay: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 2rem 1rem;
    color: var(--text);
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile {
    text-align: center;
    margin-bottom: 3rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.avatar i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0));
}

.link-card span {
    flex: 1;
    font-weight: 500;
    margin-right: 1rem;
}

.link-card i {
    font-size: 1.25rem;
}

.twitter { background-color: var(--card-1); }
.instagram { background-color: var(--card-2); }
.github { background-color: var(--card-3); }

.admin-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.admin-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.admin-button:hover i {
    transform: rotate(-10deg);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

/* 登录表单样式 */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

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

.login-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.login-btn:hover i {
    transform: translateX(4px);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .links {
        width: 100%;
    }
    
    .admin-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
} 

.section {
    margin-bottom: 2.5rem;
}

.section-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.youtube { background-color: #FF0000; }
.linkedin { background-color: #0077B5; }
.medium { background-color: #00AB6C; }
.substack { background-color: #FF6719; }
.bilibili { background-color: #FB7299; }
.portfolio { background-color: #6C5CE7; }
.blog { background-color: #00B894; }

.section:last-child {
    margin-bottom: 0;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0));
} 

/* 添加内容块的样式 */
.content-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* 调整网站链接的颜色 */
.website { background-color: #2ecc71; }

/* 优化section间距 */
.section {
    margin-bottom: 2.5rem;
}

.content-block .section:last-child {
    margin-bottom: 0;
} 

/* 链接管理样式 */
.admin-mode .link-card {
    position: relative;
    padding-right: 100px; /* 为管理按钮留出空间 */
}

.link-actions {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    gap: 0.5rem;
}

.admin-mode .link-card:hover .link-actions {
    display: flex;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.edit-btn:hover {
    background: rgba(52, 152, 219, 0.8);
}

.delete-btn:hover {
    background: rgba(231, 76, 60, 0.8);
}

.add-link-btn {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.admin-mode .add-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.add-link-btn i {
    font-size: 0.9rem;
} 

/* 登录按钮样式优化 */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

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

.login-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.login-btn:hover i {
    transform: translateX(4px);
}

/* 输入框样式优化 */
.input-with-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

.input-with-icon input:focus {
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: white;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gradient-start);
    font-size: 1.2rem;
    pointer-events: none;
}

/* 登录框标题样式 */
.modal-header h2 {
    color: var(--gradient-start);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

/* 关闭按钮样式 */
.close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(108, 92, 231, 0.1);
    color: var(--gradient-start);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.close:hover {
    background: rgba(108, 92, 231, 0.2);
    transform: rotate(90deg);
}

/* 标签样式 */
.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gradient-start);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 模态框背景 */
.modal {
    backdrop-filter: blur(12px);
}

.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
} 