:root {
    --primary-color: #4285f4;
    --danger-color: #ea4335;
    --warning-color: #fbbc05;
    --success-color: #34a853;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #dadce0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.search-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.search-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-color);
    border-radius: 50px;
    font-size: 18px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #3367d6;
}

.reported-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-color);
}

.number-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.number-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.number-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.number-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.number {
    font-size: 20px;
    font-weight: 700;
}

.tag {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.tag-scam {
    background-color: var(--danger-color);
}

.tag-ad {
    background-color: var(--warning-color);
}

.tag-loan {
    background-color: #9c27b0;
}

.tag-sales {
    background-color: #ff9800;
}

.tag-normal {
    background-color: var(--success-color);
}
.tag-store {
    background-color: #2196f3; /* 使用藍色表示正常商家 */
}
.tag-company {
    background-color: #3f51b5; /* 使用深藍色表示知名企業 */
}
.tag-government {
    background-color: #607d8b; /* 使用灰藍色表示政府機關 */
}
.tag-other {
    background-color: #795548; /* 使用棕色表示其他類型 */
}
.tag-unknown {
    background-color: #9e9e9e; /* 使用灰色表示尚未通報 */
}
.tag-normal {
    background-color: var(--success-color);
}
.tag-scam_sms {
    background-color: var(--danger-color);
}
.tag-spam {
    background-color: var(--warning-color);
}
.tag-sh {
    background-color: #2196f3; /* 使用藍色表示正常商家 */
}


.number-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #5f6368;
}
.meta-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.tag-positive {
    color: var(--success-color);
}
.tag-negative {
    color: var(--danger-color);
}

.report-count {
    color: var(--danger-color);
}

/* 新增的報告計數顏色樣式 */
.report-count-positive {
    color: #2196f3; /* 藍色 - 好評大於差評 */
}

.report-count-negative {
    color: var(--danger-color); /* 紅色 - 差評大於好評 */
}

.rating {
    display: flex;
    align-items: center;
}

.rating i {
    color: var(--warning-color);
    margin-right: 5px;
}

.last-reported {
    font-size: 12px;
    color: #5f6368;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-reported-text {
    text-align: left;
}

.last-reported-count {
    text-align: right;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 14px;
    color: var(--gray-color);
}

.search-description{margin-top: 20px;}
.menu-toggle{display: none;}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        margin-top: 10px;
        width: 100%;
        padding: 0;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 15px;
    }
    
    nav ul li a {
        padding: 8px 0;
        display: block;
        font-size: 16px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
    }
    
    nav {
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    .search-title {
        font-size: 28px;
    }
    
    .number-cards {
        grid-template-columns: 1fr;
    }
}


.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    color: #4285f4;
}

.article-image-placeholder i {
    font-size: 3rem;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.4;
}

.article-date {
    margin-top: auto;
    font-size: 14px;
    color: #5f6368;
    display: flex;
    align-items: center;
}

.article-date i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .article-cards {
        grid-template-columns: 1fr;
    }
}