/* 通用样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* 登录页面样式 */
.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 350px;
    padding: 30px;
    text-align: center;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-in-out;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(120deg, #2b5876 0%, #4e4376 100%);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h1:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #2b5876 0%, #4e4376 100%);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
    animation: widthAnim 1.5s ease-in-out;
}

@keyframes widthAnim {
    from { width: 0; left: 50%; }
    to { width: 50%; left: 25%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-button {
    background-color: #24292e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transform: none;
    font-weight: 500;
}

.login-button:hover {
    background-color: #2f363d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.login-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-button:hover:before {
    left: 100%;
}

.gitee-login-button {
    background-color: #c71d23;
    margin-top: 15px;
}

.gitee-login-button:hover {
    background-color: #a71a1f;
}

.github-icon, .gitee-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    transform: none;
}

.or-divider {
    display: flex;
    align-items: center;
    color: #666;
    margin: 15px 0;
    width: 100%;
    transform: none;
}

.or-divider:before,
.or-divider:after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.or-divider:before {
    margin-right: 10px;
}

.or-divider:after {
    margin-left: 10px;
}

.system-description {
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
    animation: fadeIn 1s ease-in-out 0.3s both;
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.6;
}

/* 波纹效果 */
.login-button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 主页样式 */
.header {
    background: linear-gradient(120deg, #2b5876 0%, #4e4376 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 20px;
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.logout-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 15px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.btn {
    background: linear-gradient(120deg, #2b5876 0%, #4e4376 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.location-status {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: none;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
} 