/* 苹果风格的设计系统 */
:root {
    --primary-blue: #0071e3;
    --primary-blue-dark: #0051a2;
    --background-dark: #000000;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --danger: #ff453a;
    --success: #30d158;
    --border-radius: 12px;

    --bs-orange: linear-gradient(to right, #FF6A00, #FF8C00);
    --bs-blue: linear-gradient(to right, #096fd6, #0051a2);
    --bs-green: linear-gradient(to right, #09ae2f, #047b20);
    --bs-red: linear-gradient(to right, #b3091a, #bb091b);
    --bs-yellow: linear-gradient(to right, #cea11b, #a37d0b);
    --bs-purple: linear-gradient(to right, #4f1caf, #4c1ea2);
    --bs-pink: linear-gradient(to right, #d00d68, #a60c54);
    --bs-gray: linear-gradient(to right, #495661, #515d67);
    --bs-info: linear-gradient(to right, #077bf0, #0168cf);
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 动画和过渡效果 */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 模态框动画 */
#alertModal {
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#alertModal>div {
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 苹果风格的输入框 */
input,
textarea {
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.3);
}

/* 按钮悬停效果 */
button {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
}

/* 成功提示样式 */
.success-message {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* 购物按钮样式 */
.shop-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.shop-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 苹果风格的卡片 */
.apple-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apple-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 提交成功动画 */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success);
}

.success-checkmark .check-icon::before {
    top: 48px;
    left: 26px;
    transform: rotate(45deg);
    position: absolute;
    content: "";
    width: 3px;
    height: 24px;
    background-color: var(--success);
}

.success-checkmark .check-icon::after {
    top: 48px;
    left: 26px;
    transform: rotate(305deg);
    position: absolute;
    content: "";
    width: 3px;
    height: 12px;
    background-color: var(--success);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}