/* ===== iOS 26 毛玻璃风格主题 ===== */

/* 全局背景 - 深色渐变 */
body.ios26-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: rgba(255, 255, 255, 0.9);
}

/* 毛玻璃效果基础类 */
.ios26-theme .glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
}

/* 输入框和选择框 */
.ios26-theme input,
.ios26-theme select,
.ios26-theme textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ios26-theme input:focus,
.ios26-theme select:focus,
.ios26-theme textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.3);
}

.ios26-theme input::placeholder,
.ios26-theme textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 按钮 */
.ios26-theme button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ios26-theme button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ios26-theme button:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* 危险按钮 */
.ios26-theme .btn-danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.ios26-theme .btn-danger:hover {
    background: rgba(220, 53, 69, 0.5);
    border-color: rgba(220, 53, 69, 0.7);
}

/* 成功按钮 */
.ios26-theme .btn-success {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

.ios26-theme .btn-success:hover {
    background: rgba(40, 167, 69, 0.5);
    border-color: rgba(40, 167, 69, 0.7);
}

/* 标签区域 */
.ios26-theme .links-area {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 标签项 */
.ios26-theme .link-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ios26-theme .link-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 右侧面板 */
.ios26-theme .right-panel {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

/* 信息面板 */
.ios26-theme .info-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 时间显示 */
.ios26-theme .info-time {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.5);
}

/* 诗词区域 */
.ios26-theme .info-poem {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px;
}

/* 展开按钮 */
.ios26-theme .expander-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.ios26-theme .expander-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.ios26-theme .expander-btn.active {
    background: rgba(100, 149, 237, 0.3);
    border-color: rgba(100, 149, 237, 0.5);
}

/* 功能面板 */
.ios26-theme .feature-panel {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 功能内容区域 */
.ios26-theme .feature-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 15px;
    padding: 15px;
}

/* 功能标题 */
.ios26-theme .feature-title {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 输入行 */
.ios26-theme .feature-input-row {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

/* 列表项 */
.ios26-theme .item-list li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.ios26-theme .item-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 聊天容器 */
.ios26-theme .chat-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

/* 聊天消息 */
.ios26-theme .chat-message {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 12px;
}

.ios26-theme .chat-message.user {
    background: rgba(100, 149, 237, 0.2);
    border: 1px solid rgba(100, 149, 237, 0.3);
}

.ios26-theme .chat-message.assistant {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 设置按钮 */
.ios26-theme #settings-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.ios26-theme #settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 设置模态框 */
.ios26-theme #settings-modal {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.ios26-theme #settings-modal .modal-content {
    background: rgba(30, 30, 50, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* 设置区域标题 */
.ios26-theme .section-title {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-top: 25px;
}

/* 设置编辑器区域 */
.ios26-theme #color-editor,
.ios26-theme #ai-config-editor,
.ios26-theme #dice-config-editor,
.ios26-theme #page-visibility-editor,
.ios26-theme #feature-style-editor,
.ios26-theme #panel-width-editor,
.ios26-theme #poem-style-editor,
.ios26-theme #col-editor,
.ios26-theme #link-editor {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 表格样式 */
.ios26-theme table {
    width: 100%;
    border-collapse: collapse;
}

.ios26-theme th {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ios26-theme td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ios26-theme tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* 滚动条 */
.ios26-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ios26-theme ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ios26-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.ios26-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ios26-theme .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .ios26-theme .right-panel {
        border-radius: 12px;
    }
}

/* 动画效果 */
.ios26-theme * {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease,
                transform 0.2s ease;
}

/* 特殊元素的动画 */
.ios26-theme .link-item,
.ios26-theme button,
.ios26-theme input,
.ios26-theme select,
.ios26-theme textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}