/* ===== plan_top ver0 ===== */

/* Hero */
.pt-hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c4157 100%);
    padding: 50px 0 40px;
    text-align: center;
}
.pt-hero-title {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.pt-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Group Nav (sticky) */
.pt-group-nav-wrap {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.pt-group-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}
.pt-group-nav::-webkit-scrollbar {
    display: none;
}
.pt-group-nav-item {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.pt-group-nav-item:hover,
.pt-group-nav-item.active {
    color: #1a2a3a;
    border-bottom-color: #ff3008;
    text-decoration: none;
}

/* Main */
.pt-main {
    background: #f7f8fa;
    padding: 40px 0 20px;
}

/* Group */
.pt-group {
    margin-bottom: 48px;
}
.pt-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a2a3a;
}
.pt-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}
.pt-group-title a {
    color: inherit;
    text-decoration: none;
}
.pt-group-title a:hover {
    color: #ff3008;
}
.pt-group-count {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
    margin-left: 12px;
}
.pt-group-more {
    font-size: 0.85rem;
    color: #ff3008;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.pt-group-more:hover {
    text-decoration: underline;
    color: #cc2606;
}

/* Ranking */
.pt-ranking {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pt-ranking-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pt-ranking-title i {
    color: #f5a623;
    font-size: 1.1rem;
}
.pt-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pt-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.pt-ranking-item:last-child {
    border-bottom: none;
}
.pt-ranking-item:hover {
    background-color: #faf6ee;
    text-decoration: none;
    color: inherit;
}
.pt-ranking-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #aab2bd;
}
.pt-ranking-badge[data-rank="1"] {
    background: linear-gradient(135deg, #f5a623, #e8930c);
}
.pt-ranking-badge[data-rank="2"] {
    background: linear-gradient(135deg, #a8b0ba, #8a929c);
}
.pt-ranking-badge[data-rank="3"] {
    background: linear-gradient(135deg, #cd7f32, #b5692a);
}
.pt-ranking-img {
    flex-shrink: 0;
    width: 56px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}
.pt-ranking-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pt-ranking-info {
    flex: 1;
    min-width: 0;
}
.pt-ranking-plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pt-ranking-company {
    font-size: 0.75rem;
    color: #888;
}

/* Cards Grid */
.pt-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Card */
.pt-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}
.pt-card-img {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #222;
}
.pt-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    transition: background 0.3s;
}
.pt-card:hover .pt-card-img::after {
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.25) 100%);
}
.pt-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.pt-card:hover .pt-card-img img {
    transform: scale(1.05);
}
.pt-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.4;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 2;
}
.pt-card-plan-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    z-index: 2;
}
.pt-card-body {
    padding: 10px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pt-card-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pt-card-meta-row {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    gap: 6px;
}
.pt-card-meta-row i {
    color: #aaa;
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.pt-card-company {
    font-size: 0.78rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pt-card-time {
    font-size: 0.78rem;
    color: #888;
}

/* Form Section */
.pt-form-section {
    padding: 50px 0 40px;
    background: #f0f2f5;
    scroll-margin-top: 80px;
}
.pt-form-header {
    text-align: center;
    margin-bottom: 30px;
}
.pt-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 10px;
}
.pt-form-sub {
    font-size: 1rem;
    color: #666;
    margin: 0;
}
.pt-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* Skyscraper Sticky Button */
.pt-sticky-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 0.75rem;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
}
.pt-sticky-cta.visible {
    opacity: 1;
    pointer-events: auto;
}
.pt-sticky-cta:hover {
    color: #fff;
    text-decoration: none;
    padding-right: 1rem;
    box-shadow: -4px 2px 20px rgba(231,76,60,0.4);
}
.pt-sticky-cta-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.pt-sticky-cta-sub {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .pt-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .pt-hero {
        padding: 35px 16px 30px;
    }
    .pt-hero-title {
        font-size: 1.5em;
    }
    .pt-group-nav-item {
        padding: 12px 14px;
        font-size: 0.82rem;
    }
    .pt-main {
        padding: 24px 0 10px;
    }
    .pt-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pt-card-body {
        padding: 10px 12px 12px;
    }
    .pt-card-plan-name {
        font-size: 0.78rem;
        padding: 8px 10px;
    }
    .pt-card-category {
        font-size: 0.68rem;
        padding: 2px 8px;
    }
    .pt-card-meta-row {
        font-size: 0.75rem;
    }
    .pt-group-header {
        margin-bottom: 14px;
    }
    .pt-group-title {
        font-size: 1.15rem;
    }
    .pt-group {
        margin-bottom: 30px;
    }
    .pt-ranking {
        padding: 14px 12px;
    }
    .pt-ranking-item {
        padding: 10px 8px;
        gap: 10px;
    }
    .pt-ranking-plan-name {
        font-size: 0.8rem;
    }
    .pt-ranking-img {
        width: 48px;
        height: 36px;
    }
    .pt-form-section {
        padding: 36px 0 30px;
    }
    .pt-form-title {
        font-size: 1.3rem;
    }
    .pt-sticky-cta {
        display: none;
    }
}
