/* Timezone Converter - 现代化iLovePDF风格设计 */
:root {
    --primary-color: #4a90a4;
    --primary-hover: #357a8a;
    --primary-light: rgba(74, 144, 164, 0.1);
    --success-color: #52c196;
    --success-light: rgba(82, 193, 150, 0.1);
    --success-hover: #45a085;
    --background-color: #fafbfc;
    --white: #ffffff;
    --text-color: #2c3e50;
    --dark-gray: #5a6c7d;
    --muted-text: #7f8c8d;
    --border-color: #e1e8ed;
    --light-gray: #f8f9fa;
    --warning-color: #f39c12;
    --warning-light: rgba(243, 156, 18, 0.1);
    --info-color: #3498db;
    --info-light: rgba(52, 152, 219, 0.1);
    --danger-color: #e74c3c;
    --danger-light: rgba(231, 76, 60, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.16);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}

.timezone-converter-page {
    min-height: 100vh;
    background: var(--background-color);
    padding: 0;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* 世界时钟显示 */
.world-clocks {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.world-clocks:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.world-clocks-header {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.world-clocks-header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.world-clocks-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.clocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}

.clock-item {
    padding: 24px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
}

.clock-item:hover {
    background: var(--primary-light);
    transform: scale(1.02);
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.clock-item:last-child,
.clock-item:nth-child(even) {
    border-right: none;
}

.clock-timezone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timezone-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
}

.timezone-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.timezone-code {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-family: monospace;
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 4px;
}

.clock-time {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.clock-date {
    font-size: 0.875rem;
    color: var(--muted-text);
    font-weight: 500;
}

/* 主要转换器卡片 */
.converter-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.converter-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(74, 144, 164, 0.3);
}

.converter-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 30px;
}

/* 智能时区选择器 */
.timezone-selector-section {
    background: linear-gradient(145deg, var(--light-gray) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timezone-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: end;
}

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

.timezone-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-detect-badge {
    background: var(--success-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.timezone-select-wrapper {
    position: relative;
}

.timezone-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.timezone-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-1px);
}

.swap-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.swap-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* 时间输入输出区域 */
.time-conversion-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 30px;
}

.time-input-group,
.time-output-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-input,
.time-output {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    background: var(--white);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.time-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-2px);
}

.time-output {
    background: var(--success-light);
    border-color: var(--success-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: text;
    position: relative;
}

.time-output:focus {
    background: var(--success-light);
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(82, 193, 150, 0.2);
}

.convert-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 144, 164, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 144, 164, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 144, 164, 0); }
}

.convert-arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

/* 快速时间选择 */
.quick-time-section {
    background: linear-gradient(145deg, var(--light-gray) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-time-header {
    text-align: center;
    margin-bottom: 20px;
}

.quick-time-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.quick-time-desc {
    font-size: 0.875rem;
    color: var(--muted-text);
    margin: 0;
}

.quick-time-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.quick-time-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-color);
}

.quick-time-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-time-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quick-time-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-time-value {
    font-family: monospace;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 常用时区快捷选择 */
.timezone-shortcuts {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shortcuts-header {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.shortcuts-header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.shortcuts-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}

.timezone-shortcut {
    padding: 20px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
}

.timezone-shortcut:hover {
    background: var(--success-light);
    transform: scale(1.02);
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.timezone-shortcut:last-child,
.timezone-shortcut:nth-child(even) {
    border-right: none;
}

.timezone-shortcut.active {
    background: var(--success-color);
    color: var(--white);
}

.shortcut-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.shortcut-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.shortcut-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.shortcut-code {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--muted-text);
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 4px;
}

.shortcut-time {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.shortcut-offset {
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* 控制面板 */
.control-panel {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.convert-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.convert-btn::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: left 0.5s ease;
}

.convert-btn:hover::before {
    left: 100%;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--info-color) 100%);
}

.current-time-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-hover) 100%);
}

.current-time-btn:hover {
    background: linear-gradient(135deg, var(--success-hover) 0%, var(--primary-color) 100%);
}

/* 复制功能 */
.copy-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--success-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.time-output-group {
    position: relative;
}

.time-output-group:hover .copy-btn,
.time-output:not(:placeholder-shown) ~ .copy-btn {
    opacity: 1;
    pointer-events: all;
}

.copy-btn:hover {
    background: var(--success-light);
    color: var(--success-hover);
    transform: translateY(-50%) scale(1.1);
}

/* 使用提示 */
.tips-section {
    background: var(--info-light);
    border: 1px solid var(--info-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tips-header i {
    color: var(--info-color);
    font-size: 20px;
}

.tips-header h4 {
    color: var(--info-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-color);
    line-height: 1.5;
}

.tips-list li::before {
    content: '\f138';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--info-color);
    font-size: 12px;
}

/* SEO卡片网格 */
.seo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.seo-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.seo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(74, 144, 164, 0.3);
}

.seo-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}

.seo-card-header {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}

.seo-card.featured .seo-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: var(--white);
}

.seo-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 20px;
    flex-shrink: 0;
}

.seo-card.featured .seo-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.seo-card-header h2,
.seo-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.seo-card.featured .seo-card-header h2 {
    color: var(--white);
    font-size: 1.5rem;
}

.seo-card-content {
    padding: 24px;
}

.modern-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.modern-step-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 12px 0 12px 50px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-color);
}

.modern-step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.modern-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-bullet-list li {
    position: relative;
    padding: 8px 0 8px 32px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-color);
}

.modern-bullet-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--success-color);
    font-size: 14px;
}

.highlight-box {
    background: var(--warning-light);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    color: var(--text-color);
}

.spec-grid {
    display: grid;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.faq-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item-compact {
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.faq-item-compact strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.faq-item-compact p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tool-link i {
    font-size: 20px;
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .timezone-selector,
    .time-conversion-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .convert-arrow {
        transform: rotate(90deg);
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .swap-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .control-panel {
        flex-direction: column;
        gap: 12px;
    }

    .convert-btn {
        width: 100%;
        justify-content: center;
    }

    .quick-time-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .clocks-grid,
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 20px;
    }

    .seo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .seo-card.featured {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 16px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 16px;
    }

    .time-input,
    .time-output {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .timezone-select {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .quick-time-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-time-btn {
        padding: 12px 8px;
    }
}