/* 主页面组件样式 - 基础布局，不涉及主题变化 */

/* 主页面样式 */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 中心卡片 */
.center-card {
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: cardFadeIn 0.8s ease-out;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 网站标题 */
.site-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

/* 网站副标题 */
.site-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 - macOS风格 */
.action-button {
    padding: 14px 28px;
    border-radius: var(--border-radius-md, 12px);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 120px;
    position: relative;
    border: none;
    cursor: pointer;
    /* macOS风格阴影 */
    box-shadow: var(--shadow-button, 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8));
}

/* 登录按钮 - 主要按钮样式 */
.login-btn {
    background: var(--button-primary-bg, #007AFF);
    color: var(--button-primary-color, white);
}

.login-btn:hover {
    background: var(--button-primary-hover, #0056CC);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover, 
        0 6px 16px rgba(0, 122, 255, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8));
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 122, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 注册按钮 - 次要按钮样式 */
.register-btn {
    background: var(--button-secondary-bg, white);
    color: var(--button-secondary-color, #1a1a1a);
    border: 1px solid var(--border-color-input, rgba(0, 0, 0, 0.1));
}

.register-btn:hover {
    background: var(--button-secondary-hover, #f8f9fa);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover, 
        0 6px 16px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8));
}

.register-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .center-card {
        padding: 40px 60px;
        margin: 20px;
        max-width: 400px;
    }

    .site-title {
        font-size: 36px;
    }

    .site-subtitle {
        font-size: 16px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-button {
        width: 100%;
        max-width: 200px;
    }

    /* 移动端箭头按钮调整 */
    .arrow-button {
        width: 40px;
        height: 40px;
        right: 15px;
    }

    .back-arrow {
        left: 15px;
    }

    /* 移动端下拉菜单调整 */
    .select-container {
        max-width: 100px;
        margin: 0 auto;
    }

    .user-select {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .center-card {
        padding: 30px 40px;
        margin: 15px;
        max-width: 350px;
    }

    .site-title {
        font-size: 28px;
    }

    .site-subtitle {
        font-size: 14px;
    }

    .action-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* 超小屏幕下拉菜单进一步调整 */
    .select-container {
        max-width: 80px;
        margin: 0 auto;
    }

    .user-select {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* 箭头按钮 */
.arrow-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.arrow-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: translateY(-50%) scale(1.1);
}

.arrow-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* 返回箭头按钮 */
.back-arrow {
    left: 20px;
    right: auto;
}

/* Demo内容样式 */
.demo-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

/* 下拉菜单容器 */
.select-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

/* 移动端默认调整 */
@media (max-width: 768px) {
    .select-container {
        max-width: 160px !important;
    }
}

@media (max-width: 480px) {
    .select-container {
        max-width: 140px !important;
    }
}

/* 用户选择下拉菜单 */
.user-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color-input, rgba(0, 0, 0, 0.1));
    border-radius: var(--border-radius-md, 12px);
    background: var(--input-background, white);
    color: var(--text-color, #1a1a1a);
    font-size: 16px;
    font-family: var(--font-family, 'Inter', sans-serif);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.user-select:focus {
    outline: none;
    border-color: var(--border-color-focus, #007AFF);
    box-shadow: var(--shadow-input-focus, 0 0 0 3px rgba(0, 122, 255, 0.1));
}

/* 确认按钮 */
.confirm-btn {
    background: var(--button-primary-bg, #007AFF);
    color: var(--button-primary-color, white);
    min-width: 140px;
}

.confirm-btn:hover {
    background: var(--button-primary-hover, #0056CC);
}

/* 卡片进入动画 */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}