.download-container {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 32px;
    padding: 40px;
}

.download-header {
    text-align: center;
    margin-bottom: 32px;
}

.download-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.download-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* 自定義下拉菜單 */
.custom-select {
    position: relative;
    user-select: none;
}

.select-trigger {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.select-trigger:hover {
    background: rgba(0,0,0,0.05);
}

.custom-select.open .select-trigger {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 8px;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select.open .select-options {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    background: rgba(0, 122, 255, 0.05);
    color: var(--primary-color);
}

.option.selected {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* 輸入框 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 14px 16px 14px 44px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
}

/* 狀態消息 */
.status-message {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.status-message.success {
    background: rgba(52, 199, 89, 0.1);
    color: #248a3d;
}

.status-message.error {
    background: rgba(255, 59, 48, 0.1);
    color: #d70015;
}

/* 說明區塊 */
.instruction-box {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.instruction-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}

.instruction-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 激活碼彈窗特定樣式 */
.activation-result {
    background: rgba(0, 122, 255, 0.05);
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    margin: 20px 0;
}

.activation-code {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--primary-color);
    font-family: "SF Mono", Menlo, monospace;
    margin-bottom: 8px;
}

.activation-details {
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activation-details strong {
    color: var(--text-color);
}

/* 動畫 */
.animate-fade {
    animation: fadeIn 0.3s ease;
}

@media (max-width: 600px) {
    .download-container {
        padding: 32px 20px;
    }
}
