/**
 * 世界时间网 - 主样式文件
 * 整合了所有自定义CSS样式
 * Version: 1.0.0
 */

/* ========================================
   1. 基础样式
   ======================================== */

/* 使用系统字体栈，无需加载外部字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.clock-digit {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   2. 世界地图样式
   ======================================== */

.world-map {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    position: relative;
    overflow: hidden;
}

.map-grid {
    background-image: 
        linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.city-marker {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.timezone-bar {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 25%, #60a5fa 50%, #fbbf24 75%, #f59e0b 100%);
}

/* 地图城市卡片 */
.map-city-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 12px;
    min-width: 120px;
    text-align: center;
    z-index: 10;
}

.map-city-card .city-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.map-city-card .city-time {
    color: #666;
    font-family: monospace;
}

.map-city-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* ========================================
   3. 搜索框样式
   ======================================== */

.search-suggest {
    display: none;
}

.search-box:focus-within .search-suggest {
    display: block;
}

/* ========================================
   4. 下拉菜单样式
   ======================================== */

.dropdown-menu {
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ========================================
   5. 面包屑导航
   ======================================== */

.breadcrumb {
    background: #f9fafb;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumb .current {
    color: #374151;
}

/* Anchor offset for fixed header */
.continent-anchor {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

/* ========================================
   6. 表格样式
   ======================================== */

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.section-title small {
    font-size: 0.875rem;
    color: #999;
    font-weight: 400;
}

/* Table Styles */
.continent-table {
    width: 100%;
    border-collapse: collapse;
}

.continent-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.continent-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.continent-table tr:hover {
    background: #f8f9fa;
}

.continent-table img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.continent-table a {
    color: #337ab7;
    text-decoration: none;
}

.continent-table a:hover {
    text-decoration: underline;
}

/* ========================================
   7. 国家盒子样式
   ======================================== */

.country-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.country-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.country-box img {
    width: 32px;
    height: 24px;
    margin-right: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.country-box a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.country-box a:hover {
    color: #337ab7;
}

/* ========================================
   8. 时区样式
   ======================================== */

/* Timezone Section */
.timezone-section {
    padding: 2rem 0;
}

.timezone-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Country Item */
.country-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.country-item img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

.country-item a {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
}

.country-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ========================================
   9. 地区列表样式
   ======================================== */

.region-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.region-item i {
    color: #337ab7;
    margin-right: 0.5rem;
}

.region-item a {
    color: #337ab7;
    text-decoration: none;
}

.region-item a:hover {
    text-decoration: underline;
}

/* ========================================
   10. 时差卡片样式
   ======================================== */

/* Difference Card */
.difference-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

.difference-card:hover {
    border-color: #337ab7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.difference-card a {
    color: #337ab7;
    text-decoration: none;
    font-size: 0.875rem;
}

.difference-card a:hover {
    text-decoration: underline;
}

/* Difference Title */
.difference-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.difference-title i {
    font-size: 3rem;
}

/* Difference Top */
.differenceTop {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s;
}

.differenceTop:hover {
    border-color: #337ab7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.differenceTop a {
    color: #337ab7;
    text-decoration: none;
    font-size: 0.875rem;
}

.differenceTop a:hover {
    text-decoration: underline;
}

/* ========================================
   11. 大时钟样式
   ======================================== */

/* Big Clock Styles */
.clock-big {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.clock-big h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.clock-big .headline {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.clock-big .clock-city {
    font-size: 1.75rem;
    font-weight: 600;
    color: #337ab7;
    text-decoration: none;
}

.clock-big .clock-city:hover {
    text-decoration: underline;
}

.clock-big .text-muted {
    color: #999;
    font-size: 0.875rem;
}

.clock-big .date {
    font-size: 1rem;
    color: #666;
    margin: 1rem 0;
}

.clock-big .time {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.clock-big .time .hour,
.clock-big .time .minute,
.clock-big .time .second {
    display: inline-block;
    width: 70px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    background: linear-gradient(to bottom, #555, #000);
    color: #fff;
    border-radius: 8px;
    font-weight: normal;
    font-size: 3rem;
}

.clock-big .time .second {
    background: linear-gradient(to bottom, #eee, #ccc);
    color: #333;
}

.clock-big .time-big {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.clock-big .big-digit {
    display: inline-block;
    width: 70px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    background: linear-gradient(to bottom, #555, #000);
    color: #fff;
    border-radius: 8px;
    font-weight: normal;
    font-size: 3rem;
}

.clock-big .big-digit-sec {
    display: inline-block;
    width: 70px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    background: linear-gradient(to bottom, #eee, #ccc);
    color: #333;
    border-radius: 8px;
    font-weight: normal;
    font-size: 3rem;
}

.clock-big .colon {
    color: #666;
    margin: 0 4px;
}

/* ========================================
   12. 时区信息表格
   ======================================== */

/* Timezone Info Table */
.timezone-info-table {
    width: 100%;
    border-collapse: collapse;
}

.timezone-info-table td {
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.timezone-info-table td:first-child {
    width: 40%;
    background-color: #ffffff;
}

.timezone-info-table h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.timezone-info-table h3 small {
    font-size: 0.75rem;
    color: #999;
}

.timezone-info-table .help {
    border-bottom: 1px dashed #999;
    cursor: help;
}

.timezone-info {
    width: 100%;
    border-collapse: collapse;
}

.timezone-info td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    width: 50%;
    text-align: center;
}

.timezone-info h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

.timezone-info h2 small {
    display: block;
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.25rem;
}

.timezone-info h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.timezone-info h3 small {
    display: block;
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.25rem;
}

.timezone-info .light-gray-bg2 {
    background-color: #f8f9fa;
}

.timezone-info .text-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.timezone-info a {
    color: #337ab7;
    text-decoration: none;
}

.timezone-info a:hover {
    text-decoration: underline;
}

/* ========================================
   13. 日出日落样式
   ======================================== */

/* Sunrise/Sunset Styles */
.sonne {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sonne img {
    width: 64px;
    height: 64px;
    margin-right: 1rem;
}

.sonne h3 {
    font-size: 1rem;
    color: #856404;
    margin: 0 0 0.5rem 0;
}

.sonne .lead {
    font-size: 2rem;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.sonne .text-muted {
    color: #999;
    font-size: 0.875rem;
}

.sonne .separator-2 {
    height: 2px;
    background: #ffc107;
    margin: 0.5rem 0;
}

/* ========================================
   14. 国家信息标签页
   ======================================== */

/* Country Info Tabs */
.country-info-tabs {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.country-info-tabs .tab-nav {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.country-info-tabs .tab-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-info-tabs .tab-nav li {
    border-bottom: 1px solid #dee2e6;
}

.country-info-tabs .tab-nav li:last-child {
    border-bottom: none;
}

.country-info-tabs .tab-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
}

.country-info-tabs .tab-nav a:hover,
.country-info-tabs .tab-nav a.active {
    background: #fff;
    color: #337ab7;
}

.country-info-tabs .tab-content {
    flex: 1;
    padding: 1.5rem;
    background: #fff;
}

/* ========================================
   15. 城市链接样式
   ======================================== */

/* City Link Item */
.city-link-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.city-link-item:last-child {
    border-bottom: none;
}

.city-link-item a {
    color: #337ab7;
    text-decoration: none;
}

.city-link-item a:hover {
    text-decoration: underline;
}

.city-link-item i {
    color: #999;
    margin-right: 0.5rem;
}

.city-link-item small {
    color: #999;
}

/* ========================================
   16. 响应式设计
   ======================================== */

/* Mobile responsive for tabs */
@media (max-width: 768px) {
    .country-info-tabs {
        flex-direction: column;
    }
    .country-info-tabs .tab-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
}

/* ========================================
   17. 数字时钟样式（内联样式的补充）
   ======================================== */

.clock-digit-hours,
.clock-digit-minutes {
    background: linear-gradient(to bottom, #555, #000) !important;
}

.clock-digit-seconds {
    background: linear-gradient(to bottom, #eee, #ccc) !important;
}
