: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);
}

.detail-section {
    padding: 40px 0;
}

.detail-header {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.number-title {
    font-size: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.number-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    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-store {
    background-color: #2196f3; /* 使用藍色表示正常商家 */
}
.tag-sh {
    background-color: #2196f3; /* 使用藍色表示正常商家 */
}

/* 知名企業標籤 */
.tag-company {
    background-color: #3f51b5; /* 使用深藍色表示知名企業 */
}

/* 政府機關標籤 */
.tag-government {
    background-color: #607d8b; /* 使用灰藍色表示政府機關 */
}

/* 其他類型標籤 */
.tag-other {
    background-color: #795548; /* 使用棕色表示其他類型 */
}
.tag-scam_sms {
    background-color: var(--danger-color);
}
.tag-spam {
    background-color: var(--warning-color);
}

.tag-normal {
    background-color: var(--success-color);
}

.tag-positive {
    background-color: var(--success-color);
}

.tag-negative {
    background-color: var(--danger-color);
}
.tag-unknown {
    background-color: var(--gray-color);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.report-history {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.basic-info{ 
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
/* 基本資料區塊樣式 */
.basic-info {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

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

.info-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 15px;
}

.info-label i {
    color: var(--primary-color);
    font-size: 18px;
}

.info-value {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
}

.highlight {
    background: linear-gradient(120deg, rgba(66, 133, 244, 0.1) 0%, rgba(66, 133, 244, 0.1) 100%);
    padding: 3px 8px;
    border-radius: 4px;
}


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

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}
.timeline-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
}

.analysis-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analysis-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.chart-container {
    height: 200px;
    margin-top: 20px;
}

.related-numbers {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.related-articles{
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
}

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

.related-number-card {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s;
}

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

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

.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);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .number-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .number-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .analysis-section {
        grid-template-columns: 1fr;
    }
    .hidden-sm{
        display: none;
    }
}

.report-form-section {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.report-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 16px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--light-color);
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.vote-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.vote-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.vote-option:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.05);
}

.vote-option input[type="radio"] {
    display: none;
}

.vote-option .tag {
    padding: 10px 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--gray-color);
    color: #5f6368;
}

.vote-option input[type="radio"]:checked + .tag.tag-positive {
    background-color: var(--success-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 168, 83, 0.3);
}

.vote-option input[type="radio"]:checked + .tag.tag-negative {
    background-color: var(--danger-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(234, 67, 53, 0.3);
}

.vote-option input[type="radio"]:checked + .tag.tag-unknown {
    background-color: #5c85aa;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(218, 220, 224, 0.5);
}

.char-count {
    text-align: right;
    font-size: 14px;
    color: #5f6368;
    margin-top: 8px;
    font-weight: 500;
}

.char-count.warning {
    color: var(--warning-color);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 18px;
}

.required {
    color: var(--danger-color);
    margin-left: 4px;
}

/* 浮動按鈕樣式 */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn-report {
    background-color: var(--primary-color);
}

.floating-btn-share {
    background-color: var(--warning-color);
}

.floating-btn-line {
    background-color: #00c300;
}

/* 浮動按鈕工具提示 */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 呼籲通報橫幅 */
.report-banner {
    background: linear-gradient(45deg, #ffb347, #ff9900);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.report-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    ); 
}

@keyframes slide {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(50px); }
}

.report-banner-content {
    position: relative;
    z-index: 1;
}

.report-banner h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.report-banner p {
    font-size: 16px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .floating-btn::before {
        display: none;
    }
    
    .report-banner h3 {
        font-size: 20px;
    }
    
    .report-banner p {
        font-size: 14px;
    }
}

#googleMap{margin-top: 24px;}

.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;
    }
}